akshare 1.14.33__py3-none-any.whl → 1.14.35__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- akshare/__init__.py +4 -2
- akshare/economic/macro_finance_ths.py +82 -0
- {akshare-1.14.33.dist-info → akshare-1.14.35.dist-info}/METADATA +1 -1
- {akshare-1.14.33.dist-info → akshare-1.14.35.dist-info}/RECORD +7 -7
- {akshare-1.14.33.dist-info → akshare-1.14.35.dist-info}/WHEEL +1 -1
- {akshare-1.14.33.dist-info → akshare-1.14.35.dist-info}/LICENSE +0 -0
- {akshare-1.14.33.dist-info → akshare-1.14.35.dist-info}/top_level.txt +0 -0
akshare/__init__.py
CHANGED
|
@@ -2844,9 +2844,11 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
|
|
|
2844
2844
|
1.14.31 fix: fix option_shfe_daily interface
|
|
2845
2845
|
1.14.32 add: add stock_concept_cons_futu interface
|
|
2846
2846
|
1.14.33 fix: fix stock_concept_cons_futu interface
|
|
2847
|
+
1.14.34 add: add macro_rmb_loan interface
|
|
2848
|
+
1.14.35 add: add macro_rmb_deposit interface
|
|
2847
2849
|
"""
|
|
2848
2850
|
|
|
2849
|
-
__version__ = "1.14.
|
|
2851
|
+
__version__ = "1.14.35"
|
|
2850
2852
|
__author__ = "AKFamily"
|
|
2851
2853
|
|
|
2852
2854
|
import sys
|
|
@@ -2871,7 +2873,7 @@ del sys
|
|
|
2871
2873
|
"""
|
|
2872
2874
|
同花顺-数据中心-宏观数据-股票筹资
|
|
2873
2875
|
"""
|
|
2874
|
-
from akshare.economic.macro_finance_ths import macro_stock_finance
|
|
2876
|
+
from akshare.economic.macro_finance_ths import macro_stock_finance, macro_rmb_loan, macro_rmb_deposit
|
|
2875
2877
|
|
|
2876
2878
|
"""
|
|
2877
2879
|
富途牛牛-主题投资-概念板块-成分股
|
|
@@ -46,6 +46,88 @@ def macro_stock_finance() -> pd.DataFrame:
|
|
|
46
46
|
return temp_df
|
|
47
47
|
|
|
48
48
|
|
|
49
|
+
def macro_rmb_loan() -> pd.DataFrame:
|
|
50
|
+
"""
|
|
51
|
+
同花顺-数据中心-宏观数据-新增人民币贷款
|
|
52
|
+
https://data.10jqka.com.cn/macro/loan/
|
|
53
|
+
:return: 新增人民币贷款
|
|
54
|
+
:rtype: pandas.DataFrame
|
|
55
|
+
"""
|
|
56
|
+
url = "https://data.10jqka.com.cn/macro/loan/"
|
|
57
|
+
headers = {
|
|
58
|
+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
|
|
59
|
+
"(KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
|
|
60
|
+
}
|
|
61
|
+
r = requests.get(url, headers=headers)
|
|
62
|
+
temp_df = pd.read_html(StringIO(r.text), skiprows=0)[0]
|
|
63
|
+
temp_df.columns = [
|
|
64
|
+
"月份",
|
|
65
|
+
"新增人民币贷款-总额",
|
|
66
|
+
"新增人民币贷款-同比",
|
|
67
|
+
"新增人民币贷款-环比",
|
|
68
|
+
"累计人民币贷款-总额",
|
|
69
|
+
"累计人民币贷款-同比",
|
|
70
|
+
]
|
|
71
|
+
temp_df["新增人民币贷款-总额"] = pd.to_numeric(
|
|
72
|
+
temp_df["新增人民币贷款-总额"], errors="coerce"
|
|
73
|
+
)
|
|
74
|
+
temp_df["累计人民币贷款-总额"] = pd.to_numeric(
|
|
75
|
+
temp_df["累计人民币贷款-总额"], errors="coerce"
|
|
76
|
+
)
|
|
77
|
+
return temp_df
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def macro_rmb_deposit() -> pd.DataFrame:
|
|
81
|
+
"""
|
|
82
|
+
同花顺-数据中心-宏观数据-人民币存款余额
|
|
83
|
+
https://data.10jqka.com.cn/macro/rmb/
|
|
84
|
+
:return: 人民币存款余额
|
|
85
|
+
:rtype: pandas.DataFrame
|
|
86
|
+
"""
|
|
87
|
+
url = "https://data.10jqka.com.cn/macro/rmb/"
|
|
88
|
+
headers = {
|
|
89
|
+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
|
|
90
|
+
"(KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
|
|
91
|
+
}
|
|
92
|
+
r = requests.get(url, headers=headers)
|
|
93
|
+
temp_df = pd.read_html(StringIO(r.text), skiprows=0)[0]
|
|
94
|
+
temp_df.columns = [
|
|
95
|
+
"月份",
|
|
96
|
+
"新增存款-数量",
|
|
97
|
+
"新增存款-同比",
|
|
98
|
+
"新增存款-环比",
|
|
99
|
+
"新增企业存款-数量",
|
|
100
|
+
"新增企业存款-同比",
|
|
101
|
+
"新增企业存款-环比",
|
|
102
|
+
"新增储蓄存款-数量",
|
|
103
|
+
"新增储蓄存款-同比",
|
|
104
|
+
"新增储蓄存款-环比",
|
|
105
|
+
"新增其他存款-数量",
|
|
106
|
+
"新增其他存款-同比",
|
|
107
|
+
"新增其他存款-环比",
|
|
108
|
+
]
|
|
109
|
+
temp_df["新增存款-数量"] = pd.to_numeric(temp_df["新增存款-数量"], errors="coerce")
|
|
110
|
+
temp_df["新增企业存款-数量"] = pd.to_numeric(
|
|
111
|
+
temp_df["新增企业存款-数量"], errors="coerce"
|
|
112
|
+
)
|
|
113
|
+
temp_df["新增企业存款-数量"] = pd.to_numeric(
|
|
114
|
+
temp_df["新增企业存款-数量"], errors="coerce"
|
|
115
|
+
)
|
|
116
|
+
temp_df["新增储蓄存款-数量"] = pd.to_numeric(
|
|
117
|
+
temp_df["新增储蓄存款-数量"], errors="coerce"
|
|
118
|
+
)
|
|
119
|
+
temp_df["新增其他存款-数量"] = pd.to_numeric(
|
|
120
|
+
temp_df["新增其他存款-数量"], errors="coerce"
|
|
121
|
+
)
|
|
122
|
+
return temp_df
|
|
123
|
+
|
|
124
|
+
|
|
49
125
|
if __name__ == "__main__":
|
|
50
126
|
macro_stock_finance_df = macro_stock_finance()
|
|
51
127
|
print(macro_stock_finance_df)
|
|
128
|
+
|
|
129
|
+
macro_rmb_loan_df = macro_rmb_loan()
|
|
130
|
+
print(macro_rmb_loan_df)
|
|
131
|
+
|
|
132
|
+
macro_rmb_deposit_df = macro_rmb_deposit()
|
|
133
|
+
print(macro_rmb_deposit_df)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
akshare/__init__.py,sha256=
|
|
1
|
+
akshare/__init__.py,sha256=8LMVecGuDBi3n7ZnMoKy1OOF2b3kvdCeKPs0F0meXok,179550
|
|
2
2
|
akshare/datasets.py,sha256=oIu1zC7o_LMHY22lQmdM7vCnryHibKrJLBqJwQiitlI,1167
|
|
3
3
|
akshare/air/__init__.py,sha256=RMTf1bT5EOE3ttWpn3hGu1LtUmsVxDoa0W7W0gXHOy8,81
|
|
4
4
|
akshare/air/air_hebei.py,sha256=xIXNGLK7IGYqrkteM9fxnHAwWqk6PCQs6D9-ggZ7byY,4442
|
|
@@ -57,7 +57,7 @@ akshare/economic/macro_china_hk.py,sha256=dIBc9gAYiHZUjXLF4c3yBK-2s3iLx46GcgJGlV
|
|
|
57
57
|
akshare/economic/macro_china_nbs.py,sha256=nP6dI-fawch8dz7GMcfGVJsTri-FfIAkvTf3h7DT-kc,9679
|
|
58
58
|
akshare/economic/macro_constitute.py,sha256=cCfWupKJ86uUzg_pULsg1C2FleHb25mYbfE4x29VnKA,8197
|
|
59
59
|
akshare/economic/macro_euro.py,sha256=NTRSr0iAC7L6DfprJS0CcAnw_6lyCRtQ2d_kRHsHCiY,41243
|
|
60
|
-
akshare/economic/macro_finance_ths.py,sha256=
|
|
60
|
+
akshare/economic/macro_finance_ths.py,sha256=B85AvJWUpWsztDNj8MewqkJIgQ2CiklZItrl2w1Wb-g,4635
|
|
61
61
|
akshare/economic/macro_germany.py,sha256=L7yXZNHaqHvg1lviqpszr3mfscmsnCy3rnB9AcTqVb8,5912
|
|
62
62
|
akshare/economic/macro_info_ws.py,sha256=t0PDcsWCD4vt8eq1sWa3zfiYtxil1ekhaV61yu9R32Y,3076
|
|
63
63
|
akshare/economic/macro_japan.py,sha256=eAcG_9bY8HGvpg43ySdM-K0JT7ylYjGQspB7rDRB4pg,4296
|
|
@@ -380,8 +380,8 @@ akshare/utils/token_process.py,sha256=K4rGXjh_tgugbRcyOK2h2x0jP3PT65IIK7nxhUKhOe
|
|
|
380
380
|
akshare/utils/tqdm.py,sha256=MuPNwcswkOGjwWQOMWXi9ZvQ_RmW4obCWRj2i7HM7FE,847
|
|
381
381
|
tests/__init__.py,sha256=gNzhlO0UPjFq6Ieb38kaVIODXv4cTDByrdohAZnDYt4,82
|
|
382
382
|
tests/test_func.py,sha256=tfvy_YnYmDra2dkKZ5JvprU1gNW5X9T634PszdSdH1A,944
|
|
383
|
-
akshare-1.14.
|
|
384
|
-
akshare-1.14.
|
|
385
|
-
akshare-1.14.
|
|
386
|
-
akshare-1.14.
|
|
387
|
-
akshare-1.14.
|
|
383
|
+
akshare-1.14.35.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
|
|
384
|
+
akshare-1.14.35.dist-info/METADATA,sha256=QbQecgHz_qrq_jyzgVsvEmjkzTjUof4Hhrl8jHUvtF8,14010
|
|
385
|
+
akshare-1.14.35.dist-info/WHEEL,sha256=FZ75kcLy9M91ncbIgG8dnpCncbiKXSRGJ_PFILs6SFg,91
|
|
386
|
+
akshare-1.14.35.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
|
|
387
|
+
akshare-1.14.35.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|