The Lab

Versions Compared

Key

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

First, use the MFFactory class to create an MFClient instance.

Second, create an instance of your application's trading handler (which implements the MFTradingHandler interface).

Third, use the factory method .newTcpTradingSession() on the MFClient instance to create the trading session object, passing in your application's trading handler. This returns an instance of MFTradingSession, which connects to MarketFactory via TCP.

At this point, the dispatch of events to handlers may be started by calling .run() on the client.

...