Ejemplo n.º 1
0
        /// <summary>
        /// 获取50ETF的数据
        /// </summary>
        public void Get50ETFData()
        {
            string    connectString = "server=192.168.38.209;database=" + GetDataBaseName(date) + ";uid =sa;pwd=280514;";
            DataTable dt            = new DataApplication(GetDataBaseName(date), connectString).GetDataTable("MarketData_510050_SH", date);

            levelOne[] etf = DataTable2Array("510050.SH", dt);
            dataDaily.Add("510050.SH", etf);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 获取50ETF的数据
        /// </summary>
        public void GetIHData(string code)
        {
            if (code == "")
            {
                return;
            }
            string connectString = "server=192.168.38.216;database=" + GetDataBaseName(date) + ";uid =sa;pwd=666666;";

            string[]  str = code.Split('.');
            DataTable dt  = new DataApplication(GetDataBaseName(date), connectString).GetDataTable("MarketData_" + str[0] + "_CFE", date);

            levelOne[] IH = DataTable2Array(code, dt);
            dataDaily.Add(code, IH);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 获取50ETF期权的数据
        /// </summary>
        public void GetOptionData(string optionCode)
        {
            if (optionCode == "")
            {
                return;
            }
            string connectString = "server=192.168.38.217;database=" + GetDataBaseName(date) + ";uid =sa;pwd=maoheng0;";

            string[]  str = optionCode.Split('.');
            DataTable dt  = new DataApplication(GetDataBaseName(date), connectString).GetDataTable("MarketData_" + str[0] + "_SH", date);

            levelOne[] option = DataTable2Array(optionCode, dt);
            dataDaily.Add(optionCode, option);
        }