Caution
The BitMEX exchange will close on September 23, 2026; new user registrations have already stopped. The connector will stop working after the closure.
Adapter initialization BitMEX
The code below demonstrates how to initialize the BitmexMessageAdapter and send it to Connector.
Connector Connector = new Connector();
...
var messageAdapter = new BitmexMessageAdapter(Connector.TransactionIdGenerator)
{
Key = "<Your API Key>".To<SecureString>(),
Secret = "<Your API Secret>".To<SecureString>(),
};
Connector.Adapter.InnerAdapters.Add(messageAdapter);
...