diff --git a/hts/HTS.py b/hts/HTS.py index 9f4aaa0..eb8c1bf 100644 --- a/hts/HTS.py +++ b/hts/HTS.py @@ -974,12 +974,12 @@ if __name__ == "__main__": stock_codes = ["252670", "122630"] given_day = datetime.today().strftime('%Y%m%d') + given_days = ['20210901','20210902','20210903','20210906','20210907','20210908','20210909','20210910','20210913','20210914','20210915','20210916','20210917','20210923','20210924','20210927','20210928','20210929','20210930','20211001'] hts = HTS() #hts.all_stocks() #hts.getChartData(stock_codes) #hts.currentStock(stock_codes) - given_days = ['20210901','20210902','20210903','20210906','20210907','20210908','20210909','20210910','20210913','20210914','20210915','20210916','20210917','20210923','20210924','20210927','20210928','20210929','20210930','20211001'] for given_day in given_days: hts.writeStockData(stock_codes, given_day) #for stock_code in stock_codes: