tushare 1.4.5__py3-none-any.whl → 1.4.6__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.
Files changed (46) hide show
  1. baks/__init__.py +0 -0
  2. baks/demo.py +184 -0
  3. baks/rtqc.py +612 -0
  4. baks/setup.py +15 -0
  5. baks/sss.py +56 -0
  6. test/__init__.py +0 -0
  7. test/bar_test.py +23 -0
  8. test/billboard_test.py +35 -0
  9. test/build_pyd/__init__.py +8 -0
  10. test/build_pyd/rtqc.py +612 -0
  11. test/build_pyd/setup.py +15 -0
  12. test/build_pyd//321/206/320/231/320/243/321/205/320/234/320/225pyd/321/205/320/241/342/225/234/321/204/342/225/227/320/264.txt +1 -0
  13. test/classifying_test.py +50 -0
  14. test/dateu_test.py +19 -0
  15. test/fund_test.py +43 -0
  16. test/indictor_test.py +23 -0
  17. test/macro_test.py +50 -0
  18. test/nav_test.py +104 -0
  19. test/news_test.py +38 -0
  20. test/pro_test.py +11 -0
  21. test/ref_test.py +57 -0
  22. test/shibor_test.py +33 -0
  23. test/storing_test.py +61 -0
  24. test/test_query.py +16 -0
  25. test/test_realtime.py +24 -0
  26. test/test_realtime_quote.py +13 -0
  27. test/test_sdk_event.py +21 -0
  28. test/test_stk_mins.py +16 -0
  29. test/test_stock_basic.py +16 -0
  30. test/test_tgw_subscribe.py +28 -0
  31. test/test_ts_subscribe.py +22 -0
  32. test/test_websocket.py +52 -0
  33. test/trading_test.py +43 -0
  34. tushare/__init__.py +1 -1
  35. tushare/stock/rtq.py +6 -4
  36. tushare/stock/rtqc.pyd +0 -0
  37. tushare/subs/ht_subs/service/__init__.py +0 -0
  38. tushare/subs/ht_subs/service/covert.py +189 -0
  39. tushare/subs/model/tick.py +128 -128
  40. tushare/subs/tgw_subs/convert.py +20 -20
  41. tushare/subs/ts_subs.py +192 -0
  42. {tushare-1.4.5.dist-info → tushare-1.4.6.dist-info}/METADATA +101 -101
  43. {tushare-1.4.5.dist-info → tushare-1.4.6.dist-info}/RECORD +46 -9
  44. {tushare-1.4.5.dist-info → tushare-1.4.6.dist-info}/WHEEL +1 -1
  45. {tushare-1.4.5.dist-info → tushare-1.4.6.dist-info}/top_level.txt +1 -0
  46. {tushare-1.4.5.dist-info → tushare-1.4.6.dist-info}/LICENSE +0 -0
