Get open interest
Retrieve the total open interest for contracts on OKX.
Query parameters
instType
Instrument type.
Allowed values:
uly
Underlying, e.g. BTC-USD. Applicable to FUTURES/SWAP/OPTION; required for OPTION.
instFamily
Instrument family, e.g. BTC-USD. Applicable to FUTURES/SWAP/OPTION.
instId
Instrument ID, e.g. BTC-USD-SWAP. Only applicable to FUTURES/SWAP/OPTION.
Response
Successful response
code
Result code. 0 means success; any other value is an error code.
msg
Error message. Empty on success.
data

