finance.currency.currency_codeThree-letter currency code as defined by ISO 4217. Examples: USD, EUR, GBP, JPY. Used in financial data, trading systems, and international commerce.
$ finetype infer -i "USD"
→ finance.currency.currency_codeSELECT finetype('USD');
-- → 'finance.currency.currency_code'UPPER(CAST({col} AS VARCHAR))-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS VARCHAR) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'finance.currency.currency_code';{
"$id": "https://meridian.online/schemas/finance.currency.currency_code",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Three-letter currency code as defined by ISO 4217. Examples: USD, EUR, GBP, JPY. Used in financial data, trading systems, and international commerce.",
"examples": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"AUD"
],
"pattern": "^[A-Z]{3}$",
"title": "Currency Code (ISO 4217)",
"type": "string",
"x-finetype-broad-type": "VARCHAR",
"x-finetype-transform": "UPPER(CAST({col} AS VARCHAR))"
}USDEURGBPJPYCHFAUD