GET /markets/{id}/orderbook

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/myriad/markets/{id}/orderbookCache cached 1s, never served stale past that windowCost free · weight 0 · heavy rate classSource billing free

Aggregated order book for one outcome of an order-book market (by market slug).

Pass the market slug in `{id}` without `network_id` (e.g. `/markets/will-microstrategy-hold-over-1m-btc-before-2027/orderbook?outcome=0`).

Parameters

nameintypedescription
idpathstrrequiredMarket slug (pass the slug directly without `network_id`, e.g. `will-microstrategy-hold-over-1m-btc-before-2027`).
example: will-microstrategy-hold-over-1m-btc-before-2027
outcomequeryint
0 | 1
optionalOutcome index to read (0 or 1 for binary markets).
default: 0
example: 0

Response

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

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/myriad/markets/will-microstrategy-hold-over-1m-btc-before-2027/orderbook?outcome=0"