Skip to main content

Get Open Interest and Volume

Get Open Interest and Volume​

Get historical open interest and volume data for contract products.

Request URL​

GET /deepcoin/market/open-interest-volume

Request Parameters​

Field NameRequiredTypeDescription
instIdtruestringContract product ID, for example BTC-USDT-SWAP
barfalsestringTime granularity
Default: 5m
Supported values: 5m, 15m, 30m, 1H, 4H, 1D
startTimefalseintegerStart timestamp in milliseconds. When only startTime is provided, data with ts >= startTime is returned
endTimefalseintegerEnd timestamp in milliseconds. When only endTime is provided, data with ts <= endTime is returned
limitfalseintegerMaximum number of results is 300
Default: 100

If neither startTime nor endTime is provided, the latest data is returned. Data is sorted by ts in descending order.

Response Parameters​

Field NameTypeDescription
tsstringTimestamp in milliseconds
oistringOpen interest, in contract count
volstringVolume, in contract count

Response Example​

{
"code": "0",
"msg": "Success",
"data": [
{
"ts": "1781222400000",
"oi": "36214521",
"vol": "41954711"
}
]
}