API documentation
Sign in

Balances

Reading what each account group holds, per currency, and what part of it is free to trade or withdraw.

What each account group holds, per currency, and how much of it is free.

POST /api/3/account

One call returns every account group your credential can see. Unlike most reads, this one is not primarily scoped by accountGroupUuid — omit it and you get them all, each with its own per-currency accounts. Send it to narrow.

Read Account_Groups, not Wallets. The response still carries Wallets and Secondary_Wallets from an earlier shape of this API. They are untyped in source and superseded; everything you need is under Account_Groups.

Request

Sent as a signed body, like every /api/3 call. See making requests.

FieldTypeRequiredNotes
noncestringA counter that must increase with each request. An alternative to tonce
toncestringThe current Unix time in microseconds. Send this or nonce
userUuidstringThe user the credentials act for. Set automatically from the API key; sending it has no effect
filterZeroBalanceAccountsbooleanOptionalSend true to leave out accounts holding nothing. Omitted, empty accounts are included
accountGroupUuidstringOptionalRestrict the answer to one account group. Omitted, every group your credential can see is returned

Response

Carries the resultCode, description and timestamp fields common to every /api/3 response.

FieldTypeNotes
dataobjectThe balances, described below. Untyped in source, hence object
userUuidstringThe user the answer was assembled for

Info

The body of data. Most of it predates this API being used for brokerage and is retained for compatibility.

FieldTypeNotes
CreatedstringWhen the account was created
IdstringYour identifier on the platform
IndexstringRetained for compatibility. Not meaningful to a client
LanguagestringThe account's configured language
Last_LoginstringWhen it last signed in
LoginstringThe account's login name
Monthly_VolumestringTraded volume for the current month
Trade_FeestringThe fee rate applied to trades
RightsobjectThe permissions attached to the credential
WalletsobjectLegacy, and untyped in source. Superseded by Account_Groups — do not build against it
Secondary_WalletsobjectLegacy, on the same terms as Wallets
Account_GroupsAccountGroupInfo[]The part to read. One entry per account group, each holding its own per-currency accounts

AccountGroupInfo

One account group and its accounts.

FieldTypeNotes
AccountGroup_UuidstringWhat you send as accountGrpUuid when subscribing or ordering, and as accountGroupUuid on REST reads
AccountGroup_NamestringThe group's label, for display
Owner_UuidstringThe entity the group belongs to
Owner_NamestringThat entity's name
Owner_ShortcodestringThat entity's short code
NaturalbooleanWhether the owner is a natural person rather than an organisation
Accounts{ string: AccountInfo }The group's accounts, keyed by currency code — one entry per currency, not an array

AccountInfo

One currency's account within a group. Every balance is a CurrencyValue.

FieldTypeNotes
BalanceCurrencyValueEverything the account holds, including what is committed elsewhere
Available_BalanceCurrencyValueThe part free to withdraw or move. This is the figure to check before a transfer
Brokerage_Available_BalanceCurrencyValueThe part committed to brokerage and therefore tradeable. Move funds here with an internal transfer
Unsettled_Sell_BalanceCurrencyValueSold and not yet settled
Unsettled_Buy_BalanceCurrencyValueBought and not yet settled
ccystringThe currency this account holds, repeating the key it sits under
Owner_UuidstringThe entity the account belongs to
UuidstringThe account's identifier

CurrencyValue

An amount, rendered several ways. Every field is a string, and value is already rounded to a fixed number of decimal places — 5 for cash currencies, 8 otherwise. Parse value for arithmetic and accept that precision, or use valueInt.

FieldTypeNotes
displayShortstringdisplay rounded to two decimal places. Never use it for arithmetic
valueIntstringThe same amount scaled to an integer by the currency's decimal places, so no fractional part is lost
currencystringThe currency code the amount is in
displaystringvalue with thousands separators and the currency appended, for showing to a person
valuestringThe amount, formatted to the currency's decimal places without grouping. Empty string when there is no amount rather than 0

We use cookies to improve your experience and analyse site traffic. Cookie policy