[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a1_Instruments Instrument.cs, 1.5,
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2008-09-29 21:13:22
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a1_Instruments In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13218/a1_Instruments Modified Files: Instrument.cs Log Message: The new revision moves toward an intraday enabled framework. EndOfDayDate time has been removed, DateTime is used now. The code has been changed accordingly. Index: Instrument.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a1_Instruments/Instrument.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Instrument.cs 9 Jan 2005 23:25:26 -0000 1.5 --- Instrument.cs 29 Sep 2008 21:13:09 -0000 1.6 *************** *** 25,28 **** --- 25,29 ---- using QuantProject.ADT.Histories; using QuantProject.Data.DataProviders; + using QuantProject.Data.DataProviders.Quotes; using QuantProject.Business.Timing; *************** *** 57,61 **** public DateTime GetNextMarketDay( DateTime dateTime ) { ! History history = HistoricalDataProvider.GetOpenHistory( this.Key ); return history.GetNextDay( dateTime ); } --- 58,62 ---- public DateTime GetNextMarketDay( DateTime dateTime ) { ! History history = HistoricalQuotesProvider.GetOpenHistory( this.Key ); return history.GetNextDay( dateTime ); } *************** *** 63,67 **** public DateTime GetMarketDay( DateTime initialDateTime, int numberOfDaysAhead ) { ! History history = HistoricalDataProvider.GetOpenHistory( this.Key ); return history.GetDay(initialDateTime, numberOfDaysAhead ); } --- 64,68 ---- public DateTime GetMarketDay( DateTime initialDateTime, int numberOfDaysAhead ) { ! History history = HistoricalQuotesProvider.GetOpenHistory( this.Key ); return history.GetDay(initialDateTime, numberOfDaysAhead ); } |