OpenBB-finance/OpenBB · error · EmptyDataError
No data was found for the given symbols.
Error message
No data was found for the given symbols.
What it means
Error "No data was found for the given symbols." thrown in OpenBB-finance/OpenBB.
Source
Thrown at openbb_platform/providers/fmp/openbb_fmp/models/etf_equity_exposure.py:82
from openbb_fmp.utils.helpers import get_data
api_key = credentials.get("fmp_api_key") if credentials else ""
symbols = query.symbol.split(",")
results: list[dict] = []
async def get_one(symbol):
"""Get one symbol."""
url = f"https://financialmodelingprep.com/stable/etf/asset-exposure?symbol={symbol}&apikey={api_key}"
response = await get_data(url, **kwargs)
if not response:
warnings.warn(f"No results found for {symbol}.")
if response:
results.extend(response)
await asyncio.gather(*[get_one(symbol) for symbol in symbols])
if not results:
raise EmptyDataError("No data was found for the given symbols.")
return results
@staticmethod
def transform_data(
query: FMPEtfEquityExposureQueryParams,
data: list[dict],
**kwargs: Any,
) -> list[FMPEtfEquityExposureData]:
"""Return the transformed data."""
return [
FMPEtfEquityExposureData.model_validate(d)
for d in sorted(data, key=lambda x: x["marketValue"], reverse=True)
]
View on GitHub (pinned to 3e071fcc2c)
Solutions
- Verify the ETF symbols are correct and supported by FMP.
- Check that the FMP API key is valid and has access to the ETF equity exposure endpoint.
- Try different symbols or a later date; the endpoint may have no coverage for the requested funds.
When it happens
Trigger: Thrown at openbb_platform/providers/fmp/openbb_fmp/models/etf_equity_exposure.py:82 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/f003d7efa458834f.
Report an issue: GitHub.