GET /v4/orderbooks/perpetualMarket/{market}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/dydx/v4/orderbooks/perpetualMarket/{market}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

L2 order book for one perpetual market with bid/ask price, size and offsetting order counts.

Parameters

nameintypedescription
marketpathstrrequiredPerpetual market ticker.
example: BTC-USD

Response

type: object
data key: bids
pagination: none
sample: {
  "bids": "array[100]",
  "asks": "array[100]"
}

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/dydx/v4/orderbooks/perpetualMarket/BTC-USD"