Adapter initialization: Capital.com

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

var messageAdapter = new CapitalComMessageAdapter(Connector.TransactionIdGenerator)
{
	Password = "<value>".ToSecureString(),
	ApiKey = "<value>",
	Login = "<value>",
	AccountId = "<value>",
};

Connector.Adapter.InnerAdapters.Add(messageAdapter);

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

See also

Connection settings window