Synpath
Complex Orders

Get complex order

One complex order by its id: its state, and how much its children have filled.

GET/orders/{order_id}self-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.

Path parameters

NameTypeDescription
order_idstringThe parent's id, as returned when it was created.

Response

The parent. filled sums its children.

from synpath import Client

client = Client(server="http://127.0.0.1:8000")     # your self-hosted server (synpath serve)
parent = await client.fetch_order("<order_id>")
print(parent.status, parent.filled, parent.info["children"])
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": "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": {}
}