Get deals history
GET/v1/history/accounts/:account_id/deals
Returns historical deals for the selected account for up to 1 month.
Deals:
- all deal types may be returned
- deals do not have lifecycle statuses
- deals may represent both trading activity and balance operations
- deal-to-order relation is exposed through
deal.order_id, when applicable
Supported deal types:
- open: position opening deal
- close: position closing deal
- balance: deposit or withdrawal
- null_compensation
- admin_fee
- swap_fee
- dividend
- exness_dollar
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 deals are sorted in ascending order by
event_time, from older to newer
Filtering:
- by deal type: open, close, balance, null_compensation, admin_fee, swap_fee, dividend, exness_dollar
- by instrument
Response composition:
- each item contains exactly one historical deal
- deals 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
Deals 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.