Balance
CHANNELwss://wss.prime.kraken.com/ws/v1
balanceAuthentication Required
Request for stream of Balance updates. Provides real-time account balance information.
Subscribe Request
- Subscribe Schema
- Example
Request ID - will be echoed back in the response structure.
subscribe
Request type.
Array containing the Balance stream configuration.
Balance
Subscription name.
Optional list of currencies to filter these balance updates by, default is all available currencies.
If provided, will provide converted equivalent amounts of each currency in the provided Equivalent Currency.
{
"reqid": 11,
"type": "subscribe",
"streams": [
{
"name": "Balance",
"EquivalentCurrency": "USD"
}
]
}
Response
- Response Schema
- Example
A number that relates this response to a request.
The type of message sent.
An ISO-8601 UTC string of the form 2019-02-13T05:17:32.000000Z
.
If this is initial data for a request, the initial flag will be set.
The sequence number for this response per request.
"Update" or "Remove" - tells the client if the given entity should be removed or added/updated.
Array of Balance data.
Currency of this balance update.
Current balance amount in the specified currency.
Amount available for trading right now.
If requested equivalent balance amount, will provide a Balance update in the specified equivalent currency.
Requested Equivalent Currency.
Amount of this balance in the equivalent currency.
Equivalent amount of amount available for trading right now.
{
"reqid": 11,
"type": "Balance",
"ts": "2021-09-16T16:17:06.892914Z",
"initial": true,
"seqNum": 1,
"data": [
{
"Currency": "USD",
"Amount": "-1928479.77953598",
"AvailableAmount": "-1928479.77953598",
"Equivalent": {
"Currency": "USD",
"Amount": "-1928479.78",
"AvailableAmount": "-1928479.78"
}
},
{
"Currency": "BTC",
"Amount": "40.15480673",
"AvailableAmount": "40.15480673",
"Equivalent": {
"Currency": "USD",
"Amount": "1930241.56",
"AvailableAmount": "1930241.56"
}
}
]
}