WebSocket · Private

Spot Account Channel

Gets spot account information and pushes data per the subscription dimension on the first subscription. Data is pushed when any of the following happens:

Login requiredPush frequency: real-time (on balance change)
WSSwss://stream-api.koinsayang.com/v2/ws/private
ChannelspotAssets
instTypeSPOT
Private channels require login with the same ACCESS-KEY, passphrase, timestamp and signature as REST. See Authentication & Signing.
  • Order closed
  • Transfer
  • Deposit
  • Withdrawal

Subscribe request

JSON
{
"op": "subscribe",
"args": [
{
"instType": "SPOT",
"channel": "spotAssets",
"coin": "default"
}
]
}

Push data format

JSON
{
"action": "snapshot",
"arg": {
"instType": "SPOT",
"channel": "spotAssets",
"instId": "default"
},
"data": [
{
"coin": "USDT",
"available": "5116734.53215235216",
"frozen": "0",
"locked": "0",
"uTime": "1767358736200"
},
{
"coin": "BTC",
"available": "9999998.4865669515",
"frozen": "0.1",
"locked": "0",
"uTime": "1767358736200"
}
]
}

Fields

FieldTypeDescription
coinStringCoin
availableStringAvailable balance
frozenStringFrozen balance
lockedStringLocked balance
uTimeStringUpdate time