Click or drag to resize

Adapter initialization Blackwood (Fusion)

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

C#
Connector Connector = new Connector();                
...                
var address = "<Address>".To<IPAddress>();
var messageAdapter = new BlackwoodMessageAdapter(Connector.TransactionIdGenerator)
{
    Login = "<Your Login>",
    Password = "<Your Password>".To<SecureString>(),
    ExecutionAddress = new IPEndPoint(address, BlackwoodAddresses.ExecutionPort),
    MarketDataAddress = new IPEndPoint(address, BlackwoodAddresses.MarketDataPort),
    HistoricalDataAddress = new IPEndPoint(address, BlackwoodAddresses.HistoricalDataPort)
};

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