private static IMessageProducer <ExternalExchangeOrderbookMessage> CreateRabbitMqMessageProducer( IReloadingManager <MarginTradingOrderbookAggregatorSettings> settings, IRabbitMqService rabbitMqService) { return(rabbitMqService.GetProducer(settings.Nested(s => s.RabbitMq.Publishers.Orderbooks), true, rabbitMqService.GetMsgPackSerializer <ExternalExchangeOrderbookMessage>())); }