{"record":{"id":"6ad2622ed7f376e4","repo":"OpenBB-finance/OpenBB","slug":"no-data-returned-for-the-given-symbol","errorCode":null,"errorMessage":"No data returned for the given symbol.","messagePattern":"No data returned for the given symbol\\.","errorType":"exception","errorClass":"EmptyDataError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/fmp/openbb_fmp/models/government_trades.py","lineNumber":230,"sourceCode":"                            new_data_found = True\n                            for d in page_result:\n                                fs = frozenset(d.items())\n                                if fs not in seen:\n                                    seen.add(fs)\n                                    unique_results.append(d)\n                                    if len(unique_results) >= limit:\n                                        break\n                            if len(unique_results) >= limit:\n                                break\n\n                    if not new_data_found:\n                        break  # No more data from any source\n                    page += 1\n\n                results = unique_results\n\n            if not results:\n                raise EmptyDataError(\"No data returned for the given symbol.\")\n\n            return results\n        except OpenBBError as e:\n            raise e from e\n\n    @staticmethod\n    def transform_data(\n        query: FMPGovernmentTradesQueryParams, data: list[dict], **kwargs: Any\n    ) -> list[FMPGovernmentTradesData]:\n        \"\"\"Return the transformed data.\"\"\"\n        return sorted(\n            [\n                FMPGovernmentTradesData(\n                    **{k: v for k, v in d.items() if v and v != \"--\"}\n                )\n                for d in data\n            ],\n            key=lambda x: x.date,","sourceCodeStart":212,"sourceCodeEnd":248,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/fmp/openbb_fmp/models/government_trades.py#L212-L248","documentation":"Error \"No data returned for the given symbol.\" thrown in OpenBB-finance/OpenBB.","triggerScenarios":"Thrown at openbb_platform/providers/fmp/openbb_fmp/models/government_trades.py:230 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the symbol is a valid US-listed ticker; government trades data covers US politicians only.","Try a different symbol or widen the date range.","Check that your FMP plan includes government trades data."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}