public NaiveBull(IConfiguration config, ILogger logger) { _logger = logger; _logger.Message("Naive Bull trader initialized with operative amount " + OPERATIVE_AMOUNT + " BTC"); _requestor = new HuobiApi(config, logger); _trend = new MarketTrend(); }
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("Huobi CST trader initialized with operative={0}; MinWall={1}; MaxWall={2}", _operativeAmount, _minWallVolume, _maxWallVolume)); _requestor = new HuobiApi(_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 HuobiApi(_config, _logger); log(String.Format("LakeBTC arbitrage trader started for currencies {0}, {1} with parity={2:0.000}; profit factor={3}", _baseCurrency, _arbCurrency, _parity, _arbFactor)); }
public CrazyBuyerTrap(IConfiguration config, ILogger logger) { _config = config; _logger = logger; _requestor = new HuobiApi(config, logger); }