Syntax
Public Function OrderByID(ByVal ID As Integer) As Order
Description
This function used to returns the order object for a specific order number
Parameters
Parameter |
Description |
ID |
The ID of Order, to get the order object for it, value of type Integer |
Return value
Returns order that corresponding with the ID.
Sample
Public Sub main()
Dim COrder As VTLGeneral.Order
Dim ID = 11111
Dim S As String
S = ""
COrder = ClientCode.OrderByID(ID)
If not COrder is nothing then
S = S & " OrderId:" & COrder.OrderId.Tostring()
S = S & " BuySell: " & COrder.BuySell.Tostring()
S = S & " Lots: " & COrder.Lots
S = S & " OrderTicket: " & COrder.OrderTicket.Tostring()
S = S & " OrderTime: " & COrder.OrderTime.Tostring()
S = S & " OrderType: " & COrder.OrderType.Tostring()
S = S & " Sl: " & COrder.Sl.Tostring()
S = S & " SymbolID: " & COrder.SymbolID.Tostring()
S = S & " SymbolName: " & COrder.SymbolName.Tostring()
S = S & " TP: " & COrder.TP.Tostring()
S = S & " LimitPrice: " & COrder.LimitPrice.Tostring()
GUI.MsgDialog(S)
End if
End Sub
See Also
Back to VTL Server Script Index
|