GET
Get the order book
/api/v1/markets/{marketId}/book · public, no key needed
Bids and offers, in YES terms.
The market's resting limit orders, aggregated by price, in YES terms: a bid to buy NO at 40¢ is an offer of YES at 60¢. For the NO side, mirror it: NO's best bid is 100 − YES's best offer.
On a neg-risk market an order can also fill against the rest of its group (buying YES here is like selling YES in every other answer), so implied adds the bids and offers that liquidity makes.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| marketId * | path | string | The market's id, or its slug |
| depth | query | integer | Price levels per side (default: all) |
Request
curl "https://www.vancouverpx.ca/api/v1/markets/3f1c0f2e-6a55-4a8e-9b53-2a1f0c9d7e11/book"Response
200 with this object:
| Field | Type | Description |
|---|---|---|
| marketId | string | |
| bids | Level[] | Bids for YES, best (highest) first |
| asks | Level[] | Offers of YES, best (lowest) first |
| implied | Book | null | Neg-risk markets only: what the rest of the group's books offer here. An order can fill against it too. Null on other markets. |
| lastPrice | integer | null | |
| time | string (date-time) | When the book was read |
Example
{
"marketId": "3f1c0f2e-6a55-4a8e-9b53-2a1f0c9d7e11",
"bids": [
{
"price": 52,
"quantity": 40
},
{
"price": 50,
"quantity": 120
}
],
"asks": [
{
"price": 55,
"quantity": 25
},
{
"price": 58,
"quantity": 60
}
],
"implied": {
"bids": [
{
"price": 51,
"quantity": 10
}
],
"asks": []
},
"lastPrice": 54,
"time": "2026-10-27T17:06:12.004Z"
}Errors
MARKET_NOT_FOUND, and the errors every endpoint can answer.