Example #1
0
        public static WindData fetchTimeSeriesSecInfo(String strWindCode, string strCodeType, DateTime dtBegin, DateTime dtEnd, string strOthers = "")
        {
            WindData wd = ConnWind.w.wsd(strWindCode, strCodeType, dtBegin.ToShortDateString(), dtEnd.ToShortDateString(), strOthers);

            ConnWind.windEnsureNoErr(wd);
            return(wd);
        }
Example #2
0
        public static WindData fetchOHLCInfo(String strWindCode, DateTime dtBegin, DateTime dtEnd)
        {
            WindData wd = ConnWind.w.wsd(strWindCode, "open,high,low,close", dtBegin.ToShortDateString(), dtEnd.ToShortDateString(), "");

            ConnWind.windEnsureNoErr(wd);
            return(wd);
        }
Example #3
0
        /// <summary>
        /// Fetch Sector Constituent
        /// </summary>
        /// <param name="date">Fetch Date</param>
        /// <param name="strIndexName">Sector Name</param>
        /// <param name="strSectorID">App Config Section Name</param>
        /// <returns></returns>
        public static WindData fetchSectorConstituent(DateTime date, String strIndexName, String strSectorID = "DataSet_SectorID")
        {
            string   strWindCode = Utilities.UtilityConfig.GetAppConfig(strIndexName, strSectorID);
            string   strQuery    = "date=" + date.ToShortDateString() + ";sectorid=" + strWindCode;
            WindData wd          = ConnWind.w.wset("sectorconstituent", strQuery);

            ConnWind.windEnsureNoErr(wd);
            return(wd);
        }