@@ -1,101 +1,101 @@
1
- Metadata-Version: 2.1
2
- Name: tushare
3
- Version: 1.4.5
4
- Summary: A utility for crawling historical and Real-time Quotes data of China stocks
5
- Home-page: https://tushare.pro
6
- Author: Jimmy Liu
7
- Author-email: waditu@163.com
8
- License: BSD
9
- Keywords: Global Financial Data
10
- Platform: UNKNOWN
11
- Classifier: Development Status :: 4 - Beta
12
- Classifier: Programming Language :: Python :: 3.6
13
- Classifier: Programming Language :: Python :: 3.7
14
- Classifier: Programming Language :: Python :: 3.8
15
- Classifier: Programming Language :: Python :: 3.9
16
- Classifier: Programming Language :: Python :: 3.10
17
- Classifier: License :: OSI Approved :: BSD License
18
- Description-Content-Type: text/plain
19
- Requires-Dist: pandas
20
- Requires-Dist: requests
21
- Requires-Dist: lxml
22
- Requires-Dist: simplejson
23
- Requires-Dist: bs4 ==0.0.1
24
- Requires-Dist: websocket-client ==0.57.0
25
- Requires-Dist: pytdx
26
- Requires-Dist: protobuf
27
- Requires-Dist: grpcio
28
- Requires-Dist: pycryptodome
29
- Requires-Dist: pydantic
30
- Requires-Dist: tqdm
31
-
32
-
33
- TuShare
34
- ===============
35
-
36
- .. image:: https://api.travis-ci.org/waditu/tushare.png?branch=master
37
- :target: https://travis-ci.org/waditu/tushare
38
-
39
- .. image:: https://badge.fury.io/py/tushare.png
40
- :target: http://badge.fury.io/py/tushare
41
-
42
- * easy to use as most of the data returned are pandas DataFrame objects
43
- * can be easily saved as csv, excel or json files
44
- * can be inserted into MySQL or Mongodb
45
-
46
- Target Users
47
- --------------
48
-
49
- * financial market analyst of China
50
- * learners of financial data analysis with pandas/NumPy
51
- * people who are interested in China financial data
52
-
53
- Installation
54
- --------------
55
-
56
- pip install tushare
57
-
58
- Upgrade
59
- ---------------
60
-
61
- pip install tushare --upgrade
62
-
63
- Quick Start
64
- --------------
65
-
66
- ::
67
-
68
- import tushare as ts
69
-
70
- ts.get_hist_data('600848')
71
-
72
- return::
73
-
74
- open high close low volume p_change ma5
75
- date
76
- 2012-01-11 6.880 7.380 7.060 6.880 14129.96 2.62 7.060
77
- 2012-01-12 7.050 7.100 6.980 6.900 7895.19 -1.13 7.020
78
- 2012-01-13 6.950 7.000 6.700 6.690 6611.87 -4.01 6.913
79
- 2012-01-16 6.680 6.750 6.510 6.480 2941.63 -2.84 6.813
80
- 2012-01-17 6.660 6.880 6.860 6.460 8642.57 5.38 6.822
81
- 2012-01-18 7.000 7.300 6.890 6.880 13075.40 0.44 6.788
82
- 2012-01-19 6.690 6.950 6.890 6.680 6117.32 0.00 6.770
83
- 2012-01-20 6.870 7.080 7.010 6.870 6813.09 1.74 6.832
84
-
85
-
86
- Log
87
- --------------
88
- 1.4.0
89
- -------
90
- - 增加 银河证券实时行情数据入口
91
- 1.3.9
92
- -------
93
- - realtime_quote 实时盘口TICK快照(爬虫版)
94
- - 修复dc 指数和股票数据抓取问题
95
- - 将数字类型统一转换成 float类型
96
- 1.2.73
97
- -------
98
- - 支持华泰实时数据15SECOND
99
-
100
-
101
-
1
+ Metadata-Version: 2.1
2
+ Name: tushare
3
+ Version: 1.4.6
4
+ Summary: A utility for crawling historical and Real-time Quotes data of China stocks
5
+ Home-page: https://tushare.pro
6
+ Author: Jimmy Liu
7
+ Author-email: waditu@163.com
8
+ License: BSD
9
+ Keywords: Global Financial Data
10
+ Platform: UNKNOWN
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Programming Language :: Python :: 3.6
13
+ Classifier: Programming Language :: Python :: 3.7
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: License :: OSI Approved :: BSD License
18
+ Description-Content-Type: text/plain
19
+ License-File: LICENSE
20
+ Requires-Dist: pandas
21
+ Requires-Dist: requests
22
+ Requires-Dist: lxml
23
+ Requires-Dist: simplejson
24
+ Requires-Dist: bs4
25
+ Requires-Dist: websocket-client (==0.57.0)
26
+ Requires-Dist: tqdm
27
+
28
+
29
+ TuShare
30
+ ===============
31
+
32
+ .. image:: https://api.travis-ci.org/waditu/tushare.png?branch=master
33
+ :target: https://travis-ci.org/waditu/tushare
34
+
35
+ .. image:: https://badge.fury.io/py/tushare.png
36
+ :target: http://badge.fury.io/py/tushare
37
+
38
+ * easy to use as most of the data returned are pandas DataFrame objects
39
+ * can be easily saved as csv, excel or json files
40
+ * can be inserted into MySQL or Mongodb
41
+
42
+ Target Users
43
+ --------------
44
+
45
+ * financial market analyst of China
46
+ * learners of financial data analysis with pandas/NumPy
47
+ * people who are interested in China financial data
48
+
49
+ Installation
50
+ --------------
51
+
52
+ pip install tushare
53
+
54
+ Upgrade
55
+ ---------------
56
+
57
+ pip install tushare --upgrade
58
+
59
+ Quick Start
60
+ --------------
61
+
62
+ ::
63
+
64
+ import tushare as ts
65
+
66
+ ts.get_hist_data('600848')
67
+
68
+ return::
69
+
70
+ open high close low volume p_change ma5
71
+ date
72
+ 2012-01-11 6.880 7.380 7.060 6.880 14129.96 2.62 7.060
73
+ 2012-01-12 7.050 7.100 6.980 6.900 7895.19 -1.13 7.020
74
+ 2012-01-13 6.950 7.000 6.700 6.690 6611.87 -4.01 6.913
75
+ 2012-01-16 6.680 6.750 6.510 6.480 2941.63 -2.84 6.813
76
+ 2012-01-17 6.660 6.880 6.860 6.460 8642.57 5.38 6.822
77
+ 2012-01-18 7.000 7.300 6.890 6.880 13075.40 0.44 6.788
78
+ 2012-01-19 6.690 6.950 6.890 6.680 6117.32 0.00 6.770
79
+ 2012-01-20 6.870 7.080 7.010 6.870 6813.09 1.74 6.832
80
+
81
+
82
+ Log
83
+ --------------
84
+ 1.4.6
85
+ -------
86
+ - 修复 realtime_quote 实时盘口TICK快照(爬虫版)
87
+ - 修复dc OPEN和LOW 值相反问题
88
+ 1.4.0
89
+ -------
90
+ - 增加 银河证券实时行情数据入口
91
+ 1.3.9
92
+ -------
93
+ - realtime_quote 实时盘口TICK快照(爬虫版)
94
+ - 修复dc 指数和股票数据抓取问题
95
+ - 将数字类型统一转换成 float类型
96
+ 1.2.73
97
+ -------
98
+ - 支持华泰实时数据15SECOND
99
+
100
+
101
+
@@ -1,4 +1,37 @@
1
- tushare/__init__.py,sha256=BRDLaOC6I6WPuhh1rcVboWFcUF-uGxw0F8Sbqxj3EOQ,4764
1
+ baks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ baks/demo.py,sha256=-08f5k-Rd9I3mbneDWCtmxs2OEzisO2t1Xgtyp8Sn8A,5940
3
+ baks/rtqc.py,sha256=0TJHzK41zWR7ka34bT5UIIcXMW6WOs__WB1HVwrcfjA,21085
4
+ baks/setup.py,sha256=rNK-9qDmwnb6mSnwMoHsQbyTSEKJf8c7gPPbmaPMHHY,250
5
+ baks/sss.py,sha256=CVdXa4WL7cf94SKcutRidioKZPM4ahKtcC-RJEMAwik,2647
6
+ test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ test/bar_test.py,sha256=DMsVn_PU7sxy76mgn1Sj3_rvjbh5oCdo1af_nDaoxw0,499
8
+ test/billboard_test.py,sha256=9IuZDsBA9qFBS-XygZ2QpjgI4PoKEQf7_rEIXC3sy_k,811
9
+ test/classifying_test.py,sha256=4s8xIqY4bIIqgz89LOZ25tMgqyQWrMOWtnDXTlQMREg,1338
10
+ test/dateu_test.py,sha256=H3D0ztCVFw2AV9zSgCHdLe6C1M304NNzTMvhF1omGaw,557
11
+ test/fund_test.py,sha256=XdeK1lxXrZ3LDMX-A8Y09XRifaon-OjwESx7LTrYl2c,1274
12
+ test/indictor_test.py,sha256=HN3hUJ9ssrQ9tRxc3aUjYmuSdXQFhqQpg2AqJfnF5rs,528
13
+ test/macro_test.py,sha256=KJb8ujyuJ4cjJlGRH-7lqOnBr-7WGRsPOCJ9zG3wbAc,1234
14
+ test/nav_test.py,sha256=aebhBp5QIbwoEvkdyyPDzklzYHKlmwEOfux2lDPF5Kc,3953
15
+ test/news_test.py,sha256=Q8X6JJr8pxlZ9JnM71soDiYbFWOv_ZXIlwweYT3jhbo,901
16
+ test/pro_test.py,sha256=Aj5cmLY12OvxEV2XE1oReHeYBI2paNOhm0CwWSrz1Tg,229
17
+ test/ref_test.py,sha256=FFOQO1Jnn42TRgmGipGJy_H-qZ9JJyFDb6ShY7YRDNo,1507
18
+ test/shibor_test.py,sha256=l8EGCh92obzozUcPphOP4V8EQEM2-Xzh1l3CApjNjt8,762
19
+ test/storing_test.py,sha256=UVyDDZXisjFrKy_5bpWLEN4M5fReOy-q8tvBOGO0XhQ,1789
20
+ test/test_query.py,sha256=X-u8RpJBu77P00DowBLMO1nbbsCxEqIRyHsiEEDVv7s,329
21
+ test/test_realtime.py,sha256=YpEH3Ic3D-4dgL9BI9RbWNSD-ZM8KfuqtSxyBvexSRg,697
22
+ test/test_realtime_quote.py,sha256=UeONzpFDuLazPyK-lZkwtg2szmxg002ngEB07CFOZ0c,311
23
+ test/test_sdk_event.py,sha256=NSX0AYuU45BHztn_wcnM0clIf1Xb0s4DzNsm3SgTXRo,529
24
+ test/test_stk_mins.py,sha256=ctaoAkclIKxNQT6KYuXaB5HESpZSD29dn-KLbUT2rmo,53600
25
+ test/test_stock_basic.py,sha256=XQW6TZGeOjrB0a4OV8WxK0RvOx-iQW_vwARoMLppWVA,309
26
+ test/test_tgw_subscribe.py,sha256=mgCDbB_Wa-U1QlTas3U7OMh1VskA29fFsAMJTL2r_tU,669
27
+ test/test_ts_subscribe.py,sha256=VB8ZVtsaKopu6-XZz56WjHT4FtMbBfiBm0GDJBKx1xg,617
28
+ test/test_websocket.py,sha256=DgOEcX9vuYlPVfBi54AJZTh6k0eu9lG4qcOdJhGllNU,1079
29
+ test/trading_test.py,sha256=otXiHdU0ob441x7o1swadfSEuyPusT7oYU8SQeesSxE,1147
30
+ test/build_pyd/__init__.py,sha256=pel_N6SRBWzJKf55rnF6eZa0zDNpO41JU1_3IRwi3uU,121
31
+ test/build_pyd/rtqc.py,sha256=0TJHzK41zWR7ka34bT5UIIcXMW6WOs__WB1HVwrcfjA,21085
32
+ test/build_pyd/setup.py,sha256=rNK-9qDmwnb6mSnwMoHsQbyTSEKJf8c7gPPbmaPMHHY,250
33
+ test/build_pyd/打包pyd命令.txt,sha256=EO6iGOJXxFWOCJlIhhvRylaZpoa1R8PznZM9jDek55w,35
34
+ tushare/__init__.py,sha256=oPFf9vxuW9mjFfQxCvnEQvhLyWjY2Msk0PUUUioV-PE,4764
2
35
  tushare/bond/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
