Click or drag to resize

Adapter initialization E*TRADE

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

C#
Connector Connector = new Connector();                
...                
var messageAdapter = new ETradeMessageAdapter(Connector.TransactionIdGenerator)
{
    ConsumerSecret = "<Your Secret>".To<SecureString>(),
    ConsumerKey = "<Your Key>",
};

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