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
| Name | In | Type | Description |
|---|---|---|---|
| orderId * | path | string |
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:
| Field | Type | Description |
|---|---|---|
| id | string | |
| marketId | string | |
| walletId | string | |
| side | Side | |
| outcome | Outcome | |
| type | OrderType | |
| price | integer | Limit price, in this outcome's cents (market orders: 99 to buy, 1 to sell) |
| quantity | integer | |
| filledQuantity | integer | |
| remainingQuantity | integer | Shares still on the book (0 once filled or cancelled) |
| status | OrderStatus | |
| createdAt | string (date-time) | When it was placed |
| updatedAt | string (date-time) | When it last changed |
| canceledAt | string (date-time) | null | |
| botId | string | null | The VPX bot that placed it, if any |
| clientOrderId | string | null | The 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.