Example #1
0
        private void T4_FxList(string code)
        {
            Console.WriteLine("code: " + code);

            T4_Code = code;

            TagData bid = TagData.GetTagData(this.T4_ResBody, "<span id=\"" + code + "_chart_bid\">", "</span>");
            TagData ask = TagData.GetTagData(this.T4_ResBody, "<span id=\"" + code + "_chart_ask\">", "</span>");

            //double d_bid = double.Parse(bid.GetInnerString());
            //double d_ask = double.Parse(ask.GetInnerString());
            string s_bid = bid.GetInnerString();
            string s_ask = ask.GetInnerString();

            Check_BID_ASK_String(s_bid);
            Check_BID_ASK_String(s_ask);

            using (new MutexSection(_mutexOutFile))
                using (FileStream afs = new FileStream(
                           Path.Combine(T4_OutDir, T4_Now.GetString("YMD") + "_" + code + ".csv"),
                           FileMode.Append,
                           FileAccess.Write
                           ))
                {
                    WrLine(afs, T4_Now.GetCompactString() + "," + s_bid + "," + s_ask);
                }
        }
Example #2
0
        private void FxList(string code)
        {
            TagData bid = TagData.GetTagData(this.T3_ResBody, "<span id=\"" + code + "_chart_bid\">", "</span>");
            TagData ask = TagData.GetTagData(this.T3_ResBody, "<span id=\"" + code + "_chart_ask\">", "</span>");

            double d_bid = double.Parse(bid.GetInnerString());
            double d_ask = double.Parse(ask.GetInnerString());

            WrLine(
                T3_Now.GetCompactString() + "," +
                code + "," +
                d_bid + "," +
                d_ask
                );
        }