internal static List <OpenInterestSummary> GetOpenInterestAccountSummary(XmlNode accountSummaryNode) { List <OpenInterestSummary> openInterestSummarys = new List <OpenInterestSummary>(); foreach (XmlNode summaryNode in accountSummaryNode.ChildNodes) { OpenInterestSummary summaryItem = new OpenInterestSummary(); summaryItem.Initialize(summaryNode); openInterestSummarys.Add(summaryItem); } return(openInterestSummarys); }
internal static List <OpenInterestSummary> GetOpenInterestInstrumentSummary(XmlNode summaryXmlNode) { if (summaryXmlNode == null) { return(null); } List <OpenInterestSummary> openInterestSummarys = new List <OpenInterestSummary>(); foreach (XmlNode instrumentNode in summaryXmlNode.ChildNodes) { OpenInterestSummary instrumentSummary = new OpenInterestSummary(); instrumentSummary.Initialize(instrumentNode); openInterestSummarys.Add(instrumentSummary); } return(openInterestSummarys); }