• Version 1.7.1
Show / Hide Table of Contents

Configuring the Handler

Many settings control the behavior of the Handler.

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

The default settings of the Handler can be changed using the SessionSettings class or a configuration file (XML, JSON, or application configuration file).

To specify a configuration for the Handler, one can use either the SessionSettings class interface to set it programmatically or use the LoadFromConfigurationFile(string) method to load the configuration from a file.

Example

Configure the Handler using the SessionSettings class:

SessionSettings settings = new()
{
    AccessKey = ConfigurationManager.AppSettings["AccessKey"],
    FirmId = ConfigurationManager.AppSettings["FirmId"],
    LicenseStore = "../../../../../license",
    SecretKey = ConfigurationManager.AppSettings["SecretKey"],
    SessionId = ConfigurationManager.AppSettings["SessionId"],
    TradingSystemName = "Trading System",
    TradingSystemVendor = "OnixS",
    TradingSystemVersion = "1.1.0",
};

using Session session = new(settings, marketSegmentId);

Configure the Handler using an XML-based file:

SessionSettings settings = new ();

settings.LoadFromConfigurationFile("CmeILink3HandlerConfig.xml");

using Session session = new(settings, marketSegmentId);

See Also

  • The Getting Started sample from the distribution package
In this article
Back to top Copyright © Onix Solutions.
Generated by DocFX