DeleteSLTPOrder
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 19 December 2018 02:32 PM

Syntax

Public Function DeleteSLTPOrder(ByVal OrderId As Integer) As CallingResultsEnum 

This function used to Delete the existing manage order at a specific open position After DeleteSLTPOrder method executes the DeleteSLTPOrderResult
event fires. To get the result from the server after accepted the order you have to consume OnOrderTrade event.

Parameters

Parameter  Description 
OrderID  Order number to be deleted, value of type Integer.

Return value

Returns value of type CallingResultsEnum. If the request sent to the server successfully it will return SuccessResult.

Sample

   Public Sub Main () 

        Dim Result as VTLGeneral.callingResultsEnum

        Dim Order_ as VTLGeneral.Order             

        Order_= ClientCode.OrderByIndex (1)
         If not Order_ is nothing then 

              Result = ClientCode.DeleteLimitOrder (Order_.OrderID)

             GUI.msgDialog(Result) 

         Else

                 GUI.msgDialog("There is no Order") 


          end if 
           

   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