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