{"record":{"id":"b9aed0c323b0a8ba","repo":"OpenBB-finance/OpenBB","slug":"no-data-returned-for-the-given-symbols-b9aed0","errorCode":null,"errorMessage":"No data returned for the given symbols.","messagePattern":"No data returned for the given symbols\\.","errorType":"exception","errorClass":"EmptyDataError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/fmp/openbb_fmp/models/price_target_consensus.py","lineNumber":82,"sourceCode":"\n        symbols = query.symbol.split(\",\")  # type: ignore\n        results: list[dict] = []\n\n        async def get_one(symbol):\n            \"\"\"Get data for one symbol.\"\"\"\n            url = f\"https://financialmodelingprep.com/stable/price-target-consensus?symbol={symbol}&apikey={api_key}\"\n            result = await get_data_urls([url], **kwargs)\n\n            if not result or len(result) == 0:\n                warnings.warn(f\"Symbol Error: No data found for {symbol}\")\n\n            if result:\n                results.extend(result)\n\n        await asyncio.gather(*[get_one(symbol) for symbol in symbols])\n\n        if not results:\n            raise EmptyDataError(\"No data returned for the given symbols.\")\n\n        return sorted(\n            results,\n            key=(lambda item: (symbols.index(item.get(\"symbol\", len(symbols))))),\n        )\n\n    @staticmethod\n    def transform_data(\n        query: FMPPriceTargetConsensusQueryParams,\n        data: list[dict],\n        **kwargs: Any,\n    ) -> list[FMPPriceTargetConsensusData]:\n        \"\"\"Return the transformed data.\"\"\"\n        return [FMPPriceTargetConsensusData.model_validate(d) for d in data]\n","sourceCodeStart":64,"sourceCodeEnd":97,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/fmp/openbb_fmp/models/price_target_consensus.py#L64-L97","documentation":"Error \"No data returned for the given symbols.\" thrown in OpenBB-finance/OpenBB.","triggerScenarios":"Thrown at openbb_platform/providers/fmp/openbb_fmp/models/price_target_consensus.py:82 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the symbols are valid tickers with analyst coverage on FMP.","Check that your FMP subscription includes price target consensus data.","Try symbols with active analyst coverage."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}