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


 Function AcceptOrder(ByRef vOrderID As Integer,Optional ByRef AcceptPrice As Double = 0.0) As   VertexFXBOAPI.CallingResultsEnum


This function used to accept client order by giving the order number.After AcceptOrder method executes the AcceptResultRecieved event fires.


Part Description 
vOrderID The order number to be accepted ,value of type Integer.
AcceptPrice Order will be accepted at this price,optional value of type Double.


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


 Public WithEvents API As CVertexFXBOAPI

 Private Sub API_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 API.ChatOrderRecieved

         Dim result As VertexFXBOAPI10.CallingResultsEnum

        If MarketOrLimitOrder = MarketOrLimitOrderEnum.MarketOrderType Then

            result = API.AcceptOrder(OrderId, Price)


        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