PDA

View Full Version : VTL- SLTP Orders



nhasan
11-20-2013, 06:19 AM
Another issue -

How can we identify an SLTP order related with which open position

In server side script we have an order property as OrderTicket to represent parent ticket number of an SLTP order, but I didn't find it in client side programming manual

Hassan-HS
11-20-2013, 06:51 AM
Dear sir,




How can we identify an SLTP order related with which open position?


You have to use RequsteManageOrders (http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/3651)method which is request all managed orders related to specific ticket from the server, To get notification from the server, you have to consume OnManageOrdersReceived event.




If AccountInfoInteger(ACCOUNT_LOGIN) Then

If RequestManageOrders (3666) Then

MsgBox "The Request has been sent to the server to get all manage orders related to ticket number 3666 "

Else

MsgBox ErrorDescription(GetLastError())

End If

End If

End Sub

'This event raised when calling RequestManageOrders method successfully

Public Sub OnManageOrdersReceived(manageOrders)

Dim i

' Receiving Manage Order related to Ticket 3666

For i = 1 To manageOrders.Count()

MsgBox CSTR(manageOrders. Orders(i))

Next

End Sub

Hassan-HS
01-09-2014, 10:06 AM
Dear Sir


Please update us if every thing is OK now or not, and let me know if you need any further assistance.