Syntax
Public sub GetAccountHistory(FromDate As String, ToDate As String)
Description
This method used to get Account History for selected account. To get result from the server, you have to consume AccountHistoryReceivedevent.
Parameters
Key | Description |
FromDate | Date in this format DD/MM/YYYY HH:NN:SS means from Beginning |
ToDate | Date in this format DD/MM/YYYY HH:NN:SS means till now |
Return Value
No return value.
Sample
Public Sub main() GetAccountHistory "", "" End Sub Public sub AccountHistoryReceived (AccountHistoryBuffer) AlertMessage "Count" & AccountHistoryBuffer.Count AlertMessage "Ticket ID" & AccountHistoryBuffer.HistoryRow(1).Ticket AlertMessage "HisTime" & AccountHistoryBuffer.HistoryRow (1).HisTime AlertMessage "SymbolID" & AccountHistoryBuffer.HistoryRow (1).SymbolID AlertMessage "Lots" & AccountHistoryBuffer.HistoryRow (1).Lots AlertMessage "BuySell" & AccountHistoryBuffer.HistoryRow (1).BuySell End Sub
See Also