Syntax
Public Function RejectMultipleOrders (OrderIDs As String, Comment As String) As CallingResultsEnum
Description
This function is used to reject multiple client orders, After RejectMultipleOrders method executes, the RejectResultRecievied event fires.
Parameters
Parameter |
Description |
OrderIDs |
Client Orders number to be rejected , separated by “,”. Value type is String |
Comment |
String value to appear at MarketOrderRejected event when rejecting the orders |
Return value
Returns value of type CallingResultsEnum. If the request was sent to the server successfully, it will return SuccessResult.
Sample
Dim OrderIDs as String
‘BOAPI is predefined variable as CVertexBOAPI
Private Sub BOAPI_ChatOrderRecieved(ByRef MarketOrLimitOrder As VertexGeneral10.MarketOrLimitOrderEnum, ByRef AccountID As Integer, ByRef OrderID As Integer, ByRef NewOrLiq As VertexGeneral10.NewOrLiquidateEnum, ByRef BuySell As VertexGeneral10.OperationTypeEnum, ByRef Lots As Double, ByRef SymbolID As Integer, ByRef Price As Double, ByRef OpenPrice As Double, ByRef HitPrice As Double, ByRef RefHitPrice As Double, ByRef OrderTime As String, ByRef FromSystem As Boolean, ByRef OpenTicket As Integer, ByRef OpenLots As Double, ByRef Note As String) Handles BOAPI.ChatOrderRecieved
OrderIDs = OrderIDs & “,” & OrderID
End sub
Private Sub Reject_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Accept.Click
Dim Result As CallingResultsEnum
OrderIDs= Mid (Orders, 2)
Result = BOAPI.RejectMultipleOrders (OrderIDs)
MsgBox (Result)
OrderIDs= ""
End Sub
See Also
VertexFX Backoffice API Index
|