private StockTransaction FetchStockMinuteTransFromRedis(string code, DateTime currentTime)
        {
            var key      = string.Format("{0}-{1}", code, currentTime.Year);
            var field    = currentTime.ToString("yyyy-MM-dd HH:mm:ss");
            var stockStr = redisReader.HGet(key, field);

            return(ConvertToStockTransaction(code, currentTime, stockStr));
        }
        private StockOptionTransaction FetchStockFromRedis(string code, DateTime date)
        {
            var jsonStr = redisReader.HGet(code, date.ToString(RedisFieldFormat));

            if (string.IsNullOrEmpty(jsonStr))
            {
                return(null);
            }
            var st = JsonConvert.DeserializeObject <StockOptionTransaction>(jsonStr);

            st.Code     = code;
            st.DateTime = date;
            st.Level    = StockOptionTransactionLevel.Daily;
            return(st);
        }