36
  tushare/bond/bonds.py,sha256=PJM0xDiWZDpOPwDtbEU9PdP0M_Gu0c599YuB1rbZ3r8,232
4
37
  tushare/coins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -34,19 +67,23 @@ tushare/stock/news_vars.py,sha256=CQ18hvyoeScelBCqKgF_rgAufoEALAUT8y_LERvZKHk,45
34
67
  tushare/stock/newsevent.py,sha256=STR7C8MjtZlaXTCG0QNaojBuK4-oxP_8hT7ZIvRpbiI,6944
35
68
  tushare/stock/ref_vars.py,sha256=MIxor-2rISl65I32vUzC-z7ZC_QFzG4sxOKDyjLWuU4,4449
36
69
  tushare/stock/reference.py,sha256=x_HZlrP58T-5OTZ7SLdf2Dh9THj1h7cT4wcIp42IHFI,38227
37
- tushare/stock/rtq.py,sha256=Gd0-DbmFc-QyFfAgKcwkANIlN8lB60TOgY2kPBN5GWk,23115
70
+ tushare/stock/rtq.py,sha256=gMTTv8XOtCgStLa0DhXIXMJhf5jBsZbs_1zzQVugTDc,23123
38
71
  tushare/stock/rtq_vars.py,sha256=V6LeJkSP76z8veRfP_mGiQ63V5YBHoTMaqUA5hSBWh4,4200
