首页 新闻 会员 周边 捐助

如何在redis中存放股票K线,

0
悬赏园豆:5 解决于 2012-04-29 21:59
 

List<DataAnalysis.DB.DataDay> listStockDataDay = new List<DataAnalysis.DB.DataDay>();

 

for (int k = 0; k < dayk.Length; k++)
{


DataAnalysis.DB.DataDay DataDay = new DataAnalysis.DB.DataDay();
DataDay.StockCode = dayk[k].StockCode;
DataDay.Amount = (decimal)dayk[k].amo;
DataDay.DataClose = (decimal)dayk[k].close;
DataDay.DataDate = dayk[k].StartTime;
DataDay.DataHigh = (decimal)dayk[k].high;
DataDay.DataLow = (decimal)dayk[k].low;
DataDay.DataOpen = (decimal)dayk[k].open;
DataDay.Vol = (decimal)dayk[k].vol;
DataDay.DataType = "Day";

listStockDataDay.Add(DataDay);

 

}

在ServiceStack.Redis中如何存所有的股票代码数据呢?

 

freewzx2005的主页 freewzx2005 | 初学一级 | 园豆:8
提问于:2012-04-17 17:11
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册