Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
 public CrazyBuyerTrap(IConfiguration config, ILogger logger)
 {
     _config = config;
     _logger = logger;
     _requestor = new HuobiApi(config, logger);
 }