Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 14 September 2020 09:38 AM


Public Function DeleteLimitOrder(ByRef OrderID As String,ByRef TransTag As String) As CallingResultsEnum


This function deletes a limit order. You have to select account number before deleting the order using the selectAccount method.After DeleteLimitOrder executes the DeleteLimitOrderResult event fires.


Part Description 
OrderID Associated order number or orders numbers separated by "," to be deleted, the value of type String. 
TransTag String value to mark deleted limit order when the result came from the server.

Return value

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


 Private Sub Btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn.Click
  Dim result As VertexFXClientAPI10.CallingResultsEnum

  'API is a predefined variable as CVertexFXClientAPI10

  Dim Order As COOrder = API.OrderByIndex(1)
  Dim OrderID As String = Order.OrderID 

  result=API.DeleteLimitOrder(OrderID,"Limit Order with number"&OrderID&" is deleted")


End Sub

See Also

VertexFX Client API Index

(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
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