Syntax
Function RejectOrder(ByRef vOrderID As Integer,ByRef Comment As String)As CallingResultsEnum
Description
This function used to reject client order by giving the order number.After RejectOrder method executes the RejectResultRecieved event fire.
Parameters
Part |
Description |
vOrderID |
Associated order number to be rejected, value of type Integer. |
Comment |
String value to appear at MarketOrderRejected event when reject the order. |
Remarks
Orders are received as ChatOrderReceived event; you can use this method to reject these orders.
Sample
Public WithEvents m_oBOAPI_ As CVertexFXBOAPI
Private Sub m_oBOAPI_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 m_oBOAPI.ChatOrderRecieved
Dim result As VertexFXBOAPI10.CallingResultsEnum
If MarketOrLimitOrder = MarketOrLimitOrderEnum.MarketOrderType Then
result = m_oBOAPI_.RejectOrder(OrderId,"")
MsgBox(result.ToString)
End If
End Sub
See Also
VertexFX Backoffice API Index
|