Balance
{{WSS_SERVER}}/ws/user
Last modified:2024-01-29 09:21:46
Before receiving real-time updates about your account balances through the "mybalance" channel, it's essential to subscribe to Authorize channel.
Update Speed
Message Structure
Send Message
1.
1.
2.
2.
1.
2.
3.
1.
2.
Subscribe Example
{
"type": "subscribe",
"channel": "mybalance",
"id": "random string"
}
Unsubscribe Example
{
"type": "unsubscribe",
"channel": "mybalance",
"id": "random string"
}
Response Example
Initial Message
1.
1.
2.
2.
1.
2.
3.
1.
1.
2.
1.
3.
1.
4.
1.
Response Example
{
"type": "init",
"channel": "mybalance",
"assets":
{
"assetName": "USDT",
"available": 18112.267984,
"inUse": 47.562821,
"event": "INIT"
},
{
"assetName": "WBTC",
"available": 18112,
"inUse": 0,
"event": "INIT"
}
}
Update Message
1.
1.
2.
2.
1.
2.
3.
1.
1.
2.
1.
3.
1.
4.
1.
5.
1.
6.
1.
Update Example
Request
Header Params
VESSEL-API-KEY
string
required
Default:
{{API_KEY}}
VESSEL-PASSPHRASE
string
required
Default:
{{API_PASSPHRASE}}
VESSEL-SIGNATURE
string
required
VESSEL-TIMESTAMP
string
required
Modified at 2024-01-29 09:21:46