Syntax
Function DeleteSLTPOrder(ByRef OrderIDs As String,ByRef TransTag As String)As CallingResultsEnum
Description
This function used to delete SL/TP order.A user account must be selected before using this method .After DeleteSLTPOrder method executes the DeleteSLTPOrderResult event fire
Parameters
Part |
Description |
OrderIDs |
Orders identifiers to be deleted ,separated by "," .Value of type String. |
TransTag |
String value to mark the deleted SLTP order when the result came from server. |
Return value
Returns value of type CallingResultsEnum ,if the request sent to the server successfully it will return SuccessResult.
Sample
Public WithEvents m_oBOAPI As New CVertexFXBOAPI
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim result As CallingResultsEnum
Dim vOrder As COOrder = m_oBOAPI.OrderByIndex(1)
Dim OrderID As String = vOrder.OrderID
result = m_oBOAPI.DeleteSLTPOrder(OrderID ,"Delete SLTP order")
MsgBox(Result.ToString)
End Sub
Private Sub m_oBOAPI_DeleteSLTPOrderResult(ByRef Result As VertexFXBOAPI10.NewOrderResultEnum, ByRef OrderID As Integer) Handles m_oBOAPI.DeleteSLTPOrderResult
MsgBox("The Server result " & Result.ToString)
End Sub
See Also
VertexFX Backoffice API Index
|