Syntax
Public Function DeleteLimitOrder(OrderID As String) As Boolean
Description
This function is used to cancel the limit order by a given the order ID.To get a result from the server, you have to consumeOnOrderTradeevent.
Parameters
Key | Description |
OrderID | Order number to be deleted ,value of type String. |
Return value
Returns true if successful, otherwise returns false. In order to get an error, call GetLastError() function.
Sample
Public Sub main () If AccountInfoInteger (ACCOUNT_LOGIN) Then Dim OrderID OrderID = OrderGetID (1) If DeleteLimitOrder (Cstr (OrderID)) = false then AlertMessage ErrorDescription (GetLastError ()) End IF End IF End sub
See Also