tushare 1.4.22__py3-none-any.whl → 1.4.24__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.
- tushare/__init__.py +1 -1
- tushare/stock/cons.py +4 -1
- tushare/stock/histroy_divide.py +3 -3
- tushare/util/verify_token.py +2 -1
- {tushare-1.4.22.dist-info → tushare-1.4.24.dist-info}/METADATA +1 -1
- {tushare-1.4.22.dist-info → tushare-1.4.24.dist-info}/RECORD +9 -9
- {tushare-1.4.22.dist-info → tushare-1.4.24.dist-info}/LICENSE +0 -0
- {tushare-1.4.22.dist-info → tushare-1.4.24.dist-info}/WHEEL +0 -0
- {tushare-1.4.22.dist-info → tushare-1.4.24.dist-info}/top_level.txt +0 -0
tushare/__init__.py
CHANGED
tushare/stock/cons.py
CHANGED
tushare/stock/histroy_divide.py
CHANGED
@@ -236,13 +236,13 @@ def get_stock_dc_a_divide_amount(symbol: str = "000001", page_count: Optional[in
|
|
236
236
|
big_df = pd.concat(objs=[big_df, temp_df], ignore_index=True)
|
237
237
|
break
|
238
238
|
|
239
|
-
big_df.columns = ["TIME", "PRICE", "
|
239
|
+
big_df.columns = ["TIME", "PRICE", "VOLUME", "-", "TYPE"]
|
240
240
|
big_df["TYPE"] = big_df["TYPE"].map(
|
241
241
|
{"2": "买盘", "1": "卖盘", "4": "中性盘"}
|
242
242
|
)
|
243
|
-
big_df = big_df[["TIME", "PRICE", "
|
243
|
+
big_df = big_df[["TIME", "PRICE", "VOLUME", "TYPE"]]
|
244
244
|
big_df["PRICE"] = pd.to_numeric(big_df["PRICE"], errors="coerce")
|
245
|
-
big_df["
|
245
|
+
big_df["VOLUME"] = pd.to_numeric(big_df["VOLUME"], errors="coerce")
|
246
246
|
|
247
247
|
return big_df
|
248
248
|
|
tushare/util/verify_token.py
CHANGED
@@ -57,7 +57,8 @@ def verify_token(token: Optional[str] = None, event_name: Optional[str] = "strin
|
|
57
57
|
"accept": "application/json",
|
58
58
|
"Content-Type": "application/json"
|
59
59
|
}
|
60
|
-
url = "
|
60
|
+
# url = "http://api.tushare.pro/dataapi/sdk-event"
|
61
|
+
url = ct.verify_token_url
|
61
62
|
data = {"user_token": token,
|
62
63
|
"event_name": event_name,
|
63
64
|
"event_detail": event_detail}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
tushare/__init__.py,sha256=
|
1
|
+
tushare/__init__.py,sha256=8fejip-U1uhTG5EEVz7U7xFMI3-50vUr3YjGoeePI2I,4778
|
2
2
|
tushare/bond/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
tushare/bond/bonds.py,sha256=PJM0xDiWZDpOPwDtbEU9PdP0M_Gu0c599YuB1rbZ3r8,232
|
4
4
|
tushare/coins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -23,10 +23,10 @@ tushare/pro/llm.py,sha256=Zdb81mhr9lQKX6p-JDml7THSbmBm8NmFQT54B8FkgvI,3444
|
|
23
23
|
tushare/stock/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
24
|
tushare/stock/billboard.py,sha256=vCrbN7-NGXSpXMc8jq7NcjjHyu9pTcr4uXp559iA1wA,12833
|
25
25
|
tushare/stock/classifying.py,sha256=3yWqlLhgj2irk-9ksKWFFS5HY-SnjfEr5erwJxBidG8,10539
|
26
|
-
tushare/stock/cons.py,sha256=
|
26
|
+
tushare/stock/cons.py,sha256=jTNeOu7q_LZHcOlbs5lqpwS-aPUMfQa70XmV-tOBwNM,31879
|
27
27
|
tushare/stock/fundamental.py,sha256=3H6-mA0o0xUjEIQ4EHKiuuzKO454FPyjp1Cz4A9qNRU,20304
|
28
28
|
tushare/stock/globals.py,sha256=eW9c44HX1QMUmPco-GZ0sXDrq5qsEmIGwO_kvU6dw6w,2118
|
29
|
-
tushare/stock/histroy_divide.py,sha256=
|
29
|
+
tushare/stock/histroy_divide.py,sha256=aFyZ5L_1CwHOU_xjK99UZrtcXZsRwrZwedUj0M3B7No,8903
|
30
30
|
tushare/stock/indictor.py,sha256=ZmtEkJVTNqI5Nn2X3T2sICgwo0MDgoKV0abgz8f4aRQ,25443
|
31
31
|
tushare/stock/macro.py,sha256=aQpRMCFiBNLbfGnL7cTJ_F7a9c8Is0T5uEVOt4wlsRg,14211
|
32
32
|
tushare/stock/macro_vars.py,sha256=EwYcEv_A_iToKxnbCk4tEyfNUV6HkRHoeukYi2TpsTw,1453
|
@@ -68,12 +68,12 @@ tushare/util/netbase.py,sha256=URvOTLJSgO7e6uCmHHD9EeQ2TRvjpxIEF-wQaWx5cKE,942
|
|
68
68
|
tushare/util/store.py,sha256=CSsPo0hUj1agOLVhayM4Gw3wqA7w0Gd0Dnv5sh_HlBo,1167
|
69
69
|
tushare/util/upass.py,sha256=PCizfpPhiae0qQWGe5fuXYdIjnh8hXcvvsCVr_GBb-Q,1515
|
70
70
|
tushare/util/vars.py,sha256=0jIgiA4Pc0cx9tt-8NC037qC_ghm9lEF66vWpfTJ4DY,69946
|
71
|
-
tushare/util/verify_token.py,sha256=
|
71
|
+
tushare/util/verify_token.py,sha256=g4pdVx1AZcGk9_-uwn2Yb7iGNbmL_Z0JQrOGgL05SJc,2503
|
72
72
|
tushare/util/protobuf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
73
73
|
tushare/util/protobuf/funcs.py,sha256=UCdK8FxTyjPZsNzoEeXqYzqrQXUmRMvW5hua6GPA66A,779
|
74
74
|
tushare/util/protobuf/response_pb2.py,sha256=vJH9ONkDuJlg6y-q1PvuDZoviKrK7hzNtMieQHK45DI,11347
|
75
|
-
tushare-1.4.
|
76
|
-
tushare-1.4.
|
77
|
-
tushare-1.4.
|
78
|
-
tushare-1.4.
|
79
|
-
tushare-1.4.
|
75
|
+
tushare-1.4.24.dist-info/LICENSE,sha256=C2j55UI0Ul-1-wA1-rn7OaY6b3vGl4YukiyvYzHsU9o,1503
|
76
|
+
tushare-1.4.24.dist-info/METADATA,sha256=V2TnRqnPrCFG0iEn06PVXmHgMDjI_516Wwn_Upl-EXk,3374
|
77
|
+
tushare-1.4.24.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
78
|
+
tushare-1.4.24.dist-info/top_level.txt,sha256=HHOxMuqc31KuAIcxpE0t5dAPMKbaiRtjsjTMFd7FlXI,8
|
79
|
+
tushare-1.4.24.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|