OnixS EBS BrokerTec Market Data and Trading Handler for C++  2.14.1.0

Specifing License File

Handler needs a license for successful execution. If the Handler is not able to find a valid license it will throw an exception at the initialization stage.

OnixS::BrokerTec::Settings structure exposes OnixS::BrokerTec::Settings::licenseDir parameter which allows to instruct the Handler where to look for a license. By default, the Handler looks for a license in the current directory for the application which uses the Handler. Handler also assumes that license file has "lic" extension.

Example

Following example demonstrates how supply license to the Handler:

using namespace OnixS::BrokerTec;
// Constructs handler's settings object.
HandlerSettings settings;
// By default, license is stored in license folder of the distribute
// package. Instead of copying license, let's use original file.
settings.licenseDir = "../license";
// Constructs handler with custom license path.
Handler handler(settings);