Esempio n. 1
0
 public CryptoExchangeObserver(CryptoExchangeBase exchange)
 {
     Exchange     = exchange;
     history      = new Dictionary <string, List <CryptoCoin> > ( );
     priceChanges = new Dictionary <string, List <PriceChange> > ( );
     significantChangeSubscriptions = new Dictionary <long, List <SubscriptionInfo> > ( );
 }
Esempio n. 2
0
 public SubscriptionInfo(CryptoExchangeBase exchange, ResumableSubscription subscription)
 {
     Exchange             = exchange;
     Threshold            = subscription.Threshhold;
     LastSignificantPrice = subscription.LastSignificantPrice;
 }
Esempio n. 3
0
 public SubscriptionInfo(CryptoExchangeBase exchange, decimal threshold)
 {
     Exchange             = exchange;
     Threshold            = threshold;
     LastSignificantPrice = new Dictionary <string, CryptoCoin> ( );
 }