PDA

View Full Version : get Closing prices for list of FX



Dataflow
07-14-2015, 11:07 AM
Dear Sir,

We would like to use the Vertex API in order to get the closing prices of a list of Fx having their symbol Id.

We would like to know what are the functions to use and if here are other details also like the date of closing,...

We appreciate your help,

Thank you in advance.

Regards

Rawan-HS
07-14-2015, 12:30 PM
Dear sir ,


you have to use BackOffice API (http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/2062)and to get the information you want, to get the closing price you should to use the MarketOrdersHistory (http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/4165)method




Private Sub Report_Click(sender As System.Object, e As System.EventArgs) Handles Report.Click, btnReport.Click
Dim RootId As String = Cstr(m_oBOAPI.RootID)
Dim FromDate As String = "01/01/2014 00:00:00"
Dim ToDate As String = "" ' Now
Dim OrderID As String = "" 'All
Dim Ticket As String = "" ' All
Dim AccountID As String = "" ' All
Dim Type As String = "CP" ' "" for All, "CP" for liquidate "OP" for New
Dim OrderType As String = "" 'All "1" for buy, "-1" for sell
Dim Amount As String = "" ' All
Dim SymbolID As String = "" 'All
Dim Price As String = "" 'All
Dim IPAddress As String = "" 'All IPs
Dim Status As String = "" ' All "20" New Accepted/ "21" invalid price / "44" quoted then Timer expired / "45" quoted then client reject
Dim Who As String = "" ' All The Dealers
Dim Request As String
Request = RootId & , & FromDate & , & ToDate & , & OrderID & , & Ticket & , & AccountID & , & Type & , & OrderType & , & Amount & , & SymbolID & , & Price & , & IPAddress & , & Status & , & Who
MsgBox(m_oBOAPI.RequestReport(VertexFXBOAPI10.Mana gerReportsTypeEnum.MarketOrdersHistoryReport, Request))
End Sub