Get Orders History
get_orders_historyFetch historical closed and canceled orders from Poloniex with optional filters like symbol, side, type, and time range to review trading activity.
Instructions
Fetch historical (closed/canceled) orders with optional filters. Requires POLONIEX_API_KEY and POLONIEX_API_SECRET in the environment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Order id to start the query from (default 0). | |
| side | No | Filter by side. | |
| type | No | Filter by order type (default all). | |
| limit | No | Max number of records to return (default 100). | |
| states | No | Comma-separated states, e.g. FILLED,CANCELED (FAILED, FILLED, CANCELED, PARTIALLY_CANCELED). | |
| symbol | No | Filter by trading pair, e.g. "BTC_USDT". Omit for all. | |
| endTime | No | End time in epoch milliseconds. | |
| direction | No | Pagination direction relative to `from` (default NEXT). | |
| startTime | No | Start time in epoch milliseconds. | |
| hideCancel | No | Exclude canceled orders from the result. | |
| accountType | No | Account type; "SPOT" is the default and only supported value. |