Skip to content

Commit

Permalink
optimize_yahoo_collector (microsoft#1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetWolf authored Dec 11, 2022
1 parent 582a8c7 commit 76c5328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/data_collector/yahoo/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ def download_index_data(self):
# TODO: from MSN
_format = "%Y%m%d"
_begin = self.start_datetime.strftime(_format)
_end = (self.end_datetime + pd.Timedelta(days=-1)).strftime(_format)
for _index_name, _index_code in {"csi300": "000300", "csi100": "000903"}.items():
_end = self.end_datetime.strftime(_format)
for _index_name, _index_code in {"csi300": "000300", "csi100": "000903", "csi500": "000905"}.items():
logger.info(f"get bench data: {_index_name}({_index_code})......")
try:
df = pd.DataFrame(
Expand Down

0 comments on commit 76c5328

Please sign in to comment.