GET/v0/midnight/books/{market_id}

Claude ↗ChatGPT ↗
Auth X-Hub-Key from API_HUB_KEYExecute GET /run/morpho/v0/midnight/books/{market_id}Cache cached 10s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Full two-sided Midnight orderbook snapshot for one active maturity market.

Try this endpoint

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/morpho/v0/midnight/books/0x00ed1d20239dcb000ae065100feb7e9379ec143b0f615a8f5be59153b741e68d?depth=10"

Parameters

nameintypedescription
market_idpathstrrequired32-byte Midnight active orderbook market ID.
example: 0x00ed1d20239dcb000ae065100feb7e9379ec143b0f615a8f5be59153b741e68d
depthqueryintoptionalOptional price-level depth limit.
example: 10

Response

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