示例#1
0
        public DataTable getHQData(string strCode, DateTime begT, DateTime endT)
        {
            GLClass  globj   = new GLClass(strCode);
            WindAPI  w       = null;
            WSDClass wsetobj = new WSDClass(w, strCode, "open,high,low,close,pct_chg,volume,windcode", begT, endT, "");

            //WSDClass wsetobj = new WSDClass(strCode, "open,close,volume,windcode", begT, endT);
            return(WDDataAdapter.getRecords(wsetobj.getDataSet()));
        }
示例#2
0
        public DataTable getRecords(string strCode, DateTime dt)
        {
            GLClass   globj = new GLClass(strCode);
            WSETClass wsetobj;
            WindAPI   w = null;

            if (strCode == null || strCode.Length == 0)//如果是板块类
            {
                wsetobj = new WSETMarketClass(w, globj.GLCode, dt);
            }
            else//如果是指数类
            {
                wsetobj = new WSETIndexClass(w, globj.GLCode, dt);
            }
            return(WDDataAdapter.getRecords(wsetobj.getDataSet()));
        }