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
Account
Copy
# trading mode is spot only
{
"topic": "account",
"ts": 1716861043337,
"data":
{
"m": "PURE_SPOT", // trading mode
"v": "10000" // account total value
}
}
# trading mode is spot & margin
{
"topic": "account",
"ts": 1716861043337,
"data":
{
"m": "MARGIN", // trading mode
"l": 4, // account leverage for margin
"mr": "7739.3757", // margin ratio
"omr": "7739.3757", // open margin ratio
"imr": "1.0006", // initial margin ratio
"mmr": "0.0126", // maintenance margin ratio
"tc": "1146085.27376211", // total collateral
"fc": "1145937.09993548", // free collateral
"v": "10000" // account total value
}
}
# trading mode is spot & futures
{
"topic": "account",
"ts": 1716861043337,
"data":
{
"m": "FUTURE", // trading mode
"M": "ISOLATED", // default margin mode for futures
"P": "ONE_WAY", // position mode
"mr": "7739.3757", // margin ratio
"omr": "7739.3757", // open margin ratio
"imr": "1.0006", // initial margin ratio
"mmr": "0.0126", // maintenance margin ratio
"tc": "1146085.27376211", // total collateral
"fc": "1145937.09993548", // free collateral
"v": "10000" // account total value
}
}
Topic: account
Push interval: push on update and every 1 second
Subscribe to receive account information updates. Updates will be sent both when specific events occur, such as a change in trading mode, and at regular intervals.
Copy
# trading mode is spot only
{
"topic": "account",
"ts": 1716861043337,
"data":
{
"m": "PURE_SPOT", // trading mode
"v": "10000" // account total value
}
}
# trading mode is spot & margin
{
"topic": "account",
"ts": 1716861043337,
"data":
{
"m": "MARGIN", // trading mode
"l": 4, // account leverage for margin
"mr": "7739.3757", // margin ratio
"omr": "7739.3757", // open margin ratio
"imr": "1.0006", // initial margin ratio
"mmr": "0.0126", // maintenance margin ratio
"tc": "1146085.27376211", // total collateral
"fc": "1145937.09993548", // free collateral
"v": "10000" // account total value
}
}
# trading mode is spot & futures
{
"topic": "account",
"ts": 1716861043337,
"data":
{
"m": "FUTURE", // trading mode
"M": "ISOLATED", // default margin mode for futures
"P": "ONE_WAY", // position mode
"mr": "7739.3757", // margin ratio
"omr": "7739.3757", // open margin ratio
"imr": "1.0006", // initial margin ratio
"mmr": "0.0126", // maintenance margin ratio
"tc": "1146085.27376211", // total collateral
"fc": "1145937.09993548", // free collateral
"v": "10000" // account total value
}
}
Copy
# trading mode is spot only
{
"topic": "account",
"ts": 1716861043337,
"data":
{
"m": "PURE_SPOT", // trading mode
"v": "10000" // account total value
}
}
# trading mode is spot & margin
{
"topic": "account",
"ts": 1716861043337,
"data":
{
"m": "MARGIN", // trading mode
"l": 4, // account leverage for margin
"mr": "7739.3757", // margin ratio
"omr": "7739.3757", // open margin ratio
"imr": "1.0006", // initial margin ratio
"mmr": "0.0126", // maintenance margin ratio
"tc": "1146085.27376211", // total collateral
"fc": "1145937.09993548", // free collateral
"v": "10000" // account total value
}
}
# trading mode is spot & futures
{
"topic": "account",
"ts": 1716861043337,
"data":
{
"m": "FUTURE", // trading mode
"M": "ISOLATED", // default margin mode for futures
"P": "ONE_WAY", // position mode
"mr": "7739.3757", // margin ratio
"omr": "7739.3757", // open margin ratio
"imr": "1.0006", // initial margin ratio
"mmr": "0.0126", // maintenance margin ratio
"tc": "1146085.27376211", // total collateral
"fc": "1145937.09993548", // free collateral
"v": "10000" // account total value
}
}
Assistant
Responses are generated using AI and may contain mistakes.