Skip to main content

Current Open positions

Description

Subscribe all current open interest in the market.

Pushing Frequency

Data will be pushed every 3 second when there are changes in limits, and will not be pushed when there is no changes on limit.

Channel

open_interest

Request Parameters

ParameterRequiredTypeDescription
eventYesStringOperation: subscribe, unsubscribe
channelYesArrayopen_interest
symbolsYesArraytrading pair array

Request Response:

ParameterTypeDescription
eventStringOperation: subscribe, unsubscribe
channelStringopen_interest
symbolsArraytrading pair array
messageStringError message

Push Data

ParameterTypeDescription
channelStringopen_interest
dataArrayThe subscribed data
> sStringA trading pair, consisting of two currencies: base currency and quote currency
> oInterestStringCurrent open interest
> tsLongPush time (millisecond)

Request Example

{
"event": "subscribe",
"channel": ["open_interest"],
"symbols": ["BTC_USDT_PERP"]
}

Push Data Example

{
"channel": "open_interest",
"data": [
{
"s": "BTC_USDT_PERP",
"oInterest": "19774.000000000000000000",
"ts": 1747296831379
}
],
"action": "snapshot"
}