Skip to content

Commit

Permalink
Date (#4516)
Browse files Browse the repository at this point in the history
* add data fold

* add version 1.12.63

* add akqmt

* add akqmt

* add options

* format
  • Loading branch information
albertandking authored Feb 21, 2024
1 parent 8119bbd commit 68c31f9
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ colors
#docs/source/_static/
#docs/source/_templates/
.DS_Store
/data
/tests/data
30 changes: 19 additions & 11 deletions akshare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2675,9 +2675,10 @@
1.12.60 fix: fix movie_boxoffice_daily interface
1.12.61 fix: fix stock_bid_ask_em interface
1.12.62 fix: fix stock_fund_flow_individual interface
1.12.63 add: add akqmt interface
"""

__version__ = "1.12.62"
__version__ = "1.12.63"
__author__ = "AKFamily"

import sys
Expand Down Expand Up @@ -4416,16 +4417,6 @@
bond_cb_redeem_jsl,
)

"""
for pro api
"""
from akshare.pro.data_pro import pro_api

"""
for pro api token set
"""
from akshare.utils.token_process import set_token

"""
债券质押式回购成交明细数据
"""
Expand Down Expand Up @@ -5101,3 +5092,20 @@
fund_individual_profit_probability_xq,
fund_individual_detail_info_xq,
)

"""
Pro API 设置
"""
from akshare.pro.data_pro import pro_api
from akshare.utils.token_process import set_token, get_token

"""
AKQMT 设置
"""
from akqmt import xt_api


if __name__ == '__main__':
pro = xt_api()
temp_df = pro.get_instrument_detail(stock_code="000001.SZ")
print(temp_df)
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@

## 更新说明详情

1.12.63 add: add akqmt interface

1. 新增 akqmt 接口

1.12.62 fix: fix stock_fund_flow_individual interface

1. 修复 stock_fund_flow_individual 接口
Expand Down Expand Up @@ -3559,6 +3563,8 @@

## 版本更新说明

1.12.63 add: add akqmt interface

1.12.62 fix: fix stock_fund_flow_individual interface

1.12.61 fix: fix stock_bid_ask_em interface
Expand Down
1 change: 1 addition & 0 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,7 @@
"futures_global_em" # 东方财富网-行情中心-期货市场-国际期货
# 东方财富-数据中心-沪深港通-市场概括-分时数据
"stock_hsgt_fund_min_em" # 东方财富-数据中心-沪深港通-市场概括-分时数据
# 新增 QMT 数据支持
```

## 案例演示
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
akqmt>=0.1.0
beautifulsoup4>=4.9.1
lxml>=4.2.1
pandas>=0.25
Expand Down
12 changes: 11 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Date: 2024/2/19 13:30
Desc: AKShare's PYPI info file
"""
import re
import ast
import re

import setuptools

Expand Down Expand Up @@ -55,6 +55,16 @@ def get_version_string() -> str:
"akracer>=0.0.11",
"pyarrow>=15.0.0",
],
extras_require={
# 这些是额外的依赖集合,可以通过 'pip install akshare[full]' 安装
'full': [
'akqmt',
],
# 这些是额外的依赖集合,可以通过 'pip install akshare[qmt]' 安装
'qmt': [
'akqmt',
],
},
package_data={"": ["*.py", "*.json", "*.pk", "*.js", "*.zip"]},
keywords=[
"stock",
Expand Down
5 changes: 3 additions & 2 deletions tests/test_func.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Date: 2022/5/9 18:16
Date: 2024/2/21 19:16
Desc: To test intention, just write test code here!
"""
import pathlib

from akshare.cost.cost_living import cost_living
from akshare.datasets import get_ths_js, get_crypto_info_csv
import pathlib


def test_cost_living():
Expand Down

0 comments on commit 68c31f9

Please sign in to comment.