Adapter initialization: Finam Trade API
The following code initializes FinamTradeMessageAdapter and adds it to Connector.
var messageAdapter = new FinamTradeMessageAdapter(Connector.TransactionIdGenerator)
{
Token = "<token>".ToSecureString(),
AccountId = "<account-id>",
};
Connector.Adapter.InnerAdapters.Add(messageAdapter);
Set Token to the Finam Trade API secret. Omit AccountId to let the adapter use the first account available to the token. Additional properties are described on the Connector configuration page.