private DataTable ConvertToTickerMetadata(ITimeSeriesMetadata data) { DataTable dtFilingData = DataAccessTypes.CreateTickerMetadataTable(); foreach (var k in data.Values.Keys) { DataRow rowFilingData = dtFilingData.NewRow(); rowFilingData["Key"] = k; rowFilingData["Value"] = data.Values[k]; dtFilingData.Rows.Add(rowFilingData); } return(dtFilingData); }
private DataTable ConvertToLoadTimeSeries(IQuotesData data) { DataTable dtFilingData = DataAccessTypes.CreateLoadTimeSeriesMetadataTable(); foreach (var r in data.Quotes) { DataRow rowFilingData = dtFilingData.NewRow(); rowFilingData["Even_Date"] = r.Time; for (int i = 0; i < r.Values.Count; ++i) { rowFilingData[string.Format("Col_{0}", i + 1)] = r.Values[i]; } dtFilingData.Rows.Add(rowFilingData); } return(dtFilingData); }