OpenBB-finance/OpenBB · error · EmptyDataError
No data returned for the given symbol.
Error message
No data returned for the given symbol.
What it means
Error "No data returned for the given symbol." thrown in OpenBB-finance/OpenBB.
Source
Thrown at openbb_platform/providers/fmp/openbb_fmp/models/government_trades.py:230
new_data_found = True
for d in page_result:
fs = frozenset(d.items())
if fs not in seen:
seen.add(fs)
unique_results.append(d)
if len(unique_results) >= limit:
break
if len(unique_results) >= limit:
break
if not new_data_found:
break # No more data from any source
page += 1
results = unique_results
if not results:
raise EmptyDataError("No data returned for the given symbol.")
return results
except OpenBBError as e:
raise e from e
@staticmethod
def transform_data(
query: FMPGovernmentTradesQueryParams, data: list[dict], **kwargs: Any
) -> list[FMPGovernmentTradesData]:
"""Return the transformed data."""
return sorted(
[
FMPGovernmentTradesData(
**{k: v for k, v in d.items() if v and v != "--"}
)
for d in data
],
key=lambda x: x.date,View on GitHub (pinned to 3e071fcc2c)
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.
When it happens
Trigger: Thrown at openbb_platform/providers/fmp/openbb_fmp/models/government_trades.py:230 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of OpenBB-finance/OpenBB@3e071fcc2c (2026-08-14).
Data as JSON: /api/errors/6ad2622ed7f376e4.
Report an issue: GitHub.