Currencies
list-currencies (GET /v1/currencies) returns every currency Budget Thing
supports (66 ISO 4217 currencies) with what you need to format an amount the
way the app does. It is one of the few
public operations: it
needs no access token and returns the same list to everyone.
curl -s "https://api.budgetthing.com/api/v1/currencies"
The response is a JSON object keyed by currency code, not an array:
{
"USD": {
"code": "USD",
"name": "US Dollar",
"nameTranslationKey": "currencies.USD.name",
"regions": ["US", "AS", "BQ", "EC", "FM", "GU", "IO", "MH", "MP", "PA", "PR", "PW", "SV", "TC", "TL", "UM", "VG", "VI"],
"symbol": "$",
"precision": 2,
"decimalSeparator": ".",
"thousandsSeparator": ",",
"symbolPosition": "before"
},
"SEK": {
"code": "SEK",
"name": "Swedish Krona",
"nameTranslationKey": "currencies.SEK.name",
"regions": ["SE"],
"symbol": "kr",
"precision": 2,
"decimalSeparator": ",",
"thousandsSeparator": " ",
"symbolPosition": "after"
}
}
| Field | Meaning |
|---|---|
code | The ISO 4217 code, the same as the key. |
name | The English name. |
nameTranslationKey | Always currencies.<code>.name, the key the Budget Thing apps translate the name with. |
regions | ISO 3166-1 alpha-2 codes of the countries and territories where the currency is normally used. |
symbol | The symbol, for example $, € or kr. Several currencies share a symbol (¥ is both JPY and CNY), so show the code where that matters. |
precision | The currency's usual number of decimal places: 0 (JPY, ISK), 2 (most) or 3 (BHD, JOD, OMR). |
decimalSeparator, thousandsSeparator | The usual separators. The thousands separator can be a space or '. |
symbolPosition | before or after the number. |
These are the currency's defaults. A workspace's own money format can differ:
amounts in the API are integers in the workspace's minor unit, so read the
workspace's currencyPrecision before converting an amount, rather than this
list's precision. See Amounts and dates.
The list changes only with a Budget Thing release, so you can cache it.