Adapter initialization: SnapTrade

The following code shows how to initialize SnapTradeMessageAdapter and add it to Connector.

var messageAdapter = new SnapTradeMessageAdapter(Connector.TransactionIdGenerator)
{
	ConsumerKey = "<value>".ToSecureString(),
	UserSecret = "<value>".ToSecureString(),
	ClientId = "<value>",
	UserId = "<value>",
};

Connector.Adapter.InnerAdapters.Add(messageAdapter);

Replace the sample values with the parameters issued or configured for your account.

See also

Connection settings window