The Lab

Versions Compared

Key

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

...

Code Block
languagejava
titleListing 2.2 – trading session logon
public void onStart(final MFTradingSession session) {
	try {
		session.logon();
	} catch (MFException e) { System.out.println("Failed to logon."); e.printStackTrace();
		System.exit(-1);
	}
} 

 

The call to session.logon() will, in the of a successful logon, the on(LogonResponse logonResponse, MFTradingSession session) callback will be called.