Buckets
List orders on a bucket
Every order placed on a bucket, working or finished, oldest first.
GET/buckets/{bucket_id}/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.
Path parameters
| Name | Type | Description |
|---|---|---|
bucket_id | string | The bucket's id, or its market id bucket:<id>. |
Response
A page of order reports, in the shape of Get an order on a bucket.
from synpath import Client
client = Client(server="http://127.0.0.1:8000") # your self-hosted server (synpath serve)
for report in await client.fetch_bucket_orders("<bucket_id>"):
print(report.order_id, report.status, report.filled, report.average_price)200
{
"data": [
{
"order_id": "5d0e9b2c4f7a4e1d9c3b8a6f2e1d0c9b",
"bucket_id": "3f2a9c1e5b7d4e0a8c6f1b2d9e4a7c30",
"status": "open",
"side": "buy",
"amount": "200",
"worst_price": "0.42",
"filled": "120",
"unfilled": "80",
"average_price": "0.4117",
"fees_paid": "1.84",
"rounds": 2,
"stop_reason": null,
"detail": null,
"per_venue": [
{
"venue": "kalshi",
"filled": "70",
"average_price": "0.41"
},
{
"venue": "polymarket",
"filled": "50",
"average_price": "0.414"
}
]
}
],
"next_cursor": null,
"count": 1
}
