public static decimal GetLast24hVolume(bool currentData = true) { if (currentData) { InternalExchangeStatistics internalExchangeStatistics = (InternalExchangeStatistics) new InternalExchangeStatisticsCache().Get(); return(internalExchangeStatistics.Change24); } else { InternalExchangeStatistics internalExchangeOldStatistics = (InternalExchangeStatistics) new InternalExchangeOldStatisticsCache().Get(); return(internalExchangeOldStatistics.Change24); } }
public static decimal GetLastStockValue(bool currentData = true) { if (currentData) { InternalExchangeStatistics internalExchangeStatistics = (InternalExchangeStatistics) new InternalExchangeStatisticsCache().Get(); return(internalExchangeStatistics.LastValue); } else { InternalExchangeStatistics internalExchangeOldStatistics = (InternalExchangeStatistics) new InternalExchangeOldStatisticsCache().Get(); return(internalExchangeOldStatistics.LastValue); } }