public void Remove(string series, DateTime datetime) { IDataSeries dataSeries = this.file.Series[series]; if (dataSeries != null) { dataSeries.Remove(datetime); } }
private static void DeleteDataObject(Instrument instrument, DateTime datetime, params string[] items) { string series = string.Format("{0}{1}{2}", instrument.Symbol, '.', string.Join('.'.ToString(), items)); IDataSeries dataSeries = SmartQuant.Instruments.DataManager.Server.GetDataSeries(series); if (dataSeries != null) { dataSeries.Remove(datetime); } }
private static void DeleteDataObject(Instrument instrument, DateTime datetime, params string[] items) { IDataSeries dataSeries = FreeQuant.Instruments.DataManager.Server.GetDataSeries(string.Format("{0}{1}{2}", (object)instrument.Symbol, (object)'.', (object)string.Join('.'.ToString(), items))); if (dataSeries == null) { return; } dataSeries.Remove(datetime); }