Skip to content

Commit

Permalink
Merge pull request #2547 from ItachiHiSky/develop
Browse files Browse the repository at this point in the history
更新stock_zh_a_hist函数内部params参数
  • Loading branch information
albertandking authored May 22, 2022
2 parents c7bc664 + 57132d8 commit 74ceee0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions akshare/stock_feature/stock_hist_em.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def stock_zh_a_hist(
symbol: str = "000016",
period: str = "daily",
start_date: str = "19700101",
end_date: str = "22220101",
end_date: str = "20500000",
adjust: str = "",
) -> pd.DataFrame:
"""
Expand Down Expand Up @@ -314,8 +314,8 @@ def stock_zh_a_hist(
"klt": period_dict[period],
"fqt": adjust_dict[adjust],
"secid": f"{code_id_dict[symbol]}.{symbol}",
"beg": "0",
"end": "20500000",
"beg": start_date,
"end": end_date,
"_": "1623766962675",
}
r = requests.get(url, params=params)
Expand All @@ -335,7 +335,7 @@ def stock_zh_a_hist(
"换手率",
]
temp_df.index = pd.to_datetime(temp_df["日期"])
temp_df = temp_df[start_date:end_date]
# temp_df = temp_df[start_date:end_date]
temp_df.reset_index(inplace=True, drop=True)

temp_df['开盘'] = pd.to_numeric(temp_df['开盘'])
Expand Down

0 comments on commit 74ceee0

Please sign in to comment.