OpenBB-finance/OpenBB · error · EmptyDataError

No indicators found for the given query.

Error message

No indicators found for the given query.

What it means

Error "No indicators found for the given query." thrown in OpenBB-finance/OpenBB.

Source

Thrown at openbb_platform/providers/imf/openbb_imf/models/available_indicators.py:161

        if isinstance(query.keywords, str):
            keywords = query.keywords.split(",")
        elif isinstance(query.keywords, list):
            keywords = query.keywords
        else:
            keywords = None

        try:
            results = metadata.search_indicators(
                query=query.query.replace(",", ", ") if query.query else "",
                dataflows=dataflows,
                keywords=keywords,
            )
        except Exception as e:  # pylint: disable=broad-except
            raise OpenBBError(e) from e

        if not results:
            raise EmptyDataError("No indicators found for the given query.")

        return results

    @staticmethod
    def transform_data(
        query: ImfAvailableIndicatorsQueryParams,
        data: list[dict],
        **kwargs: Any,
    ) -> list[ImfAvailableIndicatorsData]:
        """Transform the data."""
        results = []
        for d in data:
            # Build the ready-to-use symbol: dataflow_id::indicator_code
            dataflow_id = d.get("dataflow_id", "")
            indicator_code = d.get("indicator", "")
            d["symbol"] = f"{dataflow_id}::{indicator_code}"
            results.append(ImfAvailableIndicatorsData.model_validate(d))
        return results

View on GitHub (pinned to 3e071fcc2c)

Solutions

  1. Adjust the query: broaden keywords or specify different dataflows.
  2. Verify the dataflow IDs are correct with the IMF metadata endpoints.

When it happens

Trigger: Thrown at openbb_platform/providers/imf/openbb_imf/models/available_indicators.py:161 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/44f37169465e9d4c. Report an issue: GitHub.