GET /public/get_order_book_by_instrument_id

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

Order book and market values for a numeric Deribit instrument id (the id comes from /public/get_instruments).

Parameters

nameintypedescription
instrument_idqueryintrequiredNumeric instrument id from /public/get_instruments.
example: 210838
depthqueryint
1 | 5 | 10 | 20 | 50 | 100 | 1000 | 10000
optionalBook depth (1, 5, 10, 20, 50, 100, 1000 or 10000).
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_by_instrument_id?instrument_id=210838&depth=5"