Adapter initialization: SinoPac Shioaji

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

var messageAdapter = new ShioajiMessageAdapter(Connector.TransactionIdGenerator)
{
	Key = "<value>".ToSecureString(),
	Secret = "<value>".ToSecureString(),
	Address = "<value>",
	ReconnectAttempts = 10,
};

Connector.Adapter.InnerAdapters.Add(messageAdapter);

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

See also

Connection settings window