Interactive Brokers Adapter Initialization

The code below demonstrates how to initialize InteractiveBrokersMessageAdapter and pass it to Connector.

Connector Connector = new Connector();				
...				
var messageAdapter = new InteractiveBrokersMessageAdapter(Connector.TransactionIdGenerator)
{
	Address = "<Your Address>".To<EndPoint>(),
};
Connector.Adapter.InnerAdapters.Add(messageAdapter);
...	
							

An alternative and more convenient way is to use the AddAdapter<T>() extension method:

Connector Connector = new Connector();
...
Connector.AddAdapter<InteractiveBrokersMessageAdapter>(a =>
{
	a.Address = "<Your Address>".To<EndPoint>();
});

See also

Connection settings window