Synpath
Complex Orders

Cancel complex order

Cancel the parent. Every live child is cancelled first, then the parent is closed.

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.

What the children had already filled stays filled and is reported in filled. Cancels take the fast lane through the rate limiter.

Path parameters

NameTypeDescription
order_idstringThe parent's id.

Response

The parent, now canceled.

from synpath import Client

client = Client(server="http://127.0.0.1:8000")
await client.cancel_order("<order_id>")          # pulls every live child first
200
{
  "id": "mo-3f9a",
  "client_order_id": "quickstart-1",
  "venue": "kalshi",
  "account": {
    "venue": "kalshi",
    "name": "desk-a",
    "subaccount": null
  },
  "market_id": "kalshi:KXELONMARS-99",
  "side": "sell",
  "type": "trailing_stop",
  "time_in_force": "gtc",
  "status": "canceled",
  "held_by": "engine",
  "price": null,
  "stop_price": "0.40",
  "amount": "20",
  "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": {}
}