Ejemplo n.º 1
0
        public RiskManagerService(IBittrexExchange exchange, string market, decimal balanceMinLimit)
        {
            _exchange = exchange;

            var pair = market.Split("-")
                       .Select(x => x.Replace(" ", ""))
                       .ToList();

            CurrencyFirst    = pair.FirstOrDefault();
            CurrencySecond   = pair.LastOrDefault();
            _balanceMinLimit = balanceMinLimit;
        }
 public PlaceOrderControlService(IBittrexExchange exchange)
 {
     _exchange = exchange;
     _orders   = new List <MetaOrder>();
 }
Ejemplo n.º 3
0
        public BuySellCommandHandler(IMongoDatabase database, IBittrexExchange exchange, IProtocolService protocolService)
        {
            _exchange = exchange;
//      _protocol = database.GetCollection<BsonDocument>("protocol");
            _protocolService = protocolService;
        }