• Programming Guide
  • Api Documentation
  • OnixS CME iLink3 Handler for .NET Core, version 1.4.2
Show / Hide Table of Contents
  • Introduction
  • System Requirements
  • Getting Started
    • Error Reporting
    • Licensing
    • SBE Message
      • Tag-based Messaging
      • Message Fields
      • Repeating Groups
    • iLink 3 Session
      • Universally Unique Identifier
      • Establishing iLink3 Connection
      • Exchanging Messages
      • Message Sequence Numbers
  • Configuring the Handler
    • Configuration File Examples (XML or JSON)
  • Logging
  • Session Storage
    • File-Based Session Storage
    • Memory-based Session Storage
    • Asynchronous File-Based Session Storage
    • Pluggable Session Storage
  • Advanced Programming
    • Thread Safety
    • Session Initialization and Binding
    • Session States
    • Listening to Session Events
    • Handling NotApplied Messages
    • Handling Business Reject Messages
    • Automated Downloading of GTC and GTD Orders
    • Reconnection
    • Fault Tolerance
    • Understanding Send Latency
    • Strongly Typed Messages
  • Best Practices
    • Low Latency Best Practices
  • Glossary
  • Support

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 SessionSettings();

settings.LicenseStore = "../../../../../license";

settings.TradingSystemVersion = "1.1.0";
settings.TradingSystemName = "Trading System";
settings.TradingSystemVendor = "OnixS";

settings.SessionId = ConfigurationManager.AppSettings["SessionId"];
settings.FirmId = ConfigurationManager.AppSettings["FirmId"];
settings.AccessKey = ConfigurationManager.AppSettings["AccessKey"];
settings.SecretKey = ConfigurationManager.AppSettings["SecretKey"];

using (Session session = new Session(settings, marketSegmentId))
{
}

Configure the Handler using an XML-based file:

SessionSettings settings = new SessionSettings();

settings.LoadFromConfigurationFile("CmeILink3HandlerConfig.xml");

using (Session session = new Session(settings, marketSegmentId))
{
}
In This Article
Back to top Copyright © Onix Solutions.
Generated by DocFX