Knowledgebase: > Methods
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 27 August 2020 10:07 AM


 Public Function GetChartHistory(SymbolID As Integer, Period As PeriodNoEnum, BeforeDate As Date, NumberOfBars As Integer) As CallingResultsEnum


This method is used to return the open, close, high and low prices for the chart on specific period. After GetChartHistory method executes the ChartHistoryRecieved event fires.


Parameter Description 
SymbolID Trading symbol name to get its' history , value of type is Integer
Period Chart time frame, value of type PeriodNoEnum 
BeforeDate Date value to get the previous chart history 
NumberOfBars Bars Count to get its' history, value of type is Integer.

Return value

Returns an integer value of type CallingResultsEnum , if the request sent to the server successfully it will return SuccessResult.


 Private Sub Button1_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 

          'BOAPI is a predefined variable as CVertexFXBOAPI10

          Dim Result As CVertexFXClientAPI10.CallingResultsEnum

      Result = BOAPI.GetChartHistory(BOAPI.SymbolByName("GOLD").ID, OneMinute, Now, 5000)

      Msgbox ("Get Chart history result: " & Result.ToString)

 End Sub

See Also

VertexFX Backoffice API Index

(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
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