Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
v-2.5.5
  • Loading branch information
1nchaos committed Aug 2, 2024
1 parent 816bbae commit 1c99b08
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ print(res_df)
| Simon | [bigbigbigfish](https://github.com/bigbigbigfish) | [LuneZ99](https://github.com/LuneZ99) | 匿名用户 | thue | [Triones009](https://github.com/Triones009) | **[adaaaaaa](https://github.com/adaaaaaa)** | **[LeslieWuboy](https://github.com/LeslieWuboy)** | [yinzhengxin](https://github.com/yinzhengxin) |
| ------------------------------------- | ------------------------------------------------- | --------------------------------------------- | -------- | --------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------------- | --------------------------------------------- |
| [yxm0513](https://github.com/yxm0513) | [hanxuanliang](https://github.com/hanxuanliang) | [akihara-sam](https://github.com/akihara-sam) | Andy | [baei2048](https://github.com/baei2048) | | | | |
| [yxm0513](https://github.com/yxm0513) | [hanxuanliang](https://github.com/hanxuanliang) | [akihara-sam](https://github.com/akihara-sam) | Andy | [baei2048](https://github.com/baei2048) | [zpsakura](https://github.com/zpsakura) | | | |

----------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion adata/__version__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

VERSION = (2, 5, 4)
VERSION = (2, 5, 5)
PRERELEASE = None # alpha, beta or rc
REVISION = None

Expand Down
2 changes: 1 addition & 1 deletion adata/stock/market/index_market/market_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ def get_market_index_current(self, index_code: str = '000001'):


if __name__ == '__main__':
print(StockMarketIndex().get_market_index(index_code='000001', start_date='2022-12-01', k_type=1))
print(StockMarketIndex().get_market_index(index_code='000001', start_date='2019-01-01', k_type=1))
print(StockMarketIndex().get_market_index_min(index_code='000001'))
print(StockMarketIndex().get_market_index_current(index_code='000001'))
2 changes: 1 addition & 1 deletion adata/stock/market/index_market/market_index_east.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_market_index(self, index_code: str = '000001', start_date='2020-01-01',
if start_date:
beg = start_date.replace('-', '')
sec_id = 0 if index_code[0] == 0 else 1
url = f"https://push2his.eastmoney.com/api/qt/stock/kline/get?secid={sec_id}.{index_code}&ut=fa5fd1943c7b386f172d6893dbfba10b&fields1=f1%2Cf2%2Cf3%2Cf4%2Cf5%2Cf6&fields2=f51%2Cf52%2Cf53%2Cf54%2Cf55%2Cf56%2Cf57%2Cf58%2Cf59%2Cf60%2Cf61&klt=10{k_type}&fqt=1&beg={beg}&end=20500101&smplmt=460&lmt=1000000&_=1722235849235"
url = f"https://push2his.eastmoney.com/api/qt/stock/kline/get?secid={sec_id}.{index_code}&ut=fa5fd1943c7b386f172d6893dbfba10b&fields1=f1%2Cf2%2Cf3%2Cf4%2Cf5%2Cf6&fields2=f51%2Cf52%2Cf53%2Cf54%2Cf55%2Cf56%2Cf57%2Cf58%2Cf59%2Cf60%2Cf61&klt=10{k_type}&fqt=1&beg={beg}&end=20500101&smplmt=100000&lmt=1000000&_=1722235849235"
res_json = requests.request('post', url, headers={}, proxies={}).json()
# 解析数据
code = res_json['data']['code']
Expand Down

0 comments on commit 1c99b08

Please sign in to comment.