public override void Initialize() { _cryptoCurrencyCode = _config.GetValue("crypto_currency_code"); _operativeAmount = double.Parse(_config.GetValue("operative_amount")); _minWallVolume = double.Parse(_config.GetValue("min_volume")); _maxWallVolume = double.Parse(_config.GetValue("max_volume")); log(String.Format("Bitfinex Litecoin CBT trader initialized with operative={0}; MinWall={1}; MaxWall={2}", _operativeAmount, _minWallVolume, _maxWallVolume)); _requestor = new BitfinexApi(_config, _logger, MIN_ORDER_AMOUNT); }
public override void Initialize() { _cryptoCurrencyCode = _config.GetValue("crypto_currency_code"); _operativeAmount = double.Parse(_config.GetValue("operative_amount")); _minWallVolume = double.Parse(_config.GetValue("min_volume")); _maxWallVolume = double.Parse(_config.GetValue("max_volume")); _minDifference = double.Parse(_config.GetValue("trade_spread")); //TODO: CBT needs this too _minPriceUpdate = double.Parse(_config.GetValue("min_price_update")); log(String.Format("Bitfinex {0} CST trader initialized with operative={1}; minWall={2}; maxWall={3}", _cryptoCurrencyCode, _operativeAmount, _minWallVolume, _maxWallVolume)); _requestor = new BitfinexApi(_config, _logger, MIN_ORDER_AMOUNT); }