Syntax
Public Function DeleteSLTPOrder(ByVal OrderId As Integer) As CallingResultsEnum
Description
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 OnOrderTradeevent.
Parameters
Parameter | Description |
OrderID | Order number to be deleted, value of type Integer. |
Return value
Returns value of typeCallingResultsEnum.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