This section describes methods that are used for performing actions with account operations (deposit/withdrawal/transfer/adjustment/etc).
Each account operation should be assigned to a specific account ID. Please note that one user (user ID) could have many trading accounts (account ID), so it is required to specify the exact account for which the operation should be created.
Create account operation
POST/accountOperations
This method is used to create an account operation.
Body
Name
Type
Description
accountId
integer
ID of the account for which the operation will be created (whose funds are withdrawn, etc.)
amount
float
Amount of the account operation. Please note that operation side (debit\credit) is defined by the +\- sign.
operationTypeId
integer
Defines account operation type. For examplу, the following IDs are responsible for such operation types:
Trading - 1
Transfer - 17
Dividends - 13
Deposit - 2
Withdrawal - 3
Adjustment - 12
All IDs can be found in Swagger -> Models for this method.
This request example contains the minimum set of required parameters for creating a deposit (type=2) account operation.
Note: you can add any useful information to the account operation which may be later available on frontends. To do this, you must include the frontendComment field in the request body.
The frontendComment field supports no more than 128 characters!
Response
The response will contain the ID of the newly created account operation.
A full list of parameters available for account operation can be found here:
This method is used for getting a list of account operations. Please note that you can apply various filters for this method (by adding them to query): account name or ID, currencyId, operationType, positionId, etc.
Query
Name
Type
Description
isSettled
string
Filter operations by settlement type:
false - unsettled operations will be shown.
true - settled operations will be shown.
Required parameter*
sort
string
Sort operations (ascending/descending) by a given field. Available fields for sorting: createdDate, accountId, amount, valueDate. For ascending order sign ‘+’ is used before specified field. For descending ‘-’
By default, descending order by createdDate is used:
Default value : +createdDate
Required parameter*
CURL example (operations are filtered by account ID)
Response
The response will contain all account operations available for this account.
A full list of parameters available for this method can be found here: