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>(); }
public BuySellCommandHandler(IMongoDatabase database, IBittrexExchange exchange, IProtocolService protocolService) { _exchange = exchange; // _protocol = database.GetCollection<BsonDocument>("protocol"); _protocolService = protocolService; }