Adapter initialization: MetaApi

The following code initializes MetaApiMessageAdapter and adds it to Connector.

var messageAdapter = new MetaApiMessageAdapter(Connector.TransactionIdGenerator)
{
	Token = "<token>".ToSecureString(),
	AccountId = "<account-id>",
};

Connector.Adapter.InnerAdapters.Add(messageAdapter);

Replace the sample values with the token and the identifier of the account deployed in MetaApi.

See also

Connection settings window