{"record":{"id":"f093df62084f336f","repo":"OpenBB-finance/OpenBB","slug":"no-data-was-found-using-the-applied-filters-check","errorCode":null,"errorMessage":"No data was found using the applied filters. Check the parameters.","messagePattern":"No data was found using the applied filters\\. Check the parameters\\.","errorType":"exception","errorClass":"EmptyDataError","httpStatus":null,"severity":"warning","filePath":"openbb_platform/providers/fmp/openbb_fmp/models/currency_snapshots.py","lineNumber":147,"sourceCode":"                    if isinstance(query.counter_currencies, list)\n                    else query.counter_currencies.split(\",\")\n                )\n                temp = (\n                    temp.query(\"`counter_currency`.isin(@counter_currencies)\")\n                    .set_index(\"counter_currency\")\n                    # Sets the counter currencies in the order they were requested.\n                    .filter(items=counter_currencies, axis=0)\n                    .reset_index()\n                ).rename(columns={\"index\": \"counter_currency\"})\n            # If there are no records, don't concatenate.\n            if len(temp) > 0:\n                # Convert the Unix timestamp to a datetime.\n                temp.timestamp = temp.timestamp.apply(\n                    lambda x: safe_fromtimestamp(x, tz=timezone.utc)\n                )\n                new_df = concat([new_df, temp])\n            if len(new_df) == 0:\n                raise EmptyDataError(\n                    \"No data was found using the applied filters. Check the parameters.\"\n                )\n            new_df = new_df.replace({nan: None})\n\n        return [\n            FMPCurrencySnapshotsData.model_validate(d)\n            for d in new_df.reset_index(drop=True).to_dict(orient=\"records\")\n        ]\n","sourceCodeStart":129,"sourceCodeEnd":156,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/providers/fmp/openbb_fmp/models/currency_snapshots.py#L129-L156","documentation":"Raised as EmptyDataError by FMPCurrencySnapshots.transform_data when the raw data was non-empty but no rows survived filtering by base currency and quote_type. For quote_type='indirect' symbols must start with the base code; otherwise they must end with it. The error means your requested base(s) matched nothing in the snapshot.","triggerScenarios":"Calling obb.currency.snapshots(base='XYZ') where no returned symbol starts/ends with 'XYZ'; using a base code FMP does not quote (e.g. an exotic or misspelled code like 'EURR' or 'UST'); requesting quote_type='indirect' when FMP only lists the pair the other way around.","commonSituations":"Misspelled ISO currency codes, unsupported exotic currencies, mismatch between the requested quote_type convention and how FMP names the pairs, or combining multiple base currencies where one is valid and another is not.","solutions":["Use valid 3-letter ISO-4217 base codes that FMP actually quotes (USD, EUR, JPY, GBP, ...)","Try the same call with quote_type flipped ('direct' vs 'indirect') since pair naming direction differs","Call once without base filters and inspect the 'symbol' column to see which bases exist, then restrict to those","Catch EmptyDataError and report 'unsupported base currency' to the caller"],"exampleFix":"# before\nres = obb.currency.snapshots(provider='fmp', base='UST', quote_type='indirect')  # typo + wrong direction\n\n# after\nres = obb.currency.snapshots(provider='fmp', base='USD', quote_type='direct')","handlingStrategy":"validation","validationCode":"KNOWN_BASES = {'USD','EUR','JPY','GBP','CHF','CAD','AUD','NZD','CNH'}  # subset FMP quotes\nbase = 'XYZ'\nif base.upper() not in KNOWN_BASES:\n    raise ValueError(f'Unsupported base currency: {base}')","typeGuard":"null","tryCatchPattern":"from openbb_core.provider.utils.errors import EmptyDataError\ntry:\n    snap = obb.currency.snapshots(provider='fmp', base=base, quote_type=qt)\nexcept EmptyDataError:\n    # retry with flipped quote_type before giving up\n    snap = obb.currency.snapshots(provider='fmp', base=base, quote_type='indirect' if qt == 'direct' else 'direct')","preventionTips":["Whitelist base currencies to ISO-4217 codes FMP actually quotes","Remember indirect vs direct changes whether the base is a prefix or suffix of the pair symbol","Test one new base currency standalone before adding it to batch calls"],"tags":["fmp","empty-data","currency","filter","validation"],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}