OnixS C++ CME MDP Conflated TCP Handler  1.3.6
API Documentation
Configuring the Handler

Inner Contents

 Configuration File Examples (XML, JSON, and INI-based)
 

Detailed Description

There are many settings that control the behavior of the Handler.

All configuration settings, default values, and configuration keys can be found in the OnixS::CME::ConflatedTCP::SessionSettings class declaration.

The default settings of the Handler can be changed using the OnixS::CME::ConflatedTCP::SessionSettings class or a configuration file (XML, JSON, or INI-based).

To specify a configuration for the Handler, one can use either the OnixS::CME::ConflatedTCP::SessionSettings class interface to set it programmatically or use the OnixS::CME::ConflatedTCP::SessionSettings::load(const std::string & configFile) method to load the configuration from a file.

Example

Configure the Handler using the OnixS::CME::ConflatedTCP::SessionSettings class:

using namespace OnixS::CME::ConflatedTCP;
SessionSettings settings;
settings.licenseStore("../../license")
.sessionId("SessionId")
.secretKey("secretKey")
.accessKey("accessKey")
.firmId("firmId");
const int MarketSegmentId = 54;
Session session(settings, MarketSegmentId, ONIXS_CONFLATEDTCP_NULLPTR, ONIXS_CONFLATEDTCP_NULLPTR);

Configure the Handler using an XML-based file:

using namespace OnixS::CME::ConflatedTCP;
SessionSettings settings;
settings.licenseStore("../../license")
.sessionId("SessionId")
.secretKey("secretKey")
.accessKey("accessKey")
.firmId("firmId");
settings.load("settings.xml");
const int MarketSegmentId = 54;
Session session(settings, MarketSegmentId, ONIXS_CONFLATEDTCP_NULLPTR, ONIXS_CONFLATEDTCP_NULLPTR);