OnixS C++ B3 BOE Binary Order Entry  1.2.0
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::B3::BOE::SessionSettings class declaration.

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

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

Example

Configure the Handler using the OnixS::B3::BOE::SessionSettings class:

using namespace OnixS::B3::BOE;
SessionSettings settings;
settings.licenseStore("../../license")
.sessionId(100000000 /* "Value Received From B3" */)
.accessKey("Value Received From B3")
.enteringFirm(100 /* "Value Received From B3" */)
.tradingSystemName("Your Trading System Name Here");
Session session(settings, nullptr);

Configure the Handler using an XML-based file:

using namespace OnixS::B3::BOE;
SessionSettings settings;
settings.load("B3BOEHandlerConfig.xml");
Session session(settings, nullptr);