The Lab

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
titleMarketData Session creation
/**
* Creates a session for connecting to a particular
* venue gateway over TCP.
*
* @param port specify 0 to have it automatically choose port.
* @param autoRelogon automatically relogons when a disconnection occurs.
*/
MFMarketDataSession newTcpMarketDataSession(MFMarketDataHandler handler, 
										String venueName, 
										long venueID, 	
										String username, 
										String password, 
										String hostname, 
										int port, 
										boolean autoRelogon) throws MFException;

Code Block
languagejava
titlePriceDepthBook Session creation
/**
* Creates a session for connecting to a particular
* venue gateway over TCP.
*
* @param port specify 0 to have it automatically choose port.
* @param reconnectOnDisconnect automatically reconnects when a disconnection occurs.
**/
MFMarketDataSession newTcpMarketDataPriceDepthBookSession(MFPriceDepthBookHandler handler, 
													String venueName, 
													long venueID, 
													String username, 
													String password, 
													String hostname, 
													int port, 
													boolean reconnectOnDisconnect) throws MFException; 

...

Gliffy Diagram
nameGeneralSessionSequenceDiagram
pagePin3

Figure 1.1. – Showing the flow to demonstrate the session lifecycle of a session. Trading is shown, but MarketData is similar.

...