OpenBB-finance/OpenBB · error · EmptyDataError
No data was found for the given symbol.
Error message
No data was found for the given symbol.
What it means
Error "No data was found for the given symbol." thrown in OpenBB-finance/OpenBB.
Source
Thrown at openbb_platform/providers/fmp/openbb_fmp/models/etf_holdings.py:116
**kwargs: Any,
) -> list[dict]:
"""Return the raw data from the FMP endpoint."""
# pylint: disable=import-outside-toplevel
from openbb_fmp.utils.helpers import get_data_many
api_key = credentials.get("fmp_api_key") if credentials else ""
url = f"https://financialmodelingprep.com/stable/etf/holdings?symbol={query.symbol}&apikey={api_key}"
return await get_data_many(url, **kwargs)
@staticmethod
def transform_data(
query: FMPEtfHoldingsQueryParams,
data: list[dict],
**kwargs: Any,
) -> list[FMPEtfHoldingsData]:
"""Return the transformed data."""
if not data:
raise EmptyDataError("No data was found for the given symbol.")
return [FMPEtfHoldingsData.model_validate(item) for item in data]
View on GitHub (pinned to 3e071fcc2c)
Solutions
- Verify the ETF symbol is correct and listed on FMP.
- Check that your FMP subscription includes ETF holdings data.
- Try another ETF symbol; holdings data is not available for all funds.
When it happens
Trigger: Thrown at openbb_platform/providers/fmp/openbb_fmp/models/etf_holdings.py:116 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/9b392c43518c39d2.
Report an issue: GitHub.