Knowledgebase:
SwitchOrder
Posted by Rula Halaseh, Last modified by Rawan Al Hourani on 03 May 2017 12:43 PM

Syntax

 Function SwitchOrder(ByRef OrderID As Integer) As CallingResultsEnum

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

(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