tushare 1.4.5__tar.gz → 1.4.7__tar.gz
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-1.4.7/PKG-INFO +91 -0
- {tushare-1.4.5 → tushare-1.4.7}/setup.py +15 -9
- {tushare-1.4.5 → tushare-1.4.7}/tushare/__init__.py +1 -1
- {tushare-1.4.5 → tushare-1.4.7}/tushare/pro/data_pro.py +18 -10
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/rtq.py +6 -4
- tushare-1.4.7/tushare.egg-info/PKG-INFO +91 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare.egg-info/requires.txt +1 -6
- tushare-1.4.5/PKG-INFO +0 -87
- tushare-1.4.5/tushare.egg-info/PKG-INFO +0 -87
- {tushare-1.4.5 → tushare-1.4.7}/LICENSE +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/README.md +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/setup.cfg +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/bond/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/bond/bonds.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/coins/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/coins/market.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/data/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/fund/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/fund/cons.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/fund/nav.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/futures/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/futures/cons.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/futures/domestic.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/futures/domestic_cons.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/futures/intlfutures.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/internet/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/internet/boxoffice.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/internet/caixinnews.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/internet/indexes.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/pro/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/pro/client.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/billboard.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/classifying.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/cons.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/fundamental.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/globals.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/histroy_divide.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/indictor.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/macro.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/macro_vars.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/minsdata.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/news_vars.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/newsevent.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/ref_vars.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/reference.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/rtq_vars.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/shibor.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/stock/trading.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/subs/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/subs/ht_subs/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/subs/ht_subs/covert.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/subs/ht_subs/subscribe.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/subs/model/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/subs/model/min.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/subs/model/tick.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/subs/tgw_subs/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/subs/tgw_subs/convert.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/subs/tgw_subs/login.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/subs/tgw_subs/subscribe.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/subs/ts_subs/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/subs/ts_subs/subscribe.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/trader/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/trader/trader.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/trader/utils.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/trader/vars.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/common.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/conns.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/dateu.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/form_date.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/format_stock_code.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/formula.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/mailmerge.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/netbase.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/protobuf/__init__.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/protobuf/funcs.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/protobuf/response_pb2.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/store.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/upass.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/vars.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare/util/verify_token.py +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare.egg-info/SOURCES.txt +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare.egg-info/dependency_links.txt +0 -0
- {tushare-1.4.5 → tushare-1.4.7}/tushare.egg-info/top_level.txt +0 -0
tushare-1.4.7/PKG-INFO
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: tushare
|
3
|
+
Version: 1.4.7
|
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
|
+
Classifier: Development Status :: 4 - Beta
|
11
|
+
Classifier: Programming Language :: Python :: 3.6
|
12
|
+
Classifier: Programming Language :: Python :: 3.7
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
16
|
+
Classifier: License :: OSI Approved :: BSD License
|
17
|
+
Description-Content-Type: text/plain
|
18
|
+
License-File: LICENSE
|
19
|
+
|
20
|
+
|
21
|
+
TuShare
|
22
|
+
===============
|
23
|
+
|
24
|
+
.. image:: https://api.travis-ci.org/waditu/tushare.png?branch=master
|
25
|
+
:target: https://travis-ci.org/waditu/tushare
|
26
|
+
|
27
|
+
.. image:: https://badge.fury.io/py/tushare.png
|
28
|
+
:target: http://badge.fury.io/py/tushare
|
29
|
+
|
30
|
+
* easy to use as most of the data returned are pandas DataFrame objects
|
31
|
+
* can be easily saved as csv, excel or json files
|
32
|
+
* can be inserted into MySQL or Mongodb
|
33
|
+
|
34
|
+
Target Users
|
35
|
+
--------------
|
36
|
+
|
37
|
+
* financial market analyst of China
|
38
|
+
* learners of financial data analysis with pandas/NumPy
|
39
|
+
* people who are interested in China financial data
|
40
|
+
|
41
|
+
Installation
|
42
|
+
--------------
|
43
|
+
|
44
|
+
pip install tushare
|
45
|
+
|
46
|
+
Upgrade
|
47
|
+
---------------
|
48
|
+
|
49
|
+
pip install tushare --upgrade
|
50
|
+
|
51
|
+
Quick Start
|
52
|
+
--------------
|
53
|
+
|
54
|
+
::
|
55
|
+
|
56
|
+
import tushare as ts
|
57
|
+
|
58
|
+
ts.get_hist_data('600848')
|
59
|
+
|
60
|
+
return::
|
61
|
+
|
62
|
+
open high close low volume p_change ma5
|
63
|
+
date
|
64
|
+
2012-01-11 6.880 7.380 7.060 6.880 14129.96 2.62 7.060
|
65
|
+
2012-01-12 7.050 7.100 6.980 6.900 7895.19 -1.13 7.020
|
66
|
+
2012-01-13 6.950 7.000 6.700 6.690 6611.87 -4.01 6.913
|
67
|
+
2012-01-16 6.680 6.750 6.510 6.480 2941.63 -2.84 6.813
|
68
|
+
2012-01-17 6.660 6.880 6.860 6.460 8642.57 5.38 6.822
|
69
|
+
2012-01-18 7.000 7.300 6.890 6.880 13075.40 0.44 6.788
|
70
|
+
2012-01-19 6.690 6.950 6.890 6.680 6117.32 0.00 6.770
|
71
|
+
2012-01-20 6.870 7.080 7.010 6.870 6813.09 1.74 6.832
|
72
|
+
|
73
|
+
|
74
|
+
Log
|
75
|
+
--------------
|
76
|
+
1.4.6
|
77
|
+
-------
|
78
|
+
- 修复 realtime_quote 实时盘口TICK快照(爬虫版)
|
79
|
+
- 修复dc OPEN和LOW 值相反问题
|
80
|
+
1.4.0
|
81
|
+
-------
|
82
|
+
- 增加 银河证券实时行情数据入口
|
83
|
+
1.3.9
|
84
|
+
-------
|
85
|
+
- realtime_quote 实时盘口TICK快照(爬虫版)
|
86
|
+
- 修复dc 指数和股票数据抓取问题
|
87
|
+
- 将数字类型统一转换成 float类型
|
88
|
+
1.2.73
|
89
|
+
-------
|
90
|
+
- 支持华泰实时数据15SECOND
|
91
|
+
|
@@ -64,6 +64,10 @@ return::
|
|
64
64
|
|
65
65
|
Log
|
66
66
|
--------------
|
67
|
+
1.4.6
|
68
|
+
-------
|
69
|
+
- 修复 realtime_quote 实时盘口TICK快照(爬虫版)
|
70
|
+
- 修复dc OPEN和LOW 值相反问题
|
67
71
|
1.4.0
|
68
72
|
-------
|
69
73
|
- 增加 银河证券实时行情数据入口
|
@@ -79,19 +83,21 @@ Log
|
|
79
83
|
"""
|
80
84
|
|
81
85
|
def read_install_requires():
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
86
|
+
reqs = [
|
87
|
+
'pandas',
|
88
|
+
'requests',
|
89
|
+
'lxml',
|
90
|
+
'simplejson',
|
91
|
+
'bs4',
|
92
|
+
'websocket-client==0.57.0',
|
93
|
+
'tqdm'
|
94
|
+
]
|
95
|
+
return reqs
|
90
96
|
|
91
97
|
|
92
98
|
setup(
|
93
99
|
name='tushare',
|
94
|
-
version='1.4.
|
100
|
+
version='1.4.7',
|
95
101
|
description='A utility for crawling historical and Real-time Quotes data of China stocks',
|
96
102
|
# long_description=read("README.rst"),
|
97
103
|
long_description=long_desc,
|
@@ -3,7 +3,7 @@
|
|
3
3
|
pro init
|
4
4
|
Created on 2018/07/01
|
5
5
|
@author: Jimmy Liu
|
6
|
-
@group : https://
|
6
|
+
@group : https://tushare.pro
|
7
7
|
@contact: jimmysoa@sina.cn
|
8
8
|
"""
|
9
9
|
from __future__ import division
|
@@ -12,8 +12,8 @@ from tushare.pro import client
|
|
12
12
|
from tushare.util import upass
|
13
13
|
from tushare.util.formula import MA
|
14
14
|
|
15
|
-
PRICE_COLS = ['open', 'close', 'high', 'low']
|
16
|
-
FORMAT = lambda x: '%.
|
15
|
+
PRICE_COLS = ['open', 'close', 'high', 'low', 'pre_close']
|
16
|
+
FORMAT = lambda x: '%.2f' % x
|
17
17
|
FREQS = {'D': '1DAY',
|
18
18
|
'W': '1WEEK',
|
19
19
|
'Y': '1YEAR',
|
@@ -48,6 +48,7 @@ def pro_bar(ts_code='', api=None, start_date='', end_date='', freq='D', asset='E
|
|
48
48
|
adjfactor = False,
|
49
49
|
offset = None,
|
50
50
|
limit = None,
|
51
|
+
fields = '',
|
51
52
|
contract_type = '',
|
52
53
|
retry_count = 3):
|
53
54
|
"""
|
@@ -143,6 +144,11 @@ def pro_bar(ts_code='', api=None, start_date='', end_date='', freq='D', asset='E
|
|
143
144
|
data['pct_chg'] = data['pct_chg'].map(lambda x: FORMAT(x)).astype(float)
|
144
145
|
else:
|
145
146
|
data = data.drop(['trade_date', 'pre_close'], axis=1)
|
147
|
+
else:
|
148
|
+
data['pre_close'] = data['close'].shift(-1)
|
149
|
+
data['change'] = data['close'] - data['pre_close']
|
150
|
+
data['pct_chg'] = data['change'] / data['pre_close'] * 100
|
151
|
+
data['pct_chg'] = data['pct_chg'].map(lambda x: FORMAT(x)).astype(float)
|
146
152
|
elif asset == 'I':
|
147
153
|
if freq == 'D':
|
148
154
|
data = api.index_daily(ts_code=ts_code, start_date=start_date, end_date=end_date, offset=offset, limit=limit)
|
@@ -161,7 +167,7 @@ def pro_bar(ts_code='', api=None, start_date='', end_date='', freq='D', asset='E
|
|
161
167
|
if freq == 'D':
|
162
168
|
data = api.opt_daily(ts_code=ts_code, start_date=start_date, end_date=end_date, exchange=exchange, offset=offset, limit=limit)
|
163
169
|
if 'min' in freq:
|
164
|
-
data = api.
|
170
|
+
data = api.opt_mins(ts_code=ts_code, start_date=start_date, end_date=end_date, freq=freq, offset=offset, limit=limit)
|
165
171
|
elif asset == 'CB':
|
166
172
|
if freq == 'D':
|
167
173
|
data = api.cb_daily(ts_code=ts_code, start_date=start_date, end_date=end_date, offset=offset, limit=limit)
|
@@ -175,11 +181,8 @@ def pro_bar(ts_code='', api=None, start_date='', end_date='', freq='D', asset='E
|
|
175
181
|
freq = 'daily'
|
176
182
|
elif freq == 'w':
|
177
183
|
freq = 'week'
|
178
|
-
data = api.coinbar(
|
179
|
-
|
180
|
-
start_dae=start_date, end_date=end_date,
|
181
|
-
contract_type=contract_type
|
182
|
-
)
|
184
|
+
data = api.coinbar(exchange=exchange, symbol=ts_code, freq=freq, start_dae=start_date, end_date=end_date,
|
185
|
+
contract_type=contract_type)
|
183
186
|
if ma is not None and len(ma) > 0:
|
184
187
|
for a in ma:
|
185
188
|
if isinstance(a, int):
|
@@ -191,6 +194,9 @@ def pro_bar(ts_code='', api=None, start_date='', end_date='', freq='D', asset='E
|
|
191
194
|
except Exception as e:
|
192
195
|
print(e)
|
193
196
|
else:
|
197
|
+
if fields is not None and fields != '':
|
198
|
+
f_list = [col.strip() for col in fields.split(',')]
|
199
|
+
data = data[f_list]
|
194
200
|
return data
|
195
201
|
raise IOError('ERROR.')
|
196
202
|
|
@@ -211,5 +217,7 @@ def ht_subs(username, password):
|
|
211
217
|
|
212
218
|
|
213
219
|
if __name__ == '__main__':
|
214
|
-
|
220
|
+
# upass.set_token('')
|
215
221
|
pro = pro_api()
|
222
|
+
df = pro_bar(ts_code='688539.SH', adj='qfq')
|
223
|
+
print(df)
|
@@ -563,10 +563,10 @@ def get_realtime_quotes_dc(symbols="688553"):
|
|
563
563
|
if not data_info:
|
564
564
|
return pd.DataFrame()
|
565
565
|
name = data_info["f58"]
|
566
|
-
open = data_info["
|
566
|
+
open = data_info["f46"] # / 100
|
567
567
|
high = data_info["f44"] # / 100
|
568
568
|
pre_close = data_info["f60"] # / 100
|
569
|
-
low =
|
569
|
+
low = data_info["f45"] # / 100
|
570
570
|
price = data_info["f43"] # / 100 if data_info["f43"] != "-" else ""
|
571
571
|
b5_v = format_str_to_float(data_info["f12"])
|
572
572
|
b5_p = data_info["f11"] # / 100 if data_info["f11"] != "-" else ""
|
@@ -636,8 +636,8 @@ def format_str_to_float(x):
|
|
636
636
|
|
637
637
|
if __name__ == '__main__':
|
638
638
|
# df = realtime_quote(ts_code="000688.SH,000010.SH,000012.SH,399005.SZ", src="sina")
|
639
|
-
df = realtime_list(src="sina", page_count=1)
|
640
|
-
print(df)
|
639
|
+
# df = realtime_list(src="sina", page_count=1)
|
640
|
+
# print(df)
|
641
641
|
ts_code = '399005.SZ'
|
642
642
|
ts_code = '000001.SZ'
|
643
643
|
# ts_code = '836149.BJ'
|
@@ -647,3 +647,5 @@ if __name__ == '__main__':
|
|
647
647
|
ts_code = '688111.SH'
|
648
648
|
df = realtime_quote(src="dc", ts_code=ts_code)
|
649
649
|
print(df)
|
650
|
+
|
651
|
+
|
@@ -0,0 +1,91 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: tushare
|
3
|
+
Version: 1.4.7
|
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
|
+
Classifier: Development Status :: 4 - Beta
|
11
|
+
Classifier: Programming Language :: Python :: 3.6
|
12
|
+
Classifier: Programming Language :: Python :: 3.7
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
16
|
+
Classifier: License :: OSI Approved :: BSD License
|
17
|
+
Description-Content-Type: text/plain
|
18
|
+
License-File: LICENSE
|
19
|
+
|
20
|
+
|
21
|
+
TuShare
|
22
|
+
===============
|
23
|
+
|
24
|
+
.. image:: https://api.travis-ci.org/waditu/tushare.png?branch=master
|
25
|
+
:target: https://travis-ci.org/waditu/tushare
|
26
|
+
|
27
|
+
.. image:: https://badge.fury.io/py/tushare.png
|
28
|
+
:target: http://badge.fury.io/py/tushare
|
29
|
+
|
30
|
+
* easy to use as most of the data returned are pandas DataFrame objects
|
31
|
+
* can be easily saved as csv, excel or json files
|
32
|
+
* can be inserted into MySQL or Mongodb
|
33
|
+
|
34
|
+
Target Users
|
35
|
+
--------------
|
36
|
+
|
37
|
+
* financial market analyst of China
|
38
|
+
* learners of financial data analysis with pandas/NumPy
|
39
|
+
* people who are interested in China financial data
|
40
|
+
|
41
|
+
Installation
|
42
|
+
--------------
|
43
|
+
|
44
|
+
pip install tushare
|
45
|
+
|
46
|
+
Upgrade
|
47
|
+
---------------
|
48
|
+
|
49
|
+
pip install tushare --upgrade
|
50
|
+
|
51
|
+
Quick Start
|
52
|
+
--------------
|
53
|
+
|
54
|
+
::
|
55
|
+
|
56
|
+
import tushare as ts
|
57
|
+
|
58
|
+
ts.get_hist_data('600848')
|
59
|
+
|
60
|
+
return::
|
61
|
+
|
62
|
+
open high close low volume p_change ma5
|
63
|
+
date
|
64
|
+
2012-01-11 6.880 7.380 7.060 6.880 14129.96 2.62 7.060
|
65
|
+
2012-01-12 7.050 7.100 6.980 6.900 7895.19 -1.13 7.020
|
66
|
+
2012-01-13 6.950 7.000 6.700 6.690 6611.87 -4.01 6.913
|
67
|
+
2012-01-16 6.680 6.750 6.510 6.480 2941.63 -2.84 6.813
|
68
|
+
2012-01-17 6.660 6.880 6.860 6.460 8642.57 5.38 6.822
|
69
|
+
2012-01-18 7.000 7.300 6.890 6.880 13075.40 0.44 6.788
|
70
|
+
2012-01-19 6.690 6.950 6.890 6.680 6117.32 0.00 6.770
|
71
|
+
2012-01-20 6.870 7.080 7.010 6.870 6813.09 1.74 6.832
|
72
|
+
|
73
|
+
|
74
|
+
Log
|
75
|
+
--------------
|
76
|
+
1.4.6
|
77
|
+
-------
|
78
|
+
- 修复 realtime_quote 实时盘口TICK快照(爬虫版)
|
79
|
+
- 修复dc OPEN和LOW 值相反问题
|
80
|
+
1.4.0
|
81
|
+
-------
|
82
|
+
- 增加 银河证券实时行情数据入口
|
83
|
+
1.3.9
|
84
|
+
-------
|
85
|
+
- realtime_quote 实时盘口TICK快照(爬虫版)
|
86
|
+
- 修复dc 指数和股票数据抓取问题
|
87
|
+
- 将数字类型统一转换成 float类型
|
88
|
+
1.2.73
|
89
|
+
-------
|
90
|
+
- 支持华泰实时数据15SECOND
|
91
|
+
|
tushare-1.4.5/PKG-INFO
DELETED
@@ -1,87 +0,0 @@
|
|
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
|
-
Description:
|
10
|
-
TuShare
|
11
|
-
===============
|
12
|
-
|
13
|
-
.. image:: https://api.travis-ci.org/waditu/tushare.png?branch=master
|
14
|
-
:target: https://travis-ci.org/waditu/tushare
|
15
|
-
|
16
|
-
.. image:: https://badge.fury.io/py/tushare.png
|
17
|
-
:target: http://badge.fury.io/py/tushare
|
18
|
-
|
19
|
-
* easy to use as most of the data returned are pandas DataFrame objects
|
20
|
-
* can be easily saved as csv, excel or json files
|
21
|
-
* can be inserted into MySQL or Mongodb
|
22
|
-
|
23
|
-
Target Users
|
24
|
-
--------------
|
25
|
-
|
26
|
-
* financial market analyst of China
|
27
|
-
* learners of financial data analysis with pandas/NumPy
|
28
|
-
* people who are interested in China financial data
|
29
|
-
|
30
|
-
Installation
|
31
|
-
--------------
|
32
|
-
|
33
|
-
pip install tushare
|
34
|
-
|
35
|
-
Upgrade
|
36
|
-
---------------
|
37
|
-
|
38
|
-
pip install tushare --upgrade
|
39
|
-
|
40
|
-
Quick Start
|
41
|
-
--------------
|
42
|
-
|
43
|
-
::
|
44
|
-
|
45
|
-
import tushare as ts
|
46
|
-
|
47
|
-
ts.get_hist_data('600848')
|
48
|
-
|
49
|
-
return::
|
50
|
-
|
51
|
-
open high close low volume p_change ma5
|
52
|
-
date
|
53
|
-
2012-01-11 6.880 7.380 7.060 6.880 14129.96 2.62 7.060
|
54
|
-
2012-01-12 7.050 7.100 6.980 6.900 7895.19 -1.13 7.020
|
55
|
-
2012-01-13 6.950 7.000 6.700 6.690 6611.87 -4.01 6.913
|
56
|
-
2012-01-16 6.680 6.750 6.510 6.480 2941.63 -2.84 6.813
|
57
|
-
2012-01-17 6.660 6.880 6.860 6.460 8642.57 5.38 6.822
|
58
|
-
2012-01-18 7.000 7.300 6.890 6.880 13075.40 0.44 6.788
|
59
|
-
2012-01-19 6.690 6.950 6.890 6.680 6117.32 0.00 6.770
|
60
|
-
2012-01-20 6.870 7.080 7.010 6.870 6813.09 1.74 6.832
|
61
|
-
|
62
|
-
|
63
|
-
Log
|
64
|
-
--------------
|
65
|
-
1.4.0
|
66
|
-
-------
|
67
|
-
- 增加 银河证券实时行情数据入口
|
68
|
-
1.3.9
|
69
|
-
-------
|
70
|
-
- realtime_quote 实时盘口TICK快照(爬虫版)
|
71
|
-
- 修复dc 指数和股票数据抓取问题
|
72
|
-
- 将数字类型统一转换成 float类型
|
73
|
-
1.2.73
|
74
|
-
-------
|
75
|
-
- 支持华泰实时数据15SECOND
|
76
|
-
|
77
|
-
|
78
|
-
Keywords: Global Financial Data
|
79
|
-
Platform: UNKNOWN
|
80
|
-
Classifier: Development Status :: 4 - Beta
|
81
|
-
Classifier: Programming Language :: Python :: 3.6
|
82
|
-
Classifier: Programming Language :: Python :: 3.7
|
83
|
-
Classifier: Programming Language :: Python :: 3.8
|
84
|
-
Classifier: Programming Language :: Python :: 3.9
|
85
|
-
Classifier: Programming Language :: Python :: 3.10
|
86
|
-
Classifier: License :: OSI Approved :: BSD License
|
87
|
-
Description-Content-Type: text/plain
|
@@ -1,87 +0,0 @@
|
|
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
|
-
Description:
|
10
|
-
TuShare
|
11
|
-
===============
|
12
|
-
|
13
|
-
.. image:: https://api.travis-ci.org/waditu/tushare.png?branch=master
|
14
|
-
:target: https://travis-ci.org/waditu/tushare
|
15
|
-
|
16
|
-
.. image:: https://badge.fury.io/py/tushare.png
|
17
|
-
:target: http://badge.fury.io/py/tushare
|
18
|
-
|
19
|
-
* easy to use as most of the data returned are pandas DataFrame objects
|
20
|
-
* can be easily saved as csv, excel or json files
|
21
|
-
* can be inserted into MySQL or Mongodb
|
22
|
-
|
23
|
-
Target Users
|
24
|
-
--------------
|
25
|
-
|
26
|
-
* financial market analyst of China
|
27
|
-
* learners of financial data analysis with pandas/NumPy
|
28
|
-
* people who are interested in China financial data
|
29
|
-
|
30
|
-
Installation
|
31
|
-
--------------
|
32
|
-
|
33
|
-
pip install tushare
|
34
|
-
|
35
|
-
Upgrade
|
36
|
-
---------------
|
37
|
-
|
38
|
-
pip install tushare --upgrade
|
39
|
-
|
40
|
-
Quick Start
|
41
|
-
--------------
|
42
|
-
|
43
|
-
::
|
44
|
-
|
45
|
-
import tushare as ts
|
46
|
-
|
47
|
-
ts.get_hist_data('600848')
|
48
|
-
|
49
|
-
return::
|
50
|
-
|
51
|
-
open high close low volume p_change ma5
|
52
|
-
date
|
53
|
-
2012-01-11 6.880 7.380 7.060 6.880 14129.96 2.62 7.060
|
54
|
-
2012-01-12 7.050 7.100 6.980 6.900 7895.19 -1.13 7.020
|
55
|
-
2012-01-13 6.950 7.000 6.700 6.690 6611.87 -4.01 6.913
|
56
|
-
2012-01-16 6.680 6.750 6.510 6.480 2941.63 -2.84 6.813
|
57
|
-
2012-01-17 6.660 6.880 6.860 6.460 8642.57 5.38 6.822
|
58
|
-
2012-01-18 7.000 7.300 6.890 6.880 13075.40 0.44 6.788
|
59
|
-
2012-01-19 6.690 6.950 6.890 6.680 6117.32 0.00 6.770
|
60
|
-
2012-01-20 6.870 7.080 7.010 6.870 6813.09 1.74 6.832
|
61
|
-
|
62
|
-
|
63
|
-
Log
|
64
|
-
--------------
|
65
|
-
1.4.0
|
66
|
-
-------
|
67
|
-
- 增加 银河证券实时行情数据入口
|
68
|
-
1.3.9
|
69
|
-
-------
|
70
|
-
- realtime_quote 实时盘口TICK快照(爬虫版)
|
71
|
-
- 修复dc 指数和股票数据抓取问题
|
72
|
-
- 将数字类型统一转换成 float类型
|
73
|
-
1.2.73
|
74
|
-
-------
|
75
|
-
- 支持华泰实时数据15SECOND
|
76
|
-
|
77
|
-
|
78
|
-
Keywords: Global Financial Data
|
79
|
-
Platform: UNKNOWN
|
80
|
-
Classifier: Development Status :: 4 - Beta
|
81
|
-
Classifier: Programming Language :: Python :: 3.6
|
82
|
-
Classifier: Programming Language :: Python :: 3.7
|
83
|
-
Classifier: Programming Language :: Python :: 3.8
|
84
|
-
Classifier: Programming Language :: Python :: 3.9
|
85
|
-
Classifier: Programming Language :: Python :: 3.10
|
86
|
-
Classifier: License :: OSI Approved :: BSD License
|
87
|
-
Description-Content-Type: text/plain
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|