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:
| Name | Description |
|---|---|
| RequestId | Unique request GUID |
| Nodes | One node is indicated on which the account is registered |
| Login | Login by which the history is needed |
| TradeCommands | Deal type filter |
| From | History start date and time |
| To | Date and time of the end of history |
| RequestName | Request type |
| Delimeter | Csv file separator |
| FileName | File 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