OnixS C++ CME iLink 3 Binary Order Entry Handler  1.18.9
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::iLink3::SessionSettings class declaration.

The default settings of the Handler can be changed using the OnixS::CME::iLink3::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::iLink3::SessionSettings class interface to set it programmatically or use the OnixS::CME::iLink3::SessionSettings::load(const std::string & configFile) method to load the configuration from a file.

Example

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

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

Configure the Handler using an XML-based file:

using namespace OnixS::CME::iLink3;
SessionSettings settings;
settings.load("CmeILink3HandlerConfig.xml");
const int MarketSegmentId = 54;
Session session(settings, MarketSegmentId, nullptr);