Adapter initialization: Dukascopy JForex
The following code shows how to initialize DukasCopyMessageAdapter and add it to Connector.
var messageAdapter = new DukasCopyMessageAdapter(Connector.TransactionIdGenerator)
{
Password = "<value>".ToSecureString(),
UserName = "<value>",
BridgeJarPath = "<value>",
IsDemo = true,
};
Connector.Adapter.InnerAdapters.Add(messageAdapter);
Replace the sample values with the parameters issued or configured for your account.