binance_get_all_orders
Retrieve all order statuses for a trading pair within a 24-hour window or page forward using an order ID cursor to reconstruct historical activity.
Instructions
List a symbol's orders — open, filled, cancelled and expired alike.
Calls GET /api/v3/allOrders (SIGNED, IP weight 20). Two ways to narrow it:
order_id as a cursor (returns orders with orderId >= it) or a start_time/
end_time window. The window may not exceed 24 hours — that cap is checked here,
before the call, so you get a clear message instead of Binance's -1127. Walk a longer
span in 24 h slices, or page by order_id.
When to Use:
Reconstructing what happened on a symbol in a given day.
Paging order history forward with an
order_idcursor.
When NOT to Use:
For what is open right now —
binance_get_open_orders(weight 6 with a symbol).For the actual fills, fees and trade ids —
binance_get_my_trades(trade_history.py); an order row only carries aggregates.
Pagination:
limit is 1-1000 (Binance default 500) and at most 50 rows are rendered; use
response_format="json" or narrow the window for the rest. order_id pages forward:
pass the last orderId you saw, plus one.
Windows:
start_time/end_time accept epoch ms or ISO-8601 and must span 24 h or less
together. Omit both to get the most recent limit orders. Orders with no fill are
archived after 90 days and stop being returned.
Examples: params = {"symbol": "BTCUSDT"} params = {"symbol": "BTCUSDT", "start_time": "2026-09-22T00:00:00Z", "end_time": "2026-09-22T23:59:59Z", "limit": 1000} params = {"symbol": "BTCUSDT", "order_id": 123456789}
Error Handling: A window wider than 24 h is rejected locally. -1127 from Binance means the same thing reached it anyway; -1121 is an unknown symbol. -2015 means the key lacks permission or this IP is not allowlisted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |