OrderByID
Posted by Mohammad Rahhal, Last modified by Abdullah Almasharfah on 07 December 2018 04:31 PM

Syntax

Public Function OrderByID(ByVal ID As Integer) As Order

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 = S & i.ToString()

            COrder = ClientCode.OrderByID(ID)

            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 Sub

 


See Also


Back to VTL Server 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