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 a market

/api/v1/markets/{marketId} · public, no key needed

One market by id or slug.

One market, listed or not, by its id or its slug (the last part of its address on the website). Resolved markets carry their resolution: the winning outcome and what each share paid.

Parameters

NameInTypeDescription
marketId *pathstringThe market's id, or its slug
includequery"book"book: add its book of resting orders (a neg-risk market's implied liquidity is on its order book endpoint)

Request

curl "https://www.vancouverpx.ca/api/v1/markets/3f1c0f2e-6a55-4a8e-9b53-2a1f0c9d7e11"

Response

200 with this object:

FieldTypeDescription
idstringThe market's id (a UUID)
slugstring | nullIts name in addresses, as in vancouverpx.ca/market/<slug>; works wherever an id does
linkstringThe market's page on the website
questionstring
description ?string | nullDetails and resolution rules. GET /markets leaves it out unless include=description
categoryCategory
statusMarketStatus
closesAtstring (date-time) | null
resolvesAtstring (date-time) | null
resolutionResolution | nullOnce resolved: the winner and what each share paid
yesLabelstringWhat the website calls YES (usually "Yes")
noLabelstringWhat the website calls NO (usually "No")
imageUrlstring | null
listedbooleanOn the website's lists. Unlisted markets trade like any other
privatebooleanA private market: only its members see and trade it
negRiskbooleanOne of its group's mutually exclusive outcomes. Their books share liquidity: an order here can also fill against the rest of the group (see implied on the order book).
groupGroupRef | null
venuesVenueLinks | null
future ?FuturePrivate futures only: how its prices map to points
bestBidinteger | null
bestAskinteger | null
lastPriceinteger | null
volumeintegerTotal traded, in cents: price × shares over every execution
createdAtstring (date-time)When the market was created
updatedAtstring (date-time)When the market last changed
book ?BookIts book of resting orders, with include=book (implied neg-risk liquidity is on GET /markets/{marketId}/book)
Example
{
  "id": "3f1c0f2e-6a55-4a8e-9b53-2a1f0c9d7e11",
  "slug": "bc-ndp-most-seats-2026",
  "link": "https://www.vancouverpx.ca/market/bc-ndp-most-seats-2026",
  "question": "Will the BC NDP win the most seats in the 2026 BC election?",
  "description": "Resolves YES if the BC NDP wins more seats than any other party, as reported by Elections BC.",
  "category": "POLITICS",
  "status": "OPEN",
  "closesAt": "2026-11-21T03:00:00.000Z",
  "resolvesAt": "2026-11-22T08:00:00.000Z",
  "resolution": null,
  "yesLabel": "Yes",
  "noLabel": "No",
  "imageUrl": null,
  "listed": true,
  "private": false,
  "negRisk": true,
  "group": {
    "id": "7a0d4c3b-2e1f-4a9b-8c6d-5e4f3a2b1c0d",
    "question": "Which party will win the most seats in the 2026 BC election?",
    "itemTitle": "BC NDP",
    "size": 3
  },
  "venues": {
    "polymarketSlug": "bc-election-most-seats-ndp",
    "kalshiTicker": null
  },
  "bestBid": 52,
  "bestAsk": 55,
  "lastPrice": 54,
  "volume": 152340,
  "createdAt": "2026-09-28T18:00:00.000Z",
  "updatedAt": "2026-10-26T21:14:09.000Z"
}

Errors

MARKET_NOT_FOUND, and the errors every endpoint can answer.

Get a market | VPX API Docs