Syntax
Public Event ChatOrderRecieved(MarketOrLimitOrder As MarketOrLimitOrderEnum, AccountID
As Integer, OrderID As Integer, NewOrLiq As NewOrLiquidateEnum, BuySell As OperationTypeEnum,
Lots As Double, SymbolID As Integer, Price As Double, OpenPrice As Double, HitPrice As Double,
RefHitAskPrice As Double, OrderTime As String, FromSystem As Boolean,
OpenTicket As Long, OpenLots As Double, Note As String, RefHitBidPrice As Double, isDelivery As Boolean)
Description
This event is fired when receiving a new order on chatting that requested from the client side.
Parameters
Part |
Description |
MarketOrLimitOrder |
Order type (market or limit order ) value of type MarketOrLimitOrderEnum |
AccountID |
Associated Account number that requested the order, value of type Integer |
OrderID |
A requested order number, value of type Integer |
NewOrLiq |
Close or new order, value of type NewOrLiquedateEnum |
BuySell |
Order operation type, value of type OperationTypeEnum |
Lots |
Amount of lots, value of type Double |
SymbolID |
Tarading symbol Id, value of type Integer |
Price |
Requested price, value of type Double |
OpenPrice |
Open price as double if NewOrLiq variable was LiquidateType. |
HitPrice |
Order hit price if the MarketOrLimitOrder variable was LimitOrderType, SLOrderType or TPOrderType |
RefHitAskPrice |
Reference symbol hit ask price, the value of type double. |
OrderTime |
Requested server time, the value of type String |
FromSystem |
Boolean variable telling you that the order from the system or not, this value is True in the case of account liquidation, otherwise, it is False |
OpenTicket |
Ticket number which the order that had been received to chat is belonged to, value of type is Integer. |
OpenLots |
The whole amount of lots, Value of type is Double. |
Note |
Empty string is used to mark the order that had been received to chat screen. |
RefHitBidPrice |
Reference symbol hit bid price, the value of type double. |
isDelivery |
Boolean value which indicates if the order which had been received to chat is Delivery or not. |
Remarks
This is used to know that you have a new order on chatting (an order waiting for accept or reject or re-quote), and you will have all of the received order info via the parameters of this event.
Sample
Public WithEvents m_oBOAPI As New VertexFXBOAPI11.CVertexFXBOAPI
Private Sub m_oBOAPI_ChatOrderRecieved(MarketOrLimitOrder As MarketOrLimitOrderEnum, AccountID
As Integer, OrderID As Integer, NewOrLiq As NewOrLiquidateEnum, BuySell As OperationTypeEnum,
Lots As Double, SymbolID As Integer, Price As Double, OpenPrice As Double, HitPrice As Double,
RefHitAskPrice As Double, OrderTime As String, FromSystem As Boolean,
OpenTicket As Long, OpenLots As Double, Note As String, RefHitBidPrice As Double, isDelivery As Boolean) Handles m_oBOAPI.ChatOrderRecieved
Dim result As VertexFXBOAPI11.CallingResultsEnum
If MarketOrLimitOrder = MarketOrLimitOrderEnum.MarketOrderType Then
result = m_oBOAPI.AcceptOrder(OrderId, Price)
MsgBox(result.ToString)
End If
End Sub
See Also
VertexFX Backoffice API Index
|