GET/v0/midnight/books/{market_id}/{side}/takeable-offers

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

Executable fixed-rate offers sorted best-price first for one side of a Midnight orderbook.

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/bids/takeable-offers"

Parameters

nameintypedescription
market_idpathstrrequired32-byte Midnight active orderbook market ID.
example: 0x00ed1d20239dcb000ae065100feb7e9379ec143b0f615a8f5be59153b741e68d
sidepathstr
asks | bids
requiredOrderbook side ('asks' or 'bids').
example: bids

Response

type: object
pagination: none
sample: {
  "data": "array[4]"
}