Skip to navigation

Get mark price

Retrieve mark prices, used by OKX to manage margin and liquidation and to prevent price manipulation.

Query parameters

instTypeenumRequired
Instrument type.
Allowed values:
ulystringOptional

Underlying, e.g. BTC-USD. Applicable to FUTURES/SWAP/OPTION.

instFamilystringOptional

Instrument family, e.g. BTC-USD. Applicable to FUTURES/SWAP/OPTION.

instIdstringOptional

Instrument ID, e.g. BTC-USD-SWAP.

Response

Successful response
codestringOptional

Result code. 0 means success; any other value is an error code.

msgstringOptional
Error message. Empty on success.
datalist of objectsOptional