Webull adapter initialization

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

var messageAdapter = new WebullMessageAdapter(Connector.TransactionIdGenerator)
{
	Key = "<application key>".ToSecureString(),
	Secret = "<application secret>".ToSecureString(),
	Token = "<access token>".ToSecureString(),
	Account = "<account identifier>",
	IsDemo = false,
};

Connector.Adapter.InnerAdapters.Add(messageAdapter);

The Token and Account settings can be omitted when they are not required.

Connection settings window