Пример #1
0
        public BitfinexExchange(BitfinexExchangeConfiguration configuration,
                                TranslatedSignalsRepository translatedSignalsRepository,
                                BitfinexOrderBooksHarvester orderBooksHarvester,
                                BitfinexExecutionHarvester executionHarvester, ILog log)
            : base(Name, configuration, translatedSignalsRepository, log)
        {
            _modelConverter      = new BitfinexModelConverter(configuration);
            _orderBooksHarvester = orderBooksHarvester;
            _executionHarvester  = executionHarvester;
            var credenitals = new BitfinexServiceClientCredentials(configuration.ApiKey, configuration.ApiSecret);

            _exchangeApi = new BitfinexApi(credenitals)
            {
                BaseUri = new Uri(configuration.EndpointUrl)
            };



            orderBooksHarvester.MaxOrderBookRate = configuration.MaxOrderBookRate;
        }