Knowledgebase: > Methods
Posted by Angham Al-Banawien, Last modified by Diana Alkouni on 25 August 2020 08:38 AM


Public Function RejectMultipleOrders (OrderIDs As String, Comment As String) As CallingResultsEnum


This function is used to reject multiple client orders, After RejectMultipleOrders method executes, the RejectResultRecievied
event fires.


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.


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

(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