Skip to main content

RequestExportCsvAccountHistory

Request for export trading history of the specified account to csv

Request format

{
"Login": 10001,
"TradeCommands":["Buy","BuyCanceled"]
"From": "2016-10-06",
"To": "2017-01-14",
"Delimeter" : ";",
"FileName" : "TradeHistory.csv",
"RequestId": "c5bc135c-a4eb-45a9-9f98-822c1ba0830b",
"Nodes": [
"node1"
],
"RequestName": "RequestExportCsvAccountHistory"
}

Deal type

  public enum TradeCommand
{
Buy = 0,
Sell,
BuyLimit,
SellLimit,
BuyStop,
SellStop,
Balance,
Credit,
BuyCanceled,
SellCanceled,
Correction,
Bonus,
Commission,
Dividend,
Tax,
InterestRate,
Charge,
Specific,
BuyStopLimit,
SellStopLimit,
}

Request parameters:

NameDescription
RequestIdUnique request GUID
NodesOne node is indicated on which the account is registered
LoginLogin by which the history is needed
TradeCommandsDeal type filter
FromHistory start date and time
ToDate and time of the end of history
RequestNameRequest type
DelimeterCsv file separator
FileNameFile name

Response ResponseExportCsvAccountHistory

{
"Result": {
"Data": "UEsDBBQAAAAIAK2KyFQdmbbUoAMAACsLAAAQAAAAQWN0aXZlT...[Base64 string truncated for readability]...AAAAAAAAAAAAAAAAAA=="
},
"RequestId": "01a3a577-4edd-443e-acdd-95dc42b537fd",
"Errors": [],
"ResponseMaster": "ResponseExportCsvAccountHistory"
}
The ProfitWithTaxesUsd field contains the profit in USD AT THE RATE AT THE TIME OF REQUEST, including swaps and commissions