Getting Started
Public Data
Trading
- POSTPlace order
- DELCancel order
- DELCancel multiple orders
- GETGet order
- GETGet orders
- PUTEdit order
- POSTPlace algo order
- DELCancel algo order
- DELCancel multiple algo orders
- DELCancel all orders by symbol
- GETGet algo order
- GETGet algo orders
- PUTEdit algo order
- GETGet transaction by trade id (last 3 months)
- GETGet transaction history (in the past 2 years)
- GETGet trading fee
- POSTCancel all after
Account
Assets
Futures
Spot Margin
Websocket Streams
- Introduction
- Public Market Data
- Private User Data
- Commands
Private User Data
Balance
Copy
{
"topic": "balance",
"ts": 1618757714353,
"data": {
"balances": [
{
"t": "BTC", // token
"h": "100", // holding
"f": "0", // frozen
"i": "0", // interest
"psq": "0", // pending short qty
"plq": "0", // pending long qty
"s": "0", // staked
"u": "0", // unbonding
"v": "50.5", // vault
"l": "0", // launchpad vault
"e": "0", // earn
"aop": "0", // average open price
"pnl": "0", // 24h PnL
"roi": "0.01", // 24h PnL percentage
"fee": "0", // 24h fee
"mp": "50000", // mark price
"ver": 0, // version
"b": "166", // trial fund bonus
"lcr": 30, // loss cover ratio
"ts": 1618757713353 // timestamp of actual balance change
},
...
]
}
}
Topic: balance
Push interval: push on update
Subscribe to balance updates. Updates will be sent only when specific events occur, such as order executions, placements, or cancellations. Updates will not be triggered by changes in the mark price.
Copy
{
"topic": "balance",
"ts": 1618757714353,
"data": {
"balances": [
{
"t": "BTC", // token
"h": "100", // holding
"f": "0", // frozen
"i": "0", // interest
"psq": "0", // pending short qty
"plq": "0", // pending long qty
"s": "0", // staked
"u": "0", // unbonding
"v": "50.5", // vault
"l": "0", // launchpad vault
"e": "0", // earn
"aop": "0", // average open price
"pnl": "0", // 24h PnL
"roi": "0.01", // 24h PnL percentage
"fee": "0", // 24h fee
"mp": "50000", // mark price
"ver": 0, // version
"b": "166", // trial fund bonus
"lcr": 30, // loss cover ratio
"ts": 1618757713353 // timestamp of actual balance change
},
...
]
}
}
Copy
{
"topic": "balance",
"ts": 1618757714353,
"data": {
"balances": [
{
"t": "BTC", // token
"h": "100", // holding
"f": "0", // frozen
"i": "0", // interest
"psq": "0", // pending short qty
"plq": "0", // pending long qty
"s": "0", // staked
"u": "0", // unbonding
"v": "50.5", // vault
"l": "0", // launchpad vault
"e": "0", // earn
"aop": "0", // average open price
"pnl": "0", // 24h PnL
"roi": "0.01", // 24h PnL percentage
"fee": "0", // 24h fee
"mp": "50000", // mark price
"ver": 0, // version
"b": "166", // trial fund bonus
"lcr": 30, // loss cover ratio
"ts": 1618757713353 // timestamp of actual balance change
},
...
]
}
}
Assistant
Responses are generated using AI and may contain mistakes.