Initialization of Bit2Me Adapter
The code below demonstrates how to initialize the Bit2MeMessageAdapter and pass it to the Connector.
Connector connector = new Connector();
...
var messageAdapter = new Bit2MeMessageAdapter(connector.TransactionIdGenerator)
{
Key = "<Your API key>".To<SecureString>(),
Secret = "<Your API secret>".To<SecureString>(),
};
connector.Adapter.InnerAdapters.Add(messageAdapter);
...
Omit Key and Secret when only public market data is required. REST and WebSocket addresses can be changed through RestEndpoint and WebSocketEndpoint.