GET /public/get_order_book

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/deribit/public/get_order_bookCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

L2 order book for one instrument with bids, asks, index price, mark price, funding and 24h stats.

Parameters

nameintypedescription
instrument_namequerystrrequiredInstrument name.
example: BTC-PERPETUAL
depthqueryintoptionalNumber of price levels per side.
example: 5

Response

type: object
pagination: none
sample: {
  "jsonrpc": "str",
  "result": "object",
  "usIn": "int",
  "usOut": "int",
  "usDiff": "int",
  "testnet": "bool"
}

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/deribit/public/get_order_book?instrument_name=BTC-PERPETUAL&depth=5"