Complex Orders
List complex orders
Every live complex order, with the plain orders. Tell them apart by `held_by`.
GET/ordersself-hosted · access token · view
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.
Complex orders come back in the same page as venue orders: a parent has held_by: "engine" and a status of waiting or triggered; its children are venue orders carrying the parent's id in parent_id.
Query parameters
| Name | Type | Description |
|---|---|---|
venue | string | Only this venue. |
book | string | Only this strategy. |
Response
A page of orders.
for order in await client.fetch_open_orders(venue="polymarket"):
if order.held_by == "engine":
print(order.id, order.type, order.status, order.filled)200
{
"data": [
{
"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": "waiting",
"held_by": "engine",
"price": null,
"stop_price": "0.40",
"amount": "20",
"filled": "0",
"remaining": "5",
"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": {}
}
],
"next_cursor": null,
"count": 1
}
