Click or drag to resize

Adapter initialization Rithmic

The code below demonstrates how to initialize the RithmicMessageAdapter and send it to Connector.

C#
Connector Connector = new Connector();                
...                
var messageAdapter = new RithmicMessageAdapter(Connector.TransactionIdGenerator)
{
    UserName = "<Your Login>",
    Password = "<Your Password>".To<SecureString>(),
    CertFile = "<Path to certificate file>",
    Server = RithmicServers.Real,
    //Server = RithmicServers.Test,
    //Server = RithmicServers.Simulator,  
};

Connector.Adapter.InnerAdapters.Add(messageAdapter);
...
See Also