Example #1
0
    def _downloadHistoricalPrizesForStocks(self, stockNameList, fromDate, toDate):

#        for stockName in stockNameList:
#            YahooOneStockDownloader(self._exchangeName, stockName).downloadHistoricalPrizes()

        threadPool = ThreadPoolManager(Configuration.DEFAULT_WORKER_THREADS_COUNT)
        threadPool.addTasks(stockNameList)
        threadPool.startWork(StockDownloaderWorker(self._exchangeName, fromDate, toDate))
Example #2
0
 def _updateStockData(self, stockNameList, toDate):
     threadPool = ThreadPoolManager(Configuration.DEFAULT_WORKER_THREADS_COUNT)
     threadPool.addTasks(stockNameList)
     threadPool.startWork(StockUpdaterWorker(self._exchangeName, toDate))