Exemple #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> > ( );
 }
Exemple #2
0
 public SubscriptionInfo(CryptoExchangeBase exchange, ResumableSubscription subscription)
 {
     Exchange             = exchange;
     Threshold            = subscription.Threshhold;
     LastSignificantPrice = subscription.LastSignificantPrice;
 }
Exemple #3
0
 public SubscriptionInfo(CryptoExchangeBase exchange, decimal threshold)
 {
     Exchange             = exchange;
     Threshold            = threshold;
     LastSignificantPrice = new Dictionary <string, CryptoCoin> ( );
 }