Get deals history
GET/v1/history/accounts/:account_id/deals
Returns historical deals within the configured history age and range limits.
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 history window must be within the configured history age
- the requested range length must not exceed the configured history range
- retrieve the current values from
GET /v1/configuration/accounts/{account_id}/limits - use either:
- 'from' + optional 'to'
- or 'cursor'
- 'to' must be later than 'from'
- 'cursor' cannot be combined with filters other than
limit limitmust be between 1 and 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
- 403
- 404
- 429
- 500
- 503
Deals history returned successfully
Bad Request.
Possible public error codes include:
REQUEST_INVALIDREQUEST_INVALID_PARAMETERSREQUEST_INVALID_PRICEREQUEST_INVALID_TIMEFRAMEREQUEST_INVALID_TIME_RANGEREQUEST_INVALID_COUNTREQUEST_INVALID_LIMITREQUEST_INVALID_CURSORREQUEST_INVALID_PRICE_TYPEREQUEST_INVALID_FILTER_COMBINATIONREQUEST_UNSUPPORTED_MEDIA_TYPE
Authentication failed.
Possible public error codes include:
AUTH_INVALID_API_KEYAUTH_INVALID_SIGNATURE
Operation is not permitted for the authenticated API key, account, source IP, or operation scope.
Possible public error codes include:
AUTH_PERMISSION_DENIEDACCOUNT_DISABLEDACCOUNT_CLOSE_ONLY
Account not found
Public API endpoint quota exceeded.
REQUEST_RATE_LIMIT is non-retryable automatically. Clients should use
GET /v1/configuration/accounts/{account_id}/limits and local request accounting
to calculate remaining quota before sending more requests.
Internal Server Error
The server encountered an unexpected condition that prevented it from fulfilling the request.
Service temporarily unavailable.
Possible public error codes include:
SYSTEM_TEMPORARY_UNAVAILABLEMARKET_NO_QUOTES