Skip to navigation

Get order book

Retrieve order book of the instrument. The data will be updated once every 50 milliseconds. Best ask price may be lower than the best bid price during the pre-open period. This endpoint does not return data immediately. Instead, it returns the latest data once the server-side cache has been updated.

Query parameters

instIdstringRequired

Instrument ID, e.g. BTC-USDT

szstringOptional

Order book depth per side. Maximum 400, e.g. 400 bids + 400 asks Default returns to 1 depth data

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