GetAccountHistory
Posted by Angham Al-Banawien, Last modified by Diana Alkouni on 25 August 2020 08:34 AM

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 AccountHistoryReceived event.

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


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions