OnixS SGX Derivatives Handler for C++  2.17.0.0
Public Types | Public Member Functions | Public Attributes | List of all members
Settings Struct Reference

Handler settings. More...

Public Types

typedef std::set< int > NonReconnectErrorCodes
 

Public Member Functions

 Settings ()
 Default constructor. More...
 

Public Attributes

std::string clientString
 Cross-reference participant's client string.
 
PriceDepthOption::Enum priceDepthOption
 Select the needed price depth. More...
 
LogSwitches::Enum logSwitches
 Combine LogSwitches enum values to configure the logger.
 
std::string logDirectory
 Path to directory for log files.
 
std::string logFile
 Template of log file name without extension.
 
LogLevel::Enum logLevel
 Log verbosity. More...
 
std::string licenseDir
 Directory with the product license. More...
 
bool concurrentConnection
 If true handler will try to use concurrent connections for API calls and events reading.
 
ConnectionRetries connectionRetries
 Connection retries configuration settings. More...
 
NonReconnectErrorCodes nonReconnectErrorCodes
 Non-reconnect error codes set. More...
 

Detailed Description

Handler settings.

Constructor & Destructor Documentation

Settings ( )

Default constructor.

Sets logSwitches to Default, testingMode to false, concurrentConnection to true.

Member Data Documentation

ConnectionRetries connectionRetries

Connection retries configuration settings.

See also
ConnectionRetries.
std::string licenseDir

Directory with the product license.

Note
The default value is "." (current dir)
LogLevel::Enum logLevel

Log verbosity.

Note
The default value is LogLevel::Info
NonReconnectErrorCodes nonReconnectErrorCodes

Non-reconnect error codes set.

This option used to control set of non-reconnect error codes.

By default includes following error codes:

OMNIAPI_INTFAILURE(-2001), OMNIAPI_LOGIN_DISABLED(-2023), OMNIAPI_INVALID_LOGIN_ATTEMPT(-2024), OMNIAPI_INVALID_LOGIN_LOCKED(-2033), OMNIAPI_INVALID_LOGIN_SUSPENDED(-2034), OMNIAPI_RELOGIN_NOT_ALLOWED(-2035), OMNIAPI_INVALID_LOGIN_INACTIVE(-2037).

PriceDepthOption::Enum priceDepthOption

Select the needed price depth.

Default value is PriceDepthOption::PriceDepth5.