Synpath
Orders

Cancel an order

Cancel one order and read it back, with whatever filled first.

DELETE/orders/{order_id}self-hosted · access token · trade

Self-hosted. Served by synpath serve on your own machine or host, which must be running; the engine and its order types live there. Nothing on this page runs on Synpath's servers.

Cancels take the fast lane through the rate limiter and go ahead of any reads already waiting. An engine-held parent pulls its children first.

Path parameters

NameTypeDescription
order_idstring

Response

The order, now canceled, with filled showing what matched before the cancel landed.

cancelled = await client.cancel_order(order.id, market_id=order.market_id)
print(cancelled.status, cancelled.filled)   # canceled, and what matched first
200
{
  "id": "01a0afc0-46e8-7596-b183-1ff448331615",
  "client_order_id": "quickstart-1",
  "venue": "kalshi",
  "account": {
    "venue": "kalshi",
    "name": "desk-a",
    "subaccount": null
  },
  "market_id": "kalshi:KXELONMARS-99",
  "side": "buy",
  "type": "limit",
  "time_in_force": "gtc",
  "status": "canceled",
  "held_by": "venue",
  "price": "0.10",
  "stop_price": null,
  "amount": "5",
  "filled": "0",
  "remaining": "0",
  "average_price": null,
  "cost": null,
  "fee": null,
  "fee_currency": "USD",
  "last_fill_price": null,
  "last_fill_amount": null,
  "post_only": false,
  "reduce_only": false,
  "expires_at": null,
  "created_at": 1789655008000,
  "updated_at": 1789655008000,
  "parent_id": null,
  "queue_priority_preserved": null,
  "book": "alpha",
  "trader": "tester",
  "tags": {},
  "info": {}
}