Example #1
0
 //Get Last Close for kline of symbol-interval combo
 public async Task <long> LoadKlineLastUpdate(string symbol, string interval)
 {
     try
     {
         var last = _dbHandler.FindKlineLastUpdate(symbol, interval);
         return(last);
     }
     catch (Exception e)
     {
         _logger.Info("Failed to load last update date for kline.\n" + e.ToString());
         return(-1);
     }
 }