GET /official/margin/markets/{ticker}/orderbook

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/kalshi/official/margin/markets/{ticker}/orderbookCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Perpetual market order book.

Parameters

nameintypedescription
tickerpathstrrequiredPerps market ticker
example: KXBCHPERP
depthqueryintoptionalOrder book depth per side
default: 5
example: 5

Response

type: object
pagination: none
sample: {
  "orderbook": "object"
}

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/kalshi/official/margin/markets/KXBCHPERP/orderbook?depth=5"