コード例 #1
0
        protected override void WriteElement(XElement command)
        {
            if (AllTrades != null && 0 < AllTrades.Count())
            {
                var trades = new XElement("alltrades");
                command.Add(trades);
                foreach (var id in AllTrades)
                {
                    trades.Add(new XElement("secid", id));
                }
            }

            if (Quotations != null && 0 < Quotations.Count())
            {
                var quotations = new XElement("quotations");
                command.Add(quotations);
                foreach (var id in Quotations)
                {
                    quotations.Add(new XElement("secid", id));
                }
            }

            if (Quotes != null && 0 < Quotes.Count())
            {
                var quotes = new XElement("quotes");
                command.Add(quotes);
                foreach (var id in Quotes)
                {
                    quotes.Add(new XElement("secid", id));
                }
            }
        }