public override void Initialize() { _operativeAmount = double.Parse(_config.GetValue("operative_amount")); _minWallVolume = double.Parse(_config.GetValue("min_volume")); _maxWallVolume = double.Parse(_config.GetValue("max_volume")); log(String.Format("BTC-E Crazy buyer trap trader initialized with operative={0}; MinWall={1}; MaxWall={2}", _operativeAmount, _minWallVolume, _maxWallVolume)); _requestor = new BtceApi(_config, _logger); }
public override void Initialize() { _baseCurrency = _config.GetValue("base_currency_code"); _arbCurrency = _config.GetValue("arbitrage_currency_code"); _parity = double.Parse(_config.GetValue("parity_ratio")); _arbFactor = double.Parse(_config.GetValue("profit_factor")); _intervalMs = 3000; _requestor = new BtceApi(_config, _logger/*, _baseCurrency, _arbCurrency*/); log(String.Format("LakeBTC arbitrage trader started for currencies {0}, {1} with parity={2:0.000}; profit factor={3}", _baseCurrency, _arbCurrency, _parity, _arbFactor)); }
public override void Initialize() { _baseAssetCode = _config.GetValue("base_asset_code"); if (null == _baseAssetCode) { throw new Exception("Configuration key 'base_asset_code' missing"); } _counterAssetCode = _config.GetValue("counter_asset_code"); if (null == _counterAssetCode) { throw new Exception("Configuration key 'counter_asset_code' missing"); } _minWallVolume = double.Parse(_config.GetValue("min_volume")); _maxWallVolume = double.Parse(_config.GetValue("max_volume")); _minDifference = double.Parse(_config.GetValue("trade_spread")); _fee = double.Parse(_config.GetValue("fee_factor")); _decimalPrecision = int.Parse(_config.GetValue("decimal_precision")); _minPriceUpdate = 2.0 * Math.Pow(10.0, -1.0 * _decimalPrecision); log(String.Format("CST trader initialized for pair {0}/{1}; MinWall={2}; MaxWall={3}", _counterAssetCode, _baseAssetCode, _minWallVolume, _maxWallVolume)); _requestor = new BtceApi(_config, _logger); }