Meridianmeridian

Currency Code (ISO 4217)

finance.currency.currency_code

Three-letter currency code as defined by ISO 4217. Examples: USD, EUR, GBP, JPY. Used in financial data, trading systems, and international commerce.

Domain
finance
Category
currency
Casts to
VARCHAR
Scope
Universal

Try it

CLI
$ finetype infer -i "USD"
→ finance.currency.currency_code

DuckDB

Detect
SELECT finetype('USD');
-- → 'finance.currency.currency_code'
Cast expression
UPPER(CAST({col} AS VARCHAR))
Safe cast pipeline
-- 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';

JSON Schema

finetype schema 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))"
}

Examples

USDEURGBPJPYCHFAUD

Aliases

iso_4217currency_iso