Skip to content

Commit 57f9813

Browse files
authored
optimize_yahoo_collector (microsoft#1388)
1 parent 26d24b5 commit 57f9813

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/data_collector/yahoo/collector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ def download_index_data(self):
222222
# TODO: from MSN
223223
_format = "%Y%m%d"
224224
_begin = self.start_datetime.strftime(_format)
225-
_end = (self.end_datetime + pd.Timedelta(days=-1)).strftime(_format)
226-
for _index_name, _index_code in {"csi300": "000300", "csi100": "000903"}.items():
225+
_end = self.end_datetime.strftime(_format)
226+
for _index_name, _index_code in {"csi300": "000300", "csi100": "000903", "csi500": "000905"}.items():
227227
logger.info(f"get bench data: {_index_name}({_index_code})......")
228228
try:
229229
df = pd.DataFrame(

0 commit comments

Comments
 (0)