GET /api/v5/public/open-interest
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/web3okx/api/v5/public/open-interestCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freePublic open interest
Parameters
| name | in | type | description | |
|---|---|---|---|---|
instType | query | str | required | example: SWAP |
instId | query | str | optional | example: BTC-USDT-SWAP |
uly | query | str | optional |
Response
type: array
pagination: none
sample: {
"[0]": "object{instId:str,instType:str,oi:str,oiCcy:str,oiUsd:str,ts:str}"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/api/v5/public/open-interest?instType=SWAP&instId=BTC-USDT-SWAP"