akshare 1.17.61__py3-none-any.whl → 1.17.62__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.
Potentially problematic release.
This version of akshare might be problematic. Click here for more details.
- akshare/__init__.py +2 -1
- akshare/futures/futures_warehouse_receipt.py +6 -8
- {akshare-1.17.61.dist-info → akshare-1.17.62.dist-info}/METADATA +1 -1
- {akshare-1.17.61.dist-info → akshare-1.17.62.dist-info}/RECORD +7 -7
- {akshare-1.17.61.dist-info → akshare-1.17.62.dist-info}/WHEEL +0 -0
- {akshare-1.17.61.dist-info → akshare-1.17.62.dist-info}/licenses/LICENSE +0 -0
- {akshare-1.17.61.dist-info → akshare-1.17.62.dist-info}/top_level.txt +0 -0
akshare/__init__.py
CHANGED
|
@@ -3168,9 +3168,10 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
|
|
|
3168
3168
|
1.17.59 fix: fix fx_c_swap_cm interface
|
|
3169
3169
|
1.17.60 fix: fix stock_intraday_sina interface
|
|
3170
3170
|
1.17.61 fix: fix stock_individual_spot_xq interface
|
|
3171
|
+
1.17.62 fix: fix futures_dce_warehouse_receipt interface
|
|
3171
3172
|
"""
|
|
3172
3173
|
|
|
3173
|
-
__version__ = "1.17.
|
|
3174
|
+
__version__ = "1.17.62"
|
|
3174
3175
|
__author__ = "AKFamily"
|
|
3175
3176
|
|
|
3176
3177
|
import sys
|
|
@@ -52,27 +52,25 @@ def futures_czce_warehouse_receipt(date: str = "20200702") -> dict:
|
|
|
52
52
|
return big_dict
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
def futures_dce_warehouse_receipt(date: str = "
|
|
55
|
+
def futures_dce_warehouse_receipt(date: str = "20250929") -> dict:
|
|
56
56
|
"""
|
|
57
57
|
大连商品交易所-行情数据-统计数据-日统计-仓单日报
|
|
58
|
-
http://www.dce.com.cn/
|
|
58
|
+
http://www.dce.com.cn/dce/channel/list/187.html
|
|
59
59
|
:param date: 交易日, e.g., "20200702"
|
|
60
60
|
:type date: str
|
|
61
61
|
:return: 指定日期的仓单日报数据
|
|
62
62
|
:rtype: dict
|
|
63
63
|
"""
|
|
64
|
-
url = "http://www.dce.com.cn/publicweb/
|
|
64
|
+
url = "http://www.dce.com.cn/dcereport/publicweb/dailystat/wbillWeeklyQuotes"
|
|
65
65
|
headers = {
|
|
66
66
|
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) "
|
|
67
67
|
"Chrome/83.0.4103.116 Safari/537.36"
|
|
68
68
|
}
|
|
69
69
|
params = {
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"month": str(int(date[4:6]) - 1),
|
|
73
|
-
"day": date[6:],
|
|
70
|
+
"tradeDate": date,
|
|
71
|
+
"varietyId": "all",
|
|
74
72
|
}
|
|
75
|
-
r = requests.
|
|
73
|
+
r = requests.post(url, params=params, headers=headers)
|
|
76
74
|
temp_df = pd.read_html(StringIO(r.text))[0]
|
|
77
75
|
index_list = temp_df[temp_df.iloc[:, 0].str.contains("小计") == 1].index.to_list()
|
|
78
76
|
index_list.insert(0, 0)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
akshare/__init__.py,sha256=
|
|
1
|
+
akshare/__init__.py,sha256=7bVDILDU0il3iYP1iz_wcTwO_TX1ERKEjWTedyddoXs,199060
|
|
2
2
|
akshare/datasets.py,sha256=rKuRNZrqi6IMsZ9nyvO3Rx02js0tH3zMLjz8HQNAoPQ,963
|
|
3
3
|
akshare/exceptions.py,sha256=WEJjIhSmJ_xXNW6grwV4nufE_cfmmyuhmueVGiN1VAg,878
|
|
4
4
|
akshare/request.py,sha256=HtFFf9MhfEibR-ETWe-1Tts6ELU4VKSqA-ghaXjegQM,4252
|
|
@@ -131,7 +131,7 @@ akshare/futures/futures_settlement_price_sgx.py,sha256=SJxAGNuNxNEGDk7EF2odRPrWK
|
|
|
131
131
|
akshare/futures/futures_spot_stock_em.py,sha256=43CPkAouDu691M6aCMdO1SGKglTak2aba2Np7ftkAdg,3523
|
|
132
132
|
akshare/futures/futures_stock_js.py,sha256=sAao7ZcqBovdEo4wrVt2K6kXK2rf1_kT_StQdzhm9og,1635
|
|
133
133
|
akshare/futures/futures_to_spot.py,sha256=0MCVcZoZoOMd7DSR357K2UHoRBCeHyONyRCu8oWVWuw,12841
|
|
134
|
-
akshare/futures/futures_warehouse_receipt.py,sha256=
|
|
134
|
+
akshare/futures/futures_warehouse_receipt.py,sha256=iULO5CoDPTm9nNeQ6mfaaEZDOhc1B7up8VrRsP_6SrE,9048
|
|
135
135
|
akshare/futures/futures_zh_sina.py,sha256=wFFiPdud7a6HUHxohlQmN0FsnrvsadTYhbq0cZT4dpo,26191
|
|
136
136
|
akshare/futures/receipt.py,sha256=6KFgO6BJcQ0S5ZlRIQfPwXOuMLuncn7pcFCPOp1QJGI,23588
|
|
137
137
|
akshare/futures/requests_fun.py,sha256=w4inzqYjrAiRx_E3oszbcJwrRJR3MKpm5Rkropdusoo,2893
|
|
@@ -399,10 +399,10 @@ akshare/utils/func.py,sha256=4cwmXFztU86yJNONJ40KJLvsIEQHBbct4iMm3zT2v30,2315
|
|
|
399
399
|
akshare/utils/multi_decrypt.py,sha256=aWoL2iEPeuXHJg8-n7OtMKixLnIhfzepACgxfrfmQB4,1657
|
|
400
400
|
akshare/utils/token_process.py,sha256=nGtgnZGRprXJkhLXH8mcUH4TgIFwzsTOb0EaEPa0Euo,667
|
|
401
401
|
akshare/utils/tqdm.py,sha256=MuPNwcswkOGjwWQOMWXi9ZvQ_RmW4obCWRj2i7HM7FE,847
|
|
402
|
-
akshare-1.17.
|
|
402
|
+
akshare-1.17.62.dist-info/licenses/LICENSE,sha256=s18q7gS2g1F9-Cnk5eqrJG4OGWSwSxVEMzIuT6HyYNY,1073
|
|
403
403
|
tests/__init__.py,sha256=gNzhlO0UPjFq6Ieb38kaVIODXv4cTDByrdohAZnDYt4,82
|
|
404
404
|
tests/test_func.py,sha256=j1MGYbZI2if2j_LY1S4FLsf4qfq4NwVqD5wmRlv5Log,832
|
|
405
|
-
akshare-1.17.
|
|
406
|
-
akshare-1.17.
|
|
407
|
-
akshare-1.17.
|
|
408
|
-
akshare-1.17.
|
|
405
|
+
akshare-1.17.62.dist-info/METADATA,sha256=LCvU_mO3pgFHlU22cKe5hcsq890U-QKgZydv3_Jwmcw,12593
|
|
406
|
+
akshare-1.17.62.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
407
|
+
akshare-1.17.62.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
|
|
408
|
+
akshare-1.17.62.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|