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 freeAggregated 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
| name | in | type | description | |
|---|---|---|---|---|
id | path | str | required | Market 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 |
outcome | query | int0 | 1 | optional | Outcome index to read (0 or 1 for binary markets). default: 0example: 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"