72
+ tushare/stock/rtqc.pyd,sha256=zmi-KXqBkbCFbph8tH2RaEV1FVzYxo1Jpj2D8Aoe1Pc,158208
39
73
  tushare/stock/shibor.py,sha256=Fx9OUZ429kz6l7ZdaYSD6p_X79ud69PDM9EZogm8xCY,6422
40
74
  tushare/stock/trading.py,sha256=3bvM4pexEYW-uGGEL7g6Vkte4sqGC1iYO6dC8mGLSdM,55619
41
75
  tushare/subs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
+ tushare/subs/ts_subs.py,sha256=yDVnP_6tTObo3MZypwxajoa3j4a6MAVHY2x2GPmURcw,6072
42
77
  tushare/subs/ht_subs/__init__.py,sha256=DPsp9mTsNzVdOEOMNFmLRqUrJ2REVD5T_-muI3CgBgk,132
43
78
  tushare/subs/ht_subs/covert.py,sha256=d25f86D_4CHjrX3IGh8JtTSb7VI2Da506FHwlhOhk1c,7368
44
79
  tushare/subs/ht_subs/subscribe.py,sha256=yYnPeg7c0OHbIJhEf4bXFMLbQ4H1bHhApDPrHeTimuw,8340
80
+ tushare/subs/ht_subs/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
81
+ tushare/subs/ht_subs/service/covert.py,sha256=s1-LPu4ZsdXCwOXvo758TzMLIrm26rohYSC8NbqVQvA,7336
45
82
  tushare/subs/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
