Skip to content

Get Currencies

Returns the platform currency registry. money_digits specifies the fractional precision for monetary values denominated in that currency. The response is served from the in-memory registry. Common fiat and crypto currencies are seeded by the platform; existing currencies used by legacy groups are imported with their previous precision. This registry setup does not rewrite historical records or account balances.

GET

https://{broker_domain}/currencies

Authorization

Requires a valid session JWT. Available to SESSION_USER, SESSION_CUSTOMER, SESSION_MANAGER, SESSION_ADMIN, SESSION_DEALER, SESSION_CRM_MANAGER, and SESSION_CRM_ADMIN.

Request

No request body or query parameters are required.

Success response (200)

{
  "rows": [
    { "code": "USD", "name": "US Dollar", "money_digits": 2 },
    { "code": "JPY", "name": "Yen", "money_digits": 0 }
  ]
}

Response Parameters

Field Type Description
rows array Currency records available to groups.
rows[].code string Immutable uppercase currency code, 1–16 characters; allowed characters are A-Z, 0-9, ., _, and -.
rows[].name string Immutable display name, 1–128 characters.
rows[].money_digits integer Number of fractional digits for monetary values in this currency, from 0 to 8.

Errors

HTTP Error Description
401 PERMISSION_DENIED Missing or invalid session JWT.
503 CURRENCY_UNAVAILABLE Currency registry is unavailable.

Deployment and compatibility

Deploy the rebuilt server and STCore together (host API ABI 13, STCore library ABI 15). The group precision occupies a former reserved slot; older binaries must not interpret it using currency-name guesses. Currency definitions are stored in config.db and should be retained with platform configuration backups. Restoring a group-only backup requires its currency codes to exist in the current registry; unknown references are rejected before replacing group data.