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
Open interest
Copy
{
"topic": "openinterest",
"ts": 1618820361552,
"data": {
"s": "PERP_BTC_USDT", // symbol
"oi": "936.37", // open interest
"ts": 1618820200000 // time of last update
}
}
Topic: openinterest@{symbol}
Push interval: push every 1 second if open interest change and 10 seconds force update even if no change.
Subscribe to open interest.
Copy
{
"topic": "openinterest",
"ts": 1618820361552,
"data": {
"s": "PERP_BTC_USDT", // symbol
"oi": "936.37", // open interest
"ts": 1618820200000 // time of last update
}
}
Copy
{
"topic": "openinterest",
"ts": 1618820361552,
"data": {
"s": "PERP_BTC_USDT", // symbol
"oi": "936.37", // open interest
"ts": 1618820200000 // time of last update
}
}
Assistant
Responses are generated using AI and may contain mistakes.