{"record":{"id":"38420632fae536c0","repo":"OpenBB-finance/OpenBB","slug":"symbol-is-a-required-field-for-fmp-384206","errorCode":null,"errorMessage":"Symbol is a required field for FMP.","messagePattern":"Symbol is a required field for FMP\\.","errorType":"validation","errorClass":"OpenBBError","httpStatus":null,"severity":"error","filePath":"openbb_platform/providers/fmp/openbb_fmp/models/price_target_consensus.py","lineNumber":30,"sourceCode":")\nfrom openbb_core.provider.utils.errors import EmptyDataError\nfrom pydantic import field_validator\n\n\nclass FMPPriceTargetConsensusQueryParams(PriceTargetConsensusQueryParams):\n    \"\"\"FMP Price Target Consensus Query.\n\n    Source: https://site.financialmodelingprep.com/developer/docs#price-target-consensus\n    \"\"\"\n\n    __json_schema_extra__ = {\"symbol\": {\"multiple_items_allowed\": True}}\n\n    @field_validator(\"symbol\", mode=\"before\", check_fields=False)\n    @classmethod\n    def check_symbol(cls, value):\n        \"\"\"Check the symbol.\"\"\"\n        if not value:\n            raise OpenBBError(\"Symbol is a required field for FMP.\")\n        return value\n\n\nclass FMPPriceTargetConsensusData(PriceTargetConsensusData):\n    \"\"\"FMP Price Target Consensus Data.\"\"\"\n\n\nclass FMPPriceTargetConsensusFetcher(\n    Fetcher[\n        FMPPriceTargetConsensusQueryParams,\n        list[FMPPriceTargetConsensusData],\n    ]\n):\n    \"\"\"FMP Price Target Consensus Fetcher.\"\"\"\n\n    @staticmethod\n    def transform_query(params: dict[str, Any]) -> FMPPriceTargetConsensusQueryParams:\n        \"\"\"Transform the query params.\"\"\"","sourceCodeStart":12,"sourceCodeEnd":48,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/fmp/openbb_fmp/models/price_target_consensus.py#L12-L48","documentation":"Error \"Symbol is a required field for FMP.\" thrown in OpenBB-finance/OpenBB.","triggerScenarios":"Thrown at openbb_platform/providers/fmp/openbb_fmp/models/price_target_consensus.py:30 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide the 'symbol' parameter with a valid ticker.","Ensure the symbol string is non-empty before calling the endpoint."],"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"}