Knowledgebase
Knowledgebase : Technical Support > API > Client API's/VTL > VertexFX Client API (ActiveX DLL) > Events
Syntax
Public Event CloseOpenPosMsg(OpenTicket As Integer, ByRef CloseTicket As Integer, ClosePrice As Double, OpenPrice As Double, vType As OperationTypeEnum, Lots As Double, SymbolID As Integer, CloseTime As String, AccountID As String, Commission As D...
SYNTAX
Public Event DepartmentsResultReceived(Departments As CDepartments, Count As Integer)
DESCRIPTION
This event is fired after calling GetDepartments
[https://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/5583] method
and r...
SYNTAX
Public Event DeliveryResultReceived(Result As NewOrderResultEnum)
DESCRIPTION
This event is fired after calling Deliver
[https://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/4730] method
and received its result from the...
SYNTAX
Public Event AccountStatementsResultReceived(NoRows As Boolean, DataArray() As System.Array)
DESCRIPTION
This event is raised after requesting the account statement using the
GetAccountStatement
[http://www.hybridsolutions.com/support/index.php...
SYNTAX
Event ChangePasswordRecieved(Result As ChangePasswordEnum)
DESCRIPTION
This event is raised after calling ChangePassword
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/4937] method
, with the changing result.
PARA...
SYNTAX
Event RejectOrderResultRecieved(OrderID As Integer)
DESCRIPTION
This event is fired when requoted order rejected by RejectOrder
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/2846] method.
PARAMETERS
Parameter...
SYNTAX
Event AcceptOrderResultRecieved(OrderID As Integer, Ticket As Integer, NewPrice As Double, SysTime As String, BuySell As OperationTypeEnum, Lots As Double, SymbolID As Integer, OPorCP As String, OpenTicket As Integer, ClientID As Integer, Account...
SYNTAX
Event ServerRouted (OldIP As String, NewIP As String)
DESCRIPTION
This event is fired when client session is redirected to another
server IP.
PARAMETERS
Parameter
Description
OldIP
Old Server IP, value of type String
NewIP
...
SYNTAX
Event DisconnectNoHandshakeMsg()
DESCRIPTION
This event is raised when can't connect to the server due to No hand
shaking with server.
PARAMETERS
No Parameters.
REMARKS
By this event you can make sure that your connection request received
...
SYNTAX
Event CloseByHedgeResultReceived(Result As NewOrderResultEnum, OpenTicket1 As String, OpenTicket2 As String)
DESCRIPTION
This event is raised after calling CloseByHedge
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/Vie...
SYNTAX
Event ChartHistoryRecieved(SymbolID As Integer,Period As PeriodNoEnum ,NumbersOfBars As Integer,OpenValues() As Double , HighValues() As Double, LowValues() As Double, CloseValues() As Double, TimeValues() As String )
DESCRIPTION
This Event is r...
SYNTAX
Event DeliveryItemsUpdated()
DESCRIPTION
This event raise after calling RequestDeliveryItems
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/4729]
and Deliver
[http://www.hybridsolutions.com/support/index.php?/Knowl...
SYNTAX
Event AccountHistoryReceived(AccountHistory As Collection)
DESCRIPTION
This event raises after calling GetAccountHistory
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/4174] and
it's pass the entire transactions do...
SYNTAX
Event SLTPOrderCanceledNoMoney(AccountID As Long,OrderId As Long,Ticket As Long)
DESCRIPTION
This event is raised after SL/TP order is canceled and there is no
money in the account.
PARAMETERS
Part
Description
AccountID
The assoc...
SYNTAX
Event SLTPOrderAccepted(AccountID As Long, OrderId As Long, Ticket As Long)
DESCRIPTION
This event is raised after SL/TP order is accepted from the BackOffice
side in case the auto broker is off.
PARAMETERS
Part
Description
AccountI...
SYNTAX
Event ServerTime(STime As String)
DESCRIPTION
This event is raised for each 10 seconds to get server Time.
PARAMETERS
Part
Description
STime
Time value from the server, value of type String.
-------------------------
SEE ALSO
...
Syntax
Event NewPendingOrder(ByRef Order As VertexFXClientAPI.COOrder )
DESCRIPTION
This event is raised when there is a new pending order for a specific
account under the logged in client privilege.
PARAMETERS
Parameter
Description
Order
...
SYNTAX
Event LimitOrderCanceledNoMoney(AccountID As Integer,OrderId As Integer,Ticket As Integer,BuySell As OperationTypeEnum ,Lots As Double,Symbol As COSymbol)
DESCRIPTION
This event is raised when a limit order is canceled due to there is
not enough...
SYNTAX
Event LimitOrderCanceledCannotHdg(AccountID As Integer,OrderId As Integer,Ticket As Integer,BuySell As OperationTypeEnum,Lots As Double,Symbol As COSymbol )
DESCRIPTION
This event is raised when a limit order canceled due to hedging is not
allow...
SYNTAX
Event LimitOrderAccepted(AccountID As Integer,OrderId As Integer,Ticket As Integer,BuySell As VertexGeneral.OperationTypeEnum,Lots As Double,Symbol As VertexFXClientAPI.COSymbol )
DESCRIPTION
This event is raised after accept the executed limit ...
SYNTAX
Event DeletePendingOrder(AccountID As Integer, OrderID As Integer)
DESCRIPTION
This event is raised after the pending order deleted for special
account under the logged in client privilege
PARAMETERS
Part
Description
AccountID
...
SYNTAX
Public Function RejectOrder(ByRef OrderID As Integer)
DESCRIPTION
This function rejects a re-quoted order by the order ID. After
RejectOrder method executes the RejectOrderResultRecieved
[http://www.hybridsolutions.com/support/index.php?/Knowle...
SYNTAX
Event DeleteLimitOrderResult(Result As NewOrderResultEnum,OrderID As Long,TransTag As String)
DESCRIPTION
This event is raised after calling DeleteLimitOrder
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/1996]
met...
SYNTAX
Event DeleteSLTPOrderResult(Result As VertexFXClientAPI.NewOrderResultEnum,OrderId As Long, ByRef TransTag As String)
DESCRIPTION
This event is raised after calling DeleteSLTPOrder
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase...
SYNTAX
Event UpdateSLTPOrderResult(Result As VertexFXClientAPI.NewOrderResultEnum,OrderId As Long,ServerTime As String, TransTag As String)
DESCRIPTION
This event is raised after calling UpdateSLTPOrder
[http://www.hybridsolutions.com/support/index.php...
SYNTAX
Event UpdateLimitOrderResult(Result As NewOrderResultEnum, OrderId As Long,ServerTime As String ,TransTag As String)
DESCRIPTION
This event is raised after calling UpdateLimitOrder
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase...
SYNTAX
Event NewSLTPOrderResult(Result As NewOrderResultEnum,OrderID As Integer,ServerTime As String, TransTag As String)
DESCRIPTION
This event is raised after calling the NewSLTPOrder
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/A...
SYNTAX
Event NewLimitOrderResult(Result As NewOrderResultEnum,OrderID As Integer,ServerTime As String, TransTag As String)
DESCRIPTION
This event is raised after calling the NewLimitOrder
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase...
SYNTAX
Event PosFloatingPLChanged(Pos As VertexFXClientAPI.COOpenPosition)
DESCRIPTION
This event is raised when the profit/loss of open position is changed.
PARAMETERS
Part
Description
Pos
Position information that profit/loss had bee...
SYNTAX
Event SummariesChanged(Balance As Double,FltPL As Double,Credit As Double,Equity As Double,MarginReq As Double, MarginLevel As Double,EffMargin As Double)
DESCRIPTION
This event is raised when the selected account summary is changed.
PARAMETERS...
SYNTAX
Event OrderTimer(OrderID As Integer, AccountID As Integer, BuySell As VertexGeneral.OperationTypeEnum, Lots As Double, Symbol As VertexFXClientAPI.COSymbol, OldPrice As Double, NewPrice As Double, OpenTicket As Integer, CurrentTimer As Short,AllTi...
SYNTAX
Event MarketOrderRejected(OrderID As Integer, BuySell As OperationTypeEnum,Lots As Double,Symbol As COSymbol,Price As Double, NewOrLiq As NewOrLiquidateEnum, Comment As String)
DESCRIPTION
This event is raised after rejected market orders from t...
SYNTAX
Event MarketOrderAccepted(AccountID As Integer,OrderID As Integer,Ticket As Integer, BuySell As OperationTypeEnum,Lots As Double,Symbol As COSymbol,Price As Double,NewOrLiq As NewOrLiquidateEnum,RequestedPrice As Double)
DESCRIPTION
This event i...
SYNTAX
Event CloseOrderResult(Result As VertexFXClientAPI.NewOrderResultEnum,AtPrice As Double,PosOrOrder As Short, OrderID As Integer,BuySell As VertexGeneral.OperationTypeEnum,Lots As Double,Symbol As VertexFXClientAPI.COSymbol, ServerTime As String,O...
SYNTAX
Event NewOrderResult(Result As NewOrderResultEnum,AtPrice As Double,PosOrOrder As Integer,OrderID As Integer,BuySell As OperationTypeEnum,Lots As Double, Symbol As COSymbol,ServerTime As String,TransTag As String)
DESCRIPTION
This event is raise...
SYNTAX
Event DeleteOpenPosition(Pos As VertexFXClientAPI.COOpenPosition)
DESCRIPTION
This event is raised when an open position has been closed for its
entire overall amount.
PARAMETERS
Part
Description
Pos
Position information that had...
SYNTAX
Event UpdateOpenPosition(Pos As VertexFXClientAPI.COOpenPosition)
DESCRIPTION
This event is raised when an open position has been updated in the
case of closing part of its overall amount.
PARAMETERS
Part
Description
Pos
The posi...
SYNTAX
Event NewOpenPosition(Pos As VertexFXClientAPI.COOpenPosition)
DESCRIPTION
This event is raised when having a new open position for the selected
account.
PARAMETERS
Part
Description
Pos
New position information ,Value of
type Ve...
SYNTAX
Event PendingOrdersLoaded()
DESCRIPTION
This event is raised when all pending orders are loaded after
selecting an account using SelectAccount
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/1989]
method.
PARAMETER...
SYNTAX
Public Event OpenPositionsLoaded()
Description
This event is raised when all open positions are loaded by the API
after an account has been selected by SelectAccount
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/1...
SYNTAX
Event WaitingMode(ByRef Mode As HSClientDLL.WaitingModeEnum)
Description
This event is raised when the connection mode state of the API
changes.
PARAMETERS
Part
Description
Mode_ _
Connection mode,value of type HSClientDLL.Waitin...
SYNTAX
Event SymbolsLoaded()
Description
This event is raised when the symbols are loaded after calling the
Login
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/1979]
method.
PARAMETERS
No parameters.
REMARKS
Use t...
SYNTAX
Event SymbolHighLowChanged(ByRef Symbol As VertexFXClientAPI.COSymbol)
Description
This event is raised upon the change of the high low prices of a
specific symbol.
PARAMETERS
Part
Description
Symbol
Symbols object which the high...
SYNTAX
Event SymbolPricesChanged(Symbol As VertexFXClientAPI.COSymbol)
DESCRIPTION
This event is raised when the new prices for a specific symbol are
received by the API.
PARAMETERS
Part
Description
Symbol
Symbols object which the price...
SYNTAX
Event SessionDisconnected()
DESCRIPTION
This event is raised when a session is disconnected from the server
PARAMETERS
No parameter.
REMARKS
You can use this event to handle client session disconnection.
-------------------------
SEE ALS...
SYNTAX
Event InvalidUsernamePassword()
DESCRIPTION
This event is raised after the Login
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/1979]
method in case invalid username/password
PARAMETERS
No parameters.
REMARKS ...
SYNTAX
Event ConnectionState(IsConnected As Boolean)
DESCRIPTION
This event is raised after executed login
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/1979]
or disconnect
[http://www.hybridsolutions.com/support/index....
SYNTAX
Event AllDataAreLoaded()
DESCRIPTION
This event is raised when the API loads all data after the Login
[http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/1979]
method is called.
PARAMETERS
No parameters.
REMARKS
B...
Help Desk Software by Hybrid Solutions