Example #1
0
        public DataTable getRecords(DateTime dt)
        {
            WSETCommIndexClass wsetobj;

            wsetobj = new WSETCommIndexClass(_sic.SummaryCode, dt);
            return(WDDataAdapter.getRecords(wsetobj.getDataSet()));
        }
Example #2
0
            public void getResult(ulong reqid, WindData data)
            {
                DataTable dt = WDDataAdapter.getRecords(data);
                List <DetailStringClass> retList = WDDataAdapter.GetList(dt);

                AfterUpdate(Data);
            }
Example #3
0
        public DataTable getHQData(string strCode, DateTime begT, DateTime endT)
        {
            GLClass  globj   = new GLClass(strCode);
            WSDClass wsetobj = new WSDClass(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()));
        }
Example #4
0
        public override Dictionary <string, ExpectList> RequestData(string[] grpcodes, string Fields, string options)
        {
            WindData  wd = SystemGlobal.w.wsq(string.Join(",", grpcodes), Fields, options);
            DataTable dt = WDDataAdapter.getRecords(wd);
            Dictionary <string, ExpectList> ret = new Dictionary <string, ExpectList>();

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                ExpectList el = new ExpectList();
            }
            return(ret);
        }
Example #5
0
        public DataTable getRecords(string[] Sectors, DateTime dt)
        {
            if (gbc == null)
            {
                return(null);
            }
            gbc.tradeDate = dt;
            WSSClass wsetobj;

            wsetobj = new WSSClass(string.Join(",", Sectors), gbc.GuidName, gbc.strParam);
            return(WDDataAdapter.getRecords(wsetobj.getDataSet()));
        }
Example #6
0
        public DataTable getRecords(string strCode, DateTime dt)
        {
            GLClass   globj = new GLClass(strCode);
            WSETClass wsetobj;

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