Working with Handler
The main class to work with Handler is Session.
To create the Session object, there are four parameters (obtained from CME):
- CME Straight Through Processing Service URI
- SenderCompID - Assigned value used to identify customer firm sending a message.
- SenderSubID - The user ID assigned to the sender, must be provided in all uppercase letters.
- Password - CME assigned password.
For example:
const string uri = "https://servicesnr.cmegroup.com/cmestp/query";
const string senderCompID = "Sender";
const string senderSubID = "SenderSubId";
const string password = "Password";
try
{
Session session = new Session(new Uri(uri), senderCompID, senderSubID, password);
}
catch (LicenseException ex)
{
Console.WriteLine("License error: " + ex.Message);
return;
}