[Quantproject-developers] QuantDownloader/Downloader/OpenTickDownloader BarQueueFiller.cs, 1.1, 1.
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2008-07-20 20:29:27
|
Update of /cvsroot/quantproject/QuantDownloader/Downloader/OpenTickDownloader In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3631/Downloader/OpenTickDownloader Modified Files: BarQueueFiller.cs Log Message: Performance improved when no market is found, for a given ticker Index: BarQueueFiller.cs =================================================================== RCS file: /cvsroot/quantproject/QuantDownloader/Downloader/OpenTickDownloader/BarQueueFiller.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BarQueueFiller.cs 9 Jul 2008 22:08:09 -0000 1.1 --- BarQueueFiller.cs 20 Jul 2008 20:29:19 -0000 1.2 *************** *** 178,209 **** // } ! #region fillQueue_requestBars ! private void fillQueue_requestBar( ! BarIdentifier barIdentifier ) { - string exchange = - this.exchangeSelector.SelectExchange( barIdentifier.Ticker ); - - - // DateTime currentDate; - // int currentDailyBarIndex; - // OTDataEntity oTDataEntity = - // new OTDataEntity( exchange , barIdentifier.Ticker ); short numberOfMinutesInEachBar = Convert.ToInt16( Math.Round( Convert.ToDouble( barIdentifier.Interval / 60 ) ) ); - // DateTime dateTimeForBarOpenInNewYorkTimeZone = - // new DateTime( - // currentDate.Year , - // currentDate.Month , - // currentDate.Day , - // this.firstBarOpenTime.Hour , - // this.firstBarOpenTime.Minute , - // this.firstBarOpenTime.Second ).AddMinutes( - // currentDailyBarIndex * numberOfMinutesInEachBar ); DateTime dateTimeForBarOpenInUTC = TimeZoneManager.ConvertToUTC( barIdentifier.DateTimeForOpenInNewYorkTimeZone ); - int requestId = this.oTManager.RequestHistData( exchange , barIdentifier.Ticker , --- 178,191 ---- // } ! #region fillQueue_requestBar ! private void fillQueue_requestBar_actually( ! BarIdentifier barIdentifier , string exchange ) { short numberOfMinutesInEachBar = Convert.ToInt16( Math.Round( Convert.ToDouble( barIdentifier.Interval / 60 ) ) ); DateTime dateTimeForBarOpenInUTC = TimeZoneManager.ConvertToUTC( barIdentifier.DateTimeForOpenInNewYorkTimeZone ); int requestId = this.oTManager.RequestHistData( exchange , barIdentifier.Ticker , *************** *** 214,218 **** this.NewOHLCRequest( requestId , dateTimeForBarOpenInUTC , ! barIdentifier.Interval ); } // private void fillQueue_requestBars( DateTime currentDate ) --- 196,209 ---- this.NewOHLCRequest( requestId , dateTimeForBarOpenInUTC , ! barIdentifier.Interval ); ! } ! private void fillQueue_requestBar( ! BarIdentifier barIdentifier ) ! { ! string exchange = ! this.exchangeSelector.SelectExchange( barIdentifier.Ticker ); ! if ( exchange != "" ) ! // the exchange has been actually selected ! this.fillQueue_requestBar_actually( barIdentifier , exchange ); } // private void fillQueue_requestBars( DateTime currentDate ) *************** *** 224,228 **** // currentDate , currentDailyBarIndex ); // } ! #endregion fillQueue_requestBars private void fillQueue_requestBarsForEachMarketDay() --- 215,219 ---- // currentDate , currentDailyBarIndex ); // } ! #endregion fillQueue_requestBar private void fillQueue_requestBarsForEachMarketDay() |