Syntax
Function SwitchOrder(ByRef OrderID As Integer) As CallingResultsEnum
Description
This function is used to pass order to another available dealer.
Parameters
Part |
Description |
OrderID |
Associated order number that want to switch,value of type Integer. |
Return
Returns value of type CallingResultsEnum ,if the request sent to the server successfully it will return SuccessResult.
Sample
Public WithEvents BOAPI As CVertexFXBOAPI
Private Sub BOAPI_ChatOrderRecieved(ByRef MarketOrLimitOrder As MarketOrLimitOrderEnum, ByRef AccountID As Integer, ByRef OrderID As Integer, ByRef NewOrLiq As NewOrLiquidateEnum, ByRef BuySell As 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
Dim result As VertexFXBOAPI10.CallingResultsEnum
result = BOAPI.SwitchOrder(OrderID)
MsgBox(result.ToString)
End Sub
See Also
VertexFX Backoffice API Index
|