private List <StockTickTransaction> FetchDataFromRedis(string code, List <DateTime> transDates) { var tickList = new List <StockTickTransaction>(); foreach (var date in transDates) { var key = string.Format(RedisKeyFormat, code.ToUpper(), date.ToString("yyyy-MM-dd")); var hashEntries = redisReader.HGetAll(key); var ticks = ConvertToTicks(code, hashEntries); tickList.AddRange(ticks); } return(tickList); }