OnixS::CME::MarketData::Handler constructor accepts instance of the OnixS::CME::MarketData::HandlerSettings class which defines values for various parameters which affect Handler's behavior. Below section describes role of the most important parameters used in usual cases.
CME market data is distributed across multiple logical units to reduce network and client system load. These logical units are called as channels. Therefore, first of all Handler requires channel to be identified to be able to process market data. OnixS::CME::MarketData::HandlerSettings class exposes OnixS::CME::MarketData::HandlerSettings::channelId parameter to instruct the Handler market data of which channel must be processed.
Handler also requires market data configuration to be specified. Data stored in this configuration is used by the Handler to identify network connectivity attributes for a particular market data channel.
OnixS::CME::MarketData::HandlerSettings class exposes OnixS::CME::MarketData::HandlerSettings::channelsConfigurationFile parameter whose value must take on a path to the locally stored copy of such configuration file.
All CME Group market data messages are FAST-encoded to lower latency dissemination. FAST coding supposes use of coding templates. Therefore, Handler requires such information to be specified for proper decoding market data messages. OnixS::CME::MarketData::HandlerSettings class exposes OnixS::CME::MarketData::HandlerSettings::codingTemplatesFile member to instruct the Handler where the coding templates file is located.
By default, Handler logs all important aspects of its activity while processing market data. Therefore, it must know where on local file system it can store this kind of information. OnixS::CME::MarketData::HandlerSettings::logDirectory parameter value must be defined to point the Handler in which directory it can place its log files.
Following example demonstrates how to setup primary settings for the Handler: