Example #1
0
 public BittrexApi(string key, string secret, CancellationToken shutdown, Logger log)
     : base(key, secret, shutdown, 10, "https://api.bittrex.com/", "https://socket.bittrex.com/signalr")
 {
     try
     {
         Log        = new Logger("BittrexApi", log);
         WebSocket  = new BittrexWebSocket(UrlSocketAddress, shutdown);
         MarketData = new MarketDataCache(this);
     }
     catch
     {
         Dispose();
         throw;
     }
 }
Example #2
0
 public MarketStream(CurrencyPair pair, MarketDataCache owner)
 {
     try
     {
         Cache     = owner;
         Pair      = pair;
         OrderBook = new OrderBook(pair, 0L);
         m_pending = new List <IMarketUpdate>();
     }
     catch
     {
         Dispose();
         throw;
     }
 }