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 freeOrder book and market values for a numeric Deribit instrument id (the id comes from /public/get_instruments).
Parameters
| name | in | type | description | |
|---|---|---|---|---|
instrument_id | query | int | required | Numeric instrument id from /public/get_instruments. example: 210838 |
depth | query | int1 | 5 | 10 | 20 | 50 | 100 | 1000 | 10000 | optional | Book 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"