MFClient  1.3.0
 All Classes Functions Variables Enumerations
Public Member Functions | List of all members
MFTradingHandler Class Referenceabstract

Applications implement this interface in order to process events from a MFTradingSession More...

#include <MFTradingHandler.h>

Public Member Functions

virtual void onStart (MFTradingSession &session)=0
 Called right before the handler becomes active in the MFClient::run() event loop. More...
 
virtual void onStop (MFTradingSession &session)=0
 Called when the session is being removed from processing in the event loop. More...
 
virtual void onConnect (MFTradingSession &session)=0
 Called when the session establishes a socket connection. More...
 
virtual void onDisconnect (const std::string &msg, MFTradingSession &session)=0
 Called when the session socket disconnects. More...
 
virtual void on (const mftrading::LogonResponse &logonResponse, MFTradingSession &session)=0
 Called when a logon is successful. More...
 
virtual void on (const mftrading::Logout &logout, MFTradingSession &session)=0
 Called when a logout is request to the client. The client should respond with a logout response. More...
 
virtual void on (const mftrading::LogoutResponse &logoutResponse, MFTradingSession &session)=0
 A response to a successful logout request. More...
 
virtual void on (const mftrading::Heartbeat &heartbeat, MFTradingSession &session)=0
 Called when a heartbeat is received. More...
 
virtual void on (const mftrading::ResendRequest &resendRequest, MFTradingSession &session)=0
 Called when a resend request is received from the server (currently not used). TODO - still not used?? On java side, appears to be used? More...
 
virtual void on (const mftrading::MarketDefinition &marketDefinition, MFTradingSession &session)=0
 Gives the definition of a particular venue. More...
 
virtual void on (const mftrading::TradingSessionStatus &tradingSessionStatus, MFTradingSession &session)=0
 A response to the trading session request. This notifies the client of the subscription status for a trading venue. More...
 
virtual void on (mftrading::ExecutionReport &executionReport, MFTradingSession &session)=0
 A response to an order action (order submission, modification, cancellation) to give the user the status of the order. More...
 
virtual void on (const mftrading::OrderCancelReject &orderCancelReject, MFTradingSession &session)=0
 Sent when an attempt to cancel an order fails. More...
 

Detailed Description

Applications implement this interface in order to process events from a MFTradingSession

Member Function Documentation

virtual void MFTradingHandler::on ( const mftrading::LogonResponse &  logonResponse,
MFTradingSession session 
)
pure virtual

Called when a logon is successful.

virtual void MFTradingHandler::on ( const mftrading::Logout &  logout,
MFTradingSession session 
)
pure virtual

Called when a logout is request to the client. The client should respond with a logout response.

virtual void MFTradingHandler::on ( const mftrading::LogoutResponse &  logoutResponse,
MFTradingSession session 
)
pure virtual

A response to a successful logout request.

virtual void MFTradingHandler::on ( const mftrading::Heartbeat &  heartbeat,
MFTradingSession session 
)
pure virtual

Called when a heartbeat is received.

virtual void MFTradingHandler::on ( const mftrading::ResendRequest &  resendRequest,
MFTradingSession session 
)
pure virtual

Called when a resend request is received from the server (currently not used). TODO - still not used?? On java side, appears to be used?

virtual void MFTradingHandler::on ( const mftrading::MarketDefinition &  marketDefinition,
MFTradingSession session 
)
pure virtual

Gives the definition of a particular venue.

virtual void MFTradingHandler::on ( const mftrading::TradingSessionStatus &  tradingSessionStatus,
MFTradingSession session 
)
pure virtual

A response to the trading session request. This notifies the client of the subscription status for a trading venue.

virtual void MFTradingHandler::on ( mftrading::ExecutionReport &  executionReport,
MFTradingSession session 
)
pure virtual

A response to an order action (order submission, modification, cancellation) to give the user the status of the order.

virtual void MFTradingHandler::on ( const mftrading::OrderCancelReject &  orderCancelReject,
MFTradingSession session 
)
pure virtual

Sent when an attempt to cancel an order fails.

virtual void MFTradingHandler::onConnect ( MFTradingSession session)
pure virtual

Called when the session establishes a socket connection.

virtual void MFTradingHandler::onDisconnect ( const std::string &  msg,
MFTradingSession session 
)
pure virtual

Called when the session socket disconnects.

virtual void MFTradingHandler::onStart ( MFTradingSession session)
pure virtual

Called right before the handler becomes active in the MFClient::run() event loop.

virtual void MFTradingHandler::onStop ( MFTradingSession session)
pure virtual

Called when the session is being removed from processing in the event loop.


The documentation for this class was generated from the following file: