Skip to main content

Portfolio trades (Security | Previous sessions)

GET 

/md/v2/Stats/:exchange/:portfolio/history/trades/:symbol

Returns information about all deals of the portfolio with the specified symbol made during the previous trading sessions.

Response does not contain information for the current trading session. Use the corresponding request to get it.

Session time frames depend on the selected market and may differ.

Maximum number of records that can be returned in a single query is 1000.

Private resource

Anonymous execution of this command is prohibited. Provide the valid Access token as the value of the mandatory token parameter.

Environments

System test environment address is used in the request description as the default. The reason for this is to protect users from accidental operations with real data. Keep this in mind when using interactive description and copying code samples.

You can change the environment in the Request window. Learn more about environments in related article.

Unified monetary position

When using unified monetary position, the orderByTradeDate parameter must be true to sort the results correctly. Trades belonging to different markets may have different ID lengths, so standard sorting by ID may return results in an incorrect sequence

Alternative request

The same operation can be performed using WebSocket request.

Request

Responses

Request processed successfully