Gyvar docs

The Balance object

The shape of a balance wherever the API returns one.

Every endpoint that returns a balance returns this shape, wrapped in a data envelope.

Attributes

currency

string · always present

The asset code - BTC, USDT, USDC.

amount

string · always present

The balance as a decimal string with the asset's full decimal places ("120.500000").

amount_minor

string · always present

The same balance in minor units. Use this for arithmetic.

The Balance object
{
  "currency": "USDT",
  "amount": "120.500000",
  "amount_minor": "120500000"
}

On this page