OnixS C++ CME iLink 3 Binary Order Entry Handler  1.8.0
API Documentation
Configuring the Handler

Inner Contents

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

Detailed Description

There are a number of parameters (settings) which 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 an external configuration file (XML, JSON or INI-based).

To specify a configuration for the Handler, one can use either 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 the config file.

Example

Configure the CME iLink 3 Handler by the OnixS::CME::iLink3::SessionSettings class:

using namespace OnixS::CME::iLink3;
// Create an instance of the SessionSettings class.
SessionSettings settings;
// Set necessary settings.
settings.licenseStore("../../license")
.sessionId("SessionId")
.secretKey("secretKey")
.accessKey("accessKey")
.firmId("firmId");
const int MarketSegmentId = 54;
// Construct the Session object with the given SessionSettings class instance.
Session session(settings, MarketSegmentId, NULL);

Configure the CME iLink 3 Handler by the external XML-based configuration file:

using namespace OnixS::CME::iLink3;
// Create an instance of the SessionSettings class.
SessionSettings settings;
// Invoke the SessionSettings::load with the name of an external XML-based configuration file.
settings.load("CmeILink3HandlerConfig.xml");
const int MarketSegmentId = 54;
// Construct the Session object with the given SessionSettings class instance.
Session session(settings, MarketSegmentId, NULL);