Adapter initialization: KyberSwap
The following code initializes KyberSwapMessageAdapter and adds it to Connector.
Connector connector = new Connector();
...
var messageAdapter = new KyberSwapMessageAdapter(connector.TransactionIdGenerator)
{
ClientId = "<Your client ID>",
WalletAddress = "<Your wallet address>",
PrivateKey = "<Your private key>".To<SecureString>(),
};
connector.Adapter.InnerAdapters.Add(messageAdapter);
...
Set the credentials and any other required properties described on the Connector configuration page.