chinadata 0.1.7__py3-none-any.whl → 0.2.0__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.
- chinadata/ca_data.py +832 -817
- chinadata/example.py +25 -33
- {chinadata-0.1.7.dist-info → chinadata-0.2.0.dist-info}/METADATA +1 -1
- chinadata-0.2.0.dist-info/RECORD +7 -0
- chinadata-0.1.7.dist-info/RECORD +0 -7
- {chinadata-0.1.7.dist-info → chinadata-0.2.0.dist-info}/WHEEL +0 -0
- {chinadata-0.1.7.dist-info → chinadata-0.2.0.dist-info}/top_level.txt +0 -0
chinadata/example.py
CHANGED
|
@@ -1,33 +1,25 @@
|
|
|
1
|
-
#
|
|
2
|
-
"""
|
|
3
|
-
1、安装对应库
|
|
4
|
-
pip install chinadata
|
|
5
|
-
|
|
6
|
-
"""
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
#
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
print(df)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
df = pro.daily(ts_code='000001.SZ', start_date='20000701', end_date='20180718')
|
|
30
|
-
print(df)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
#
|
|
2
|
+
"""
|
|
3
|
+
1、安装对应库
|
|
4
|
+
pip install chinadata
|
|
5
|
+
|
|
6
|
+
"""
|
|
7
|
+
#2、
|
|
8
|
+
import chinadata.ca_data as ts
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
ts.set_token('5821074c7482c04e8d39da5c8313')
|
|
12
|
+
pro=ts.pro_api('d55821074c7482c04e8d39da5c8313')
|
|
13
|
+
|
|
14
|
+
# #查询当前所有正常上市交易的股票列表
|
|
15
|
+
data = pro.stock_basic(exchange='', list_status='L', fields='ts_code,symbol,name,area,industry,list_date')
|
|
16
|
+
print(data)
|
|
17
|
+
#
|
|
18
|
+
#
|
|
19
|
+
df = ts.pro_bar(ts_code='000007.SZ', start_date='20240817', end_date='20241215')
|
|
20
|
+
print(df)
|
|
21
|
+
|
|
22
|
+
df = pro.daily(ts_code='000001.SZ', start_date='20000701', end_date='20180718')
|
|
23
|
+
print(df)
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
chinadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
chinadata/ca_data.py,sha256=7hS_awGaTfgNVcB7ymah0wtGL1Ak4pPLgliyjoLqzu8,35281
|
|
3
|
+
chinadata/example.py,sha256=eKj2Hl5KVq9EJGWVY2ZoRJOqZ-p4yiSoFI-xVzdf8LA,575
|
|
4
|
+
chinadata-0.2.0.dist-info/METADATA,sha256=43yZXa7asTkk-JhMed2x6dFvE2T4K7LO2sJYdrLVY2M,161
|
|
5
|
+
chinadata-0.2.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
6
|
+
chinadata-0.2.0.dist-info/top_level.txt,sha256=Ptxvu9uzRHP4kVGRf413KuwSvsY2mk_KgQJ6ssWwisU,10
|
|
7
|
+
chinadata-0.2.0.dist-info/RECORD,,
|
chinadata-0.1.7.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
chinadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
chinadata/ca_data.py,sha256=1A-SESKt7NZAb55zXWhBTLQvwV8UBHv1SbiFAIk4YHE,33733
|
|
3
|
-
chinadata/example.py,sha256=T0U_8u9NhhqoMlTHOSgODsHeSEryGnz6Ze-EpvOwl8k,580
|
|
4
|
-
chinadata-0.1.7.dist-info/METADATA,sha256=sCFrF7hlVHAN_wpADGcgFuXoe1Y6INttwiBvdj3QQso,161
|
|
5
|
-
chinadata-0.1.7.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
6
|
-
chinadata-0.1.7.dist-info/top_level.txt,sha256=Ptxvu9uzRHP4kVGRf413KuwSvsY2mk_KgQJ6ssWwisU,10
|
|
7
|
-
chinadata-0.1.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|