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 your account history

/api/v1/account/history · needs an API key

Your main wallet's value, day by day.

One snapshot a day of your main wallet: cash, open positions at their last traded price, and the total. It is what your profile's chart shows. For exact accounting, rebuild from GET /fills and GET /settlements.

Parameters

NameInTypeDescription
sincequerystring (date-time)From this day (ISO 8601, e.g. 2026-10-27T18:00:00Z)
untilquerystring (date-time)Up to this day (ISO 8601, e.g. 2026-10-27T18:00:00Z)

Request

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

Response

200 with this object:

FieldTypeDescription
snapshotsSnapshot[]Oldest first
Example
{
  "snapshots": [
    {
      "date": "2026-10-25",
      "cash": 1012000,
      "holdingsValue": 8150,
      "totalValue": 1020150
    },
    {
      "date": "2026-10-26",
      "cash": 1015400,
      "holdingsValue": 9020,
      "totalValue": 1024420
    }
  ]
}

Errors

The errors every endpoint can answer.

Get your account history | VPX API Docs