Regarding the future of VPX — Read our announcement →
vancouverpx
← Back to Markets

API Documentation

One API for markets, your account and trading, for scripts, AI agents and VPX Bots

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

NameInTypeDescription
marketId *pathstringThe market's id, or its slug
depthqueryintegerPrice 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:

FieldTypeDescription
marketIdstring
bidsLevel[]Bids for YES, best (highest) first
asksLevel[]Offers of YES, best (lowest) first
impliedBook | nullNeg-risk markets only: what the rest of the group's books offer here. An order can fill against it too. Null on other markets.
lastPriceinteger | null
timestring (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.

Get the order book | VPX API Docs