All the Handler classes are encapsulated into the OnixS::Eurex::Trading namespace. Header files are collected in the master OnixS/Eurex/Trading.h header file.
How to get started
The typical way of using the Handler is as follows:
- Create an instance of HandlerSettings class and adjust Handler's settings.
- Create an instance of Handler class using previously initialized instance of HandlerSettings.
- Register error and warning listener to be notified about failures occurred while the Handler processes market data.
- Register listeners for miscellaneous trading events.
- Create an instance of Logon class and adjust session settings.
- Assign Logon::encryptedPassword field with encrypted password to use password encrypted session logon. Otherwise, assign Logon::password field with plain text password.
- Establish the connection using the Handler::connect method.
- Create an instance of UserLoginRequest class and adjust user logon settings.
- Send user login request using Handler::send method.
- Start sending messages.
- Create an instance of UserLogoutRequest class and adjust user logout settings.
- Send user logout request using Handler::send method.
- Terminate the connection to Eurex ETI using the Handler::disconnect method.
Session Logon (Plain text password)
The Handler supports plain test password session logon. To use this feature, the following steps should be performed:
Session Logon (Password encrypted)
The Handler supports password encrypted session logon. To use this feature, the following steps should be performed:
To encrypt a password you will need an RSA public key. You can find these keys for Production and Simulation in the samples/Keys directory.
Please also see section 5.3.3 Password Encryption of Enhanced Trading Interface (ETI) Manual to get more information about password encryption.