Skip to content

Commit

Permalink
fix: fix index_stock_cons_csindex
Browse files Browse the repository at this point in the history
  • Loading branch information
albertandking committed Jan 3, 2025
1 parent d84fef9 commit 4c2689c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions akshare/index/index_cons.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def index_stock_cons_csindex(symbol: str = "000300") -> pd.DataFrame:
:rtype: pandas.DataFrame
"""
url = (
f"https://csi-web-dev.oss-cn-shanghai-finance-1-pub.aliyuncs.com/static/"
f"https://oss-ch.csindex.com.cn/static/"
f"html/csindex/public/uploads/file/autofile/cons/{symbol}cons.xls"
)
r = requests.get(url)
Expand Down Expand Up @@ -167,7 +167,7 @@ def index_stock_cons_weight_csindex(symbol: str = "000300") -> pd.DataFrame:
:rtype: pandas.DataFrame
"""
url = (
f"https://csi-web-dev.oss-cn-shanghai-finance-1-pub.aliyuncs.com/static/html/csindex/"
f"https://oss-ch.csindex.com.cn/static/html/csindex/"
f"public/uploads/file/autofile/closeweight/{symbol}closeweight.xls"
)
r = requests.get(url)
Expand Down
2 changes: 1 addition & 1 deletion akshare/index/index_stock_zh_csindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def stock_zh_index_value_csindex(symbol: str = "H30374") -> pd.DataFrame:
:rtype: pandas.DataFrame
"""
url = (
f"https://csi-web-dev.oss-cn-shanghai-finance-1-pub.aliyuncs.com/static/"
f"https://oss-ch.csindex.com.cn/static/"
f"html/csindex/public/uploads/file/autofile/indicator/{symbol}indicator.xls"
)
temp_df = pd.read_excel(url)
Expand Down

0 comments on commit 4c2689c

Please sign in to comment.