Get orders history
GET/v1/history/accounts/:account_id/orders
Returns historical closed orders for the selected account for up to 1 month.
Orders:
- available order states: filled, cancelled, rejected
- open, placed, or pending orders are not returned by this method and should be retrieved through the trading state snapshot
- positions of filled orders are not returned by this method and can be calculated based on deals with type = 'open', 'close'
Query rules:
fromis required whencursoris not providedfrommust be earlier than the current server time- the requested historical depth must not exceed 1 month
- use either:
- 'from' + optional 'to'
- or 'cursor'
- 'to' must be later than 'from'
- 'cursor' cannot be combined with filters other than
limit - maximum
limitvalue is 200 - returned orders are sorted in ascending order by
event_time, from older to newer
Filtering:
- by order state: filled, cancelled, rejected
- by instrument
Response composition:
- each item contains exactly one historical order
- orders are returned only if their own
event_timeis within the requested range - related objects outside the requested range are not expanded into the response
Runtime restrictions:
- unavailable if trade_mode is trading_disabled
Request
Responses
- 200
- 400
- 401
- 410
- 500
Orders history returned successfully
Bad request
Possible reasons:
- invalid time range
- requested range exceeds 1 month
- invalid limit
- invalid cursor
- invalid filter combination
- trading disabled
Authorization failed
Invalid account
Internal Server Error
The server encountered an unexpected condition that prevented it from fulfilling the request.