TradeStation adapter initialization

The following code demonstrates how to initialize TradeStationMessageAdapter and pass it to Connector.

var messageAdapter = new TradeStationMessageAdapter(Connector.TransactionIdGenerator)
{
	Token = "<Token>".ToSecureString(),
	IsDemo = true,
	DefaultRoute = "Intelligent",
};

Connector.Adapter.InnerAdapters.Add(messageAdapter);

Replace the example values with credentials and endpoints issued for your account.

Connection settings window