Click or drag to resize

Adapter initialization FAST

The code below demonstrates how to initialize the FastMessageAdapter and send it to Connector.

C#
Connector Connector = new Connector();                
...                
var messageAdapter = new FastMessageAdapter(Connector.TransactionIdGenerator)
{
    // choose required dialect
    Dialect = typeof(StockSharp.Fix.Dialects.Bovespa.BovespaFastDialect),
};

// load all dialect settings from an exchange config file
messageAdapter.DialectSettings.LoadSettingsFromFile(configFile);

Connector.Adapter.InnerAdapters.Add(messageAdapter);
...
See Also