GET/v0/midnight/books/{market_id}
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 freeFull 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
| name | in | type | description | |
|---|---|---|---|---|
market_id | path | str | required | 32-byte Midnight active orderbook market ID. example: 0x00ed1d20239dcb000ae065100feb7e9379ec143b0f615a8f5be59153b741e68d |
depth | query | int | optional | Optional price-level depth limit. example: 10 |
Response
type: object
pagination: none
sample: {
"data": "object"
}