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

DELETE

Cancel an order

/api/v1/orders/{orderId} · needs an API key

Take one of your orders off the book.

Cancels an open or partly filled order and releases the cash or shares it held. The answer is the order afterwards: CANCELLED, or PARTIALLY_FILLED_CANCELLED if some of it had filled.

Parameters

NameInTypeDescription
orderId *pathstring

Request

curl -X DELETE "https://www.vancouverpx.ca/api/v1/orders/9b2e5c1d-0f47-4d1e-8a55-6c2b7e3f9a10" \
  -H "Authorization: Bearer $VPX_API_KEY"

Response

200 with this object:

FieldTypeDescription
idstring
marketIdstring
walletIdstring
sideSide
outcomeOutcome
typeOrderType
priceintegerLimit price, in this outcome's cents (market orders: 99 to buy, 1 to sell)
quantityinteger
filledQuantityinteger
remainingQuantityintegerShares still on the book (0 once filled or cancelled)
statusOrderStatus
createdAtstring (date-time)When it was placed
updatedAtstring (date-time)When it last changed
canceledAtstring (date-time) | null
botIdstring | nullThe VPX bot that placed it, if any
clientOrderIdstring | nullThe bot's own id for the order (VPX bots only)
Example
{
  "id": "9b2e5c1d-0f47-4d1e-8a55-6c2b7e3f9a10",
  "marketId": "3f1c0f2e-6a55-4a8e-9b53-2a1f0c9d7e11",
  "walletId": "clx8w2k3p0001qz8r5t1y7u4v",
  "side": "BUY",
  "outcome": "YES",
  "type": "LIMIT",
  "price": 53,
  "quantity": 10,
  "filledQuantity": 4,
  "remainingQuantity": 0,
  "status": "PARTIALLY_FILLED_CANCELLED",
  "createdAt": "2026-10-27T17:05:00.000Z",
  "updatedAt": "2026-10-27T17:12:40.000Z",
  "canceledAt": "2026-10-27T17:12:40.000Z",
  "botId": null,
  "clientOrderId": null
}

Errors

ORDER_NOT_FOUND, ORDER_NOT_OPEN, and the errors every endpoint can answer.

Cancel an order | VPX API Docs