83
  tushare/subs/model/min.py,sha256=-AYBGOM1U8IB7Q6SPHS0tpoWN3qz1hngCw7k5x2HhUU,375
47
- tushare/subs/model/tick.py,sha256=YB_a5Kdktp7bGBnFnkiYUNI5SKZKmC9XxnLyd9QGoX0,4211
84
+ tushare/subs/model/tick.py,sha256=f6ze4I_Z9Cy2WsXVak0tm1_lR1uQ8yGGIHESm1eBElE,4297
48
85
  tushare/subs/tgw_subs/__init__.py,sha256=30AFeIgTci0HLNyZTNpr1wRChrVdvpD2dHNKS4Q-fS0,69
49
- tushare/subs/tgw_subs/convert.py,sha256=VWsDOv_rmz3a9YjQ-ZThXerc1HqcWPlBYAOF6A9SqjQ,5474
86
+ tushare/subs/tgw_subs/convert.py,sha256=H3Tgsz8BdSL0lpBhMu4MRArWkQ99rnZDigZXvkRiUfs,5331
50
87
  tushare/subs/tgw_subs/login.py,sha256=z7laiscTx50LzOB0cM2hypv5E78DvWx-2Ip5kDE7uNk,903
51
88
  tushare/subs/tgw_subs/subscribe.py,sha256=OwLKcSTN2xrge33hBkio_S188viMeGuicDj_x0VaR2A,3336
52
89
  tushare/subs/ts_subs/__init__.py,sha256=AyX957j8DDjdpIYcNR7dyRaMfxusa6d2VeunMEB6RAc,107
@@ -71,8 +108,8 @@ tushare/util/verify_token.py,sha256=cuV3RErWbOC318NANCYL6K1LKZ3wSAL2yMwZHA7tD3s,
71
108
  tushare/util/protobuf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
72
109
  tushare/util/protobuf/funcs.py,sha256=UCdK8FxTyjPZsNzoEeXqYzqrQXUmRMvW5hua6GPA66A,779
73
110
  tushare/util/protobuf/response_pb2.py,sha256=vJH9ONkDuJlg6y-q1PvuDZoviKrK7hzNtMieQHK45DI,11347
74
- tushare-1.4.5.dist-info/LICENSE,sha256=C2j55UI0Ul-1-wA1-rn7OaY6b3vGl4YukiyvYzHsU9o,1503
75
- tushare-1.4.5.dist-info/METADATA,sha256=uDEL9Ina_cYyI8PoPRmUy_pBdrq8mSe9fb183LC-Wb0,2828
76
- tushare-1.4.5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
77
- tushare-1.4.5.dist-info/top_level.txt,sha256=HHOxMuqc31KuAIcxpE0t5dAPMKbaiRtjsjTMFd7FlXI,8
78
- tushare-1.4.5.dist-info/RECORD,,
111
+ tushare-1.4.6.dist-info/LICENSE,sha256=C2j55UI0Ul-1-wA1-rn7OaY6b3vGl4YukiyvYzHsU9o,1503
112
+ tushare-1.4.6.dist-info/METADATA,sha256=8CVNDk_g1O8H1cT-yN6Dip4rOM1QEH-PRWYNziCDd9Y,2762
113
+ tushare-1.4.6.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
114
+ tushare-1.4.6.dist-info/top_level.txt,sha256=tpLlkn1ZJMx2n9zBkKCoT-_WyHr1B5X_JdSIc45QO4o,13
115
+ tushare-1.4.6.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.37.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5