OpenBB-finance/OpenBB · error · EmptyDataError

No data returned for the given symbols.

Error message

No data returned for the given symbols.

What it means

Error "No data returned for the given symbols." thrown in OpenBB-finance/OpenBB.

Source

Thrown at openbb_platform/providers/fmp/openbb_fmp/models/price_target_consensus.py:82

        symbols = query.symbol.split(",")  # type: ignore
        results: list[dict] = []

        async def get_one(symbol):
            """Get data for one symbol."""
            url = f"https://financialmodelingprep.com/stable/price-target-consensus?symbol={symbol}&apikey={api_key}"
            result = await get_data_urls([url], **kwargs)

            if not result or len(result) == 0:
                warnings.warn(f"Symbol Error: No data found for {symbol}")

            if result:
                results.extend(result)

        await asyncio.gather(*[get_one(symbol) for symbol in symbols])

        if not results:
            raise EmptyDataError("No data returned for the given symbols.")

        return sorted(
            results,
            key=(lambda item: (symbols.index(item.get("symbol", len(symbols))))),
        )

    @staticmethod
    def transform_data(
        query: FMPPriceTargetConsensusQueryParams,
        data: list[dict],
        **kwargs: Any,
    ) -> list[FMPPriceTargetConsensusData]:
        """Return the transformed data."""
        return [FMPPriceTargetConsensusData.model_validate(d) for d in data]

View on GitHub (pinned to 3e071fcc2c)

Solutions

  1. Verify the symbols are valid tickers with analyst coverage on FMP.
  2. Check that your FMP subscription includes price target consensus data.
  3. Try symbols with active analyst coverage.

When it happens

Trigger: Thrown at openbb_platform/providers/fmp/openbb_fmp/models/price_target_consensus.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/b9aed0c323b0a8ba. Report an issue: GitHub.