[Quantproject-developers] QuantDownloader/Downloader/OpenTickDownloader OTTickerDownloader.cs, 1.2
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2008-07-20 20:37:56
|
Update of /cvsroot/quantproject/QuantDownloader/Downloader/OpenTickDownloader In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7378/Downloader/OpenTickDownloader Modified Files: OTTickerDownloader.cs Log Message: The checkForMissingQuotes flag is now properly handled Index: OTTickerDownloader.cs =================================================================== RCS file: /cvsroot/quantproject/QuantDownloader/Downloader/OpenTickDownloader/OTTickerDownloader.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** OTTickerDownloader.cs 9 Jul 2008 22:00:49 -0000 1.2 --- OTTickerDownloader.cs 20 Jul 2008 20:37:51 -0000 1.3 *************** *** 184,195 **** private void setBarsSelector() { ! this.barsSelector = ! new DailyBarsSelector( ! this.tickersToDownload , ! this.setBarsSelector_getDate( this.firstDate ) , ! this.setBarsSelector_getDate( DateTime.Now ) , ! this.barInterval , ! this.firstBarOpenTimeInNewYorkTimeZone , ! this.numberOfDailyBars ); } private void setExchangeSelector() --- 184,212 ---- private void setBarsSelector() { ! DateTime firstDateForBarsSelector = ! this.setBarsSelector_getDate( this.firstDate ); ! DateTime lastDateForBarsSelector = ! this.setBarsSelector_getDate( DateTime.Now ); ! if ( this.checkForMissingQuotes ) ! // only missing quotes are to be downloaded ! this.barsSelector = ! new MissingDailyBarsSelector( ! this.tickersToDownload , ! this.setBarsSelector_getDate( this.firstDate ) , ! this.setBarsSelector_getDate( DateTime.Now ) , ! this.barInterval , ! this.firstBarOpenTimeInNewYorkTimeZone , ! this.numberOfDailyBars ); ! else ! // all quotes are to be downloaded, even if they ! // are in the database already ! this.barsSelector = ! new DailyBarsSelector( ! this.tickersToDownload , ! this.setBarsSelector_getDate( this.firstDate ) , ! this.setBarsSelector_getDate( DateTime.Now ) , ! this.barInterval , ! this.firstBarOpenTimeInNewYorkTimeZone , ! this.numberOfDailyBars ); } private void setExchangeSelector() |