Пример #1
0
 /// <summary>
 /// K线
 /// </summary>
 /// <param name="code"></param>
 public static void QueryHistoryDatas(String code, KLineCycle cycle)
 {
     if (EMSecurityService.KwItems.ContainsKey(code))
     {
         KwItem item      = EMSecurityService.KwItems[code];
         int    innerCode = item.Innercode;
         //财富通历史数据
         OneStockHisKLineData oneStockHisKLineData = new OneStockHisKLineData(innerCode,
                                                                              cycle, 0, 0);
         oneStockHisKLineData._reqKLineDataRange = ReqKLineDataRange.All;
         m_queryHistoryDatas[code] = oneStockHisKLineData;
         oneStockHisKLineData.Start();
     }
 }
Пример #2
0
        /// <summary>
        /// 查询历史数据
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnQuery_Click(object sender, EventArgs e)
        {
            String code = txtCode.Text;

            if (EMSecurityService.KwItems.ContainsKey(code))
            {
                KwItem item      = EMSecurityService.KwItems[code];
                int    innerCode = item.Innercode;
                //财富通历史数据
                OneStockHisKLineData oneStockHisKLineData = new OneStockHisKLineData(innerCode,
                                                                                     KLineCycle.CycleDay, 0, 0);
                oneStockHisKLineData._reqKLineDataRange = ReqKLineDataRange.All;
                oneStockHisKLineData.Start();
            }
        }