{"record":{"id":"9b392c43518c39d2","repo":"OpenBB-finance/OpenBB","slug":"no-data-was-found-for-the-given-symbol","errorCode":null,"errorMessage":"No data was found for the given symbol.","messagePattern":"No data was found for the given symbol\\.","errorType":"exception","errorClass":"EmptyDataError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/fmp/openbb_fmp/models/etf_holdings.py","lineNumber":116,"sourceCode":"        **kwargs: Any,\n    ) -> list[dict]:\n        \"\"\"Return the raw data from the FMP endpoint.\"\"\"\n        # pylint: disable=import-outside-toplevel\n        from openbb_fmp.utils.helpers import get_data_many\n\n        api_key = credentials.get(\"fmp_api_key\") if credentials else \"\"\n        url = f\"https://financialmodelingprep.com/stable/etf/holdings?symbol={query.symbol}&apikey={api_key}\"\n        return await get_data_many(url, **kwargs)\n\n    @staticmethod\n    def transform_data(\n        query: FMPEtfHoldingsQueryParams,\n        data: list[dict],\n        **kwargs: Any,\n    ) -> list[FMPEtfHoldingsData]:\n        \"\"\"Return the transformed data.\"\"\"\n        if not data:\n            raise EmptyDataError(\"No data was found for the given symbol.\")\n        return [FMPEtfHoldingsData.model_validate(item) for item in data]\n","sourceCodeStart":98,"sourceCodeEnd":118,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/fmp/openbb_fmp/models/etf_holdings.py#L98-L118","documentation":"Error \"No data was found for the given symbol.\" thrown in OpenBB-finance/OpenBB.","triggerScenarios":"Thrown at openbb_platform/providers/fmp/openbb_fmp/models/etf_holdings.py:116 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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."],"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"}