DeleteSLTPOrder
Posted by Mohammad Rahhal, Last modified by Abdullah Almasharfah on 07 December 2018 04:20 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)

        Result = ClientCode.DeleteLimitOrder (Order_.OrderID)

        GUI.msgDialog(Result) 

   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