Money Dictionary

{
  "asset": {
    "currency": "BTC",
    "amount": "1.00000000",
    "operation": "debit",
    "balance": "2.00000000"
  },
  "settlement": {
    "currency": "USD",
    "amount": "11824.23"
  }
  ...
}

Money values for fiat and crypto currencies are represented as a dictionary with currency and amount fields.

On response-side money objects, two additional fields may be present: operation, whose value is either debit or credit and indicates the direction of the movement, and balance, the resulting balance for that currency after the operation.

Fiat currencies and cryptocurrencies have different decimal precision, be careful when parsing these values using the precision that corresponds with the given currency.


Did this page help you?