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
Public Market Data
Mark price
Copy
{
"topic": "markprice@PERP_ETH_USDT",
"ts": 1618820361552,
"data": {
"s": "PERP_ETH_USDT", // symbol
"px": "3987.2", // mark price
"ts": 1618820361552 // timestamp at which the mark price was calculated
}
}
Topic: markprice@{symbol}
Push interval: 1s
Subscribe to the mark price of the symbol.
Copy
{
"topic": "markprice@PERP_ETH_USDT",
"ts": 1618820361552,
"data": {
"s": "PERP_ETH_USDT", // symbol
"px": "3987.2", // mark price
"ts": 1618820361552 // timestamp at which the mark price was calculated
}
}
Copy
{
"topic": "markprice@PERP_ETH_USDT",
"ts": 1618820361552,
"data": {
"s": "PERP_ETH_USDT", // symbol
"px": "3987.2", // mark price
"ts": 1618820361552 // timestamp at which the mark price was calculated
}
}
Assistant
Responses are generated using AI and may contain mistakes.