Knowledgebase:
AcceptMultipleOrders
Posted by Angham Al-Banawien, Last modified by Angham Al-Banawien on 10 January 2017 11:03 AM

Syntax

Public Function AcceptMultipleOrders (OrderIDs As String) As CallingResultsEnum

This function is used to accept multiple client orders. After AcceptMultipleOrders method executes, the AcceptResultRecievied event fires.

Parameters

Parameter Description 
OrderIDs Client Orders number to be accepted , separated by ",". Value type is String.

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 Accept_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Accept.Click

        Dim Result As CallingResultsEnum

        OrderIDs = Mid(Orders, 2)

        Result = BOAPI.AcceptMultipleOrders (OrderIDs)

        MsgBox (Result)

        OrderIDs = ""

  End Sub

 

See Also


VertexFX Backoffice API Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
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