Adapter initialization: StocksTrader
The following code initializes StocksTraderMessageAdapter and adds it to Connector.
var messageAdapter = new StocksTraderMessageAdapter(Connector.TransactionIdGenerator)
{
Token = "<token>".ToSecureString(),
IsDemo = true,
};
Connector.Adapter.InnerAdapters.Add(messageAdapter);
Replace the sample values with the token issued for the selected demo or real account.