CurrencyBeacon · Schema
CurrencyInfo
Schema describing a single currency entry as returned by the CurrencyBeacon /currencies endpoint.
CurrencyExchange RatesForexCryptocurrencyFinancial DataHistorical RatesCurrency Conversion
Properties
| Name | Type | Description |
|---|---|---|
| short_code | string | ISO 4217 currency code or cryptocurrency ticker |
| name | string | Full name of the currency |
| symbol | string | Currency symbol |
| precision | integer | Number of decimal places used for this currency |
| subunit | integer | Number of subunits in one unit |
| subunit_to_unit | integer | Subunit to unit conversion factor |
| isCrypto | boolean | Whether the currency is a cryptocurrency |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/currencybeacon/main/json-schema/currency-info.json",
"title": "CurrencyInfo",
"description": "Schema describing a single currency entry as returned by the CurrencyBeacon /currencies endpoint.",
"type": "object",
"properties": {
"short_code": {
"type": "string",
"description": "ISO 4217 currency code or cryptocurrency ticker",
"minLength": 2,
"maxLength": 10,
"example": "USD"
},
"name": {
"type": "string",
"description": "Full name of the currency",
"example": "United States Dollar"
},
"symbol": {
"type": "string",
"description": "Currency symbol",
"example": "$"
},
"precision": {
"type": "integer",
"description": "Number of decimal places used for this currency",
"minimum": 0,
"example": 2
},
"subunit": {
"type": "integer",
"description": "Number of subunits in one unit",
"minimum": 1,
"example": 100
},
"subunit_to_unit": {
"type": "integer",
"description": "Subunit to unit conversion factor",
"minimum": 1,
"example": 100
},
"isCrypto": {
"type": "boolean",
"description": "Whether the currency is a cryptocurrency",
"example": false
}
},
"required": ["short_code", "name", "symbol", "isCrypto"]
}