Table of Contents

Adapter initialization Alpaca

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

Connector Connector = new Connector();				
...				
var messageAdapter = new AlpacaMessageAdapter(Connector.TransactionIdGenerator)
{
	Key = "<Your API Key>".To<SecureString>(),
	Secret = "<Your API Secret>".To<SecureString>(),

	// uncomment for sandbox mode
	//IsDemo = true,
};
Connector.Adapter.InnerAdapters.Add(messageAdapter);
...	
							

Connection settings window