예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }