Knowledgebase: > Methods
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 09 September 2020 10:21 AM


 Function RejectOrder(ByRef vOrderID As Integer,ByRef Comment As String)As CallingResultsEnum


This function used to reject client order by giving the order number.After RejectOrder method executes the RejectResultRecieved event fire.


Part Description 
vOrderID Associated order number to be rejected, value of type Integer.
Comment  String value to appear at MarketOrderRejected  event when reject the order.


Orders are received as ChatOrderReceived event; you can use this method to reject these orders.


 Public WithEvents m_oBOAPI_ As CVertexFXBOAPI

 Private Sub m_oBOAPI_ChatOrderRecieved1(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) Handles m_oBOAPI.ChatOrderRecieved

         Dim result As VertexFXBOAPI10.CallingResultsEnum

         If MarketOrLimitOrder = MarketOrLimitOrderEnum.MarketOrderType Then

            result = m_oBOAPI_.RejectOrder(OrderId,"")


         End If

 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