Syntax
Public Function AcceptMultipleOrders (OrderIDs As String) As CallingResultsEnum
Description
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
|