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

List your positions

/api/v1/positions · needs an API key

The shares you hold, with their prices.

Every outcome you hold shares of, most recently changed first, with the market's best bid, best offer and last price in that outcome's cents, so quantity × bid is what you could sell for now. Shares of resolved markets stay listed with what they paid (payout). quantity includes the shares your open sell orders hold (lockedQuantity).

Parameters

NameInTypeDescription
marketIdquerystringOnly this market (its id or slug)

Request

curl "https://www.vancouverpx.ca/api/v1/positions" \
  -H "Authorization: Bearer $VPX_API_KEY"

Response

200 with this object:

FieldTypeDescription
positionsPosition[]
Example
{
  "positions": [
    {
      "walletId": "clx8w2k3p0001qz8r5t1y7u4v",
      "marketId": "3f1c0f2e-6a55-4a8e-9b53-2a1f0c9d7e11",
      "marketQuestion": "Will the BC NDP win the most seats in the 2026 BC election?",
      "marketStatus": "OPEN",
      "private": false,
      "outcome": "YES",
      "quantity": 25,
      "lockedQuantity": 10,
      "bid": 52,
      "ask": 55,
      "lastPrice": 54,
      "payout": null,
      "updatedAt": "2026-10-27T17:05:00.000Z"
    }
  ]
}

Errors

The errors every endpoint can answer.

List your positions | VPX API Docs