Get balances
GET /v1/balances
Get current currency balance from all or single exchange.
Query Parameters
- exchange_id string
Filter the balances to the specific exchange.
- 200
- 490
Collection of balances.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- exchange_id string
Exchange identifier used to identify the routing destination.
data object[]
Array [asset_id_exchange stringExchange currency code.
asset_id_coinapi stringCoinAPI currency code.
balance doubleValue of the current total currency balance on the exchange.
available doubleValue of the current available currency balance on the exchange that can be used as collateral.
locked doubleValue of the current locked currency balance by the exchange.
last_updated_by stringPossible values: [
INITIALIZATION
,BALANCE_MANAGER
,EXCHANGE
]Source of the last modification.
rate_usd doubleCurrent exchange rate to the USD for the single unit of the currency.
traded doubleValue of the current total traded.
]- ]
[
{
"exchange_id": "KRAKEN",
"data": [
{
"asset_id_exchange": "XBT",
"asset_id_coinapi": "BTC",
"balance": 0.00134444,
"available": 0.00134444,
"locked": 0,
"last_updated_by": "EXCHANGE",
"rate_usd": 1355.12,
"traded": 0.007
}
]
}
]
Exchange is unreachable.
- appliction/json
- Schema
- Example (from schema)
Schema
- type string
Message type, constant.
- reject_reason RejectReason
Possible values: [
OTHER
,EXCHANGE_UNREACHABLE
,EXCHANGE_RESPONSE_TIMEOUT
,ORDER_ID_NOT_FOUND
,INVALID_TYPE
,METHOD_NOT_SUPPORTED
,JSON_ERROR
]Cause of rejection.
- exchange_id string
If the message related to exchange, then the identifier of the exchange will be provided.
- message string
Message text.
- rejected_message string
Value of rejected request, if available.
{
"type": "MESSAGE_REJECT",
"reject_reason": "ORDER_ID_NOT_FOUND",
"exchange_id": "BINANCE",
"message": "Order with ID: BINANCE-7d8a-4888 not found",
"rejected_message": "{\"client_order_id\":\"BINANCE-7d8a-4888\",\"exchange_id\":\"BINANCE\",\"type\":\"ORDER_CANCEL_SINGLE_REQUEST\"}"
}