rquote 0.2.4__tar.gz → 0.2.6__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.
- {rquote-0.2.4 → rquote-0.2.6}/PKG-INFO +2 -1
- {rquote-0.2.4 → rquote-0.2.6}/pyproject.toml +2 -1
- {rquote-0.2.4 → rquote-0.2.6}/rquote/__init__.py +1 -0
- {rquote-0.2.4 → rquote-0.2.6}/rquote/main.py +0 -1
- {rquote-0.2.4 → rquote-0.2.6}/rquote/utils.py +3 -2
- {rquote-0.2.4 → rquote-0.2.6}/rquote.egg-info/PKG-INFO +2 -1
- {rquote-0.2.4 → rquote-0.2.6}/rquote.egg-info/requires.txt +1 -0
- {rquote-0.2.4 → rquote-0.2.6}/setup.py +4 -1
- {rquote-0.2.4 → rquote-0.2.6}/README.md +0 -0
- {rquote-0.2.4 → rquote-0.2.6}/rquote/plots.py +0 -0
- {rquote-0.2.4 → rquote-0.2.6}/rquote.egg-info/SOURCES.txt +0 -0
- {rquote-0.2.4 → rquote-0.2.6}/rquote.egg-info/dependency_links.txt +0 -0
- {rquote-0.2.4 → rquote-0.2.6}/rquote.egg-info/top_level.txt +0 -0
- {rquote-0.2.4 → rquote-0.2.6}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rquote
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.6
|
|
4
4
|
Summary: Mostly day quotes of cn/hk/us/fund/future markets, side with quote list fetch
|
|
5
5
|
Home-page: https://github.com/kids/rquote
|
|
6
6
|
Author: Roizhao
|
|
@@ -10,6 +10,7 @@ Description-Content-Type: text/markdown
|
|
|
10
10
|
Requires-Dist: httpx>=0.20.0
|
|
11
11
|
Requires-Dist: pandas>=1.0.0
|
|
12
12
|
Requires-Dist: setuptools>=59.6.0
|
|
13
|
+
Requires-Dist: twine>=3.8.0
|
|
13
14
|
Dynamic: author
|
|
14
15
|
Dynamic: author-email
|
|
15
16
|
Dynamic: home-page
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "rquote"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.6"
|
|
8
8
|
description = "Mostly day quotes of cn/hk/us/fund/future markets, side with quote list fetch"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.6.1"
|
|
@@ -12,4 +12,5 @@ dependencies = [
|
|
|
12
12
|
"httpx>=0.20.0",
|
|
13
13
|
"pandas>=1.0.0",
|
|
14
14
|
"setuptools>=59.6.0",
|
|
15
|
+
"twine>=3.8.0",
|
|
15
16
|
]
|
|
@@ -10,5 +10,6 @@ Copyright (c) 2021 Roi ZHAO
|
|
|
10
10
|
from .main import get_price, get_stock_concepts, get_concept_stocks, get_bk_stocks
|
|
11
11
|
from .main import get_all_concepts, get_all_industries
|
|
12
12
|
from .main import get_cn_stock_list, get_hk_stocks_hsi, get_hk_stocks_ggt
|
|
13
|
+
from .main import get_cn_future_list, get_us_stocks_biggest, get_cn_fund_list
|
|
13
14
|
from .utils import WebUtils, BasicFactors
|
|
14
15
|
from .plots import PlotUtils
|
|
@@ -192,7 +192,6 @@ def get_price(i, sdate='', edate='', freq='day', days=320, fq='qfq',
|
|
|
192
192
|
raise ValueError('target market not supported')
|
|
193
193
|
a = hget(url)
|
|
194
194
|
#a = json.loads(a.text.replace('kline_dayqfq=', ''))['data'][i]
|
|
195
|
-
print('=====',url,a)
|
|
196
195
|
a = json.loads(a.text)['data'][i]
|
|
197
196
|
name = ''
|
|
198
197
|
try:
|
|
@@ -52,7 +52,7 @@ class WebUtils:
|
|
|
52
52
|
return header
|
|
53
53
|
|
|
54
54
|
@classmethod
|
|
55
|
-
def
|
|
55
|
+
def http_get(cls, url, headers, method, proxy=None):
|
|
56
56
|
'''
|
|
57
57
|
request.get() wrapper
|
|
58
58
|
'''
|
|
@@ -187,7 +187,8 @@ class hget:
|
|
|
187
187
|
self.url = url
|
|
188
188
|
try:
|
|
189
189
|
r = httpx.get(
|
|
190
|
-
self.url, follow_redirects=True,
|
|
190
|
+
self.url, follow_redirects=True, headers=WebUtils.headers(),
|
|
191
|
+
*args, **kwargs)
|
|
191
192
|
self.text = r.text
|
|
192
193
|
self.content = r.content
|
|
193
194
|
except Exception as e:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rquote
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.6
|
|
4
4
|
Summary: Mostly day quotes of cn/hk/us/fund/future markets, side with quote list fetch
|
|
5
5
|
Home-page: https://github.com/kids/rquote
|
|
6
6
|
Author: Roizhao
|
|
@@ -10,6 +10,7 @@ Description-Content-Type: text/markdown
|
|
|
10
10
|
Requires-Dist: httpx>=0.20.0
|
|
11
11
|
Requires-Dist: pandas>=1.0.0
|
|
12
12
|
Requires-Dist: setuptools>=59.6.0
|
|
13
|
+
Requires-Dist: twine>=3.8.0
|
|
13
14
|
Dynamic: author
|
|
14
15
|
Dynamic: author-email
|
|
15
16
|
Dynamic: home-page
|
|
@@ -15,7 +15,7 @@ def read_requirements(filename):
|
|
|
15
15
|
setup(
|
|
16
16
|
name='rquote',
|
|
17
17
|
python_requires='>=3.4.0',
|
|
18
|
-
version='0.2.
|
|
18
|
+
version='0.2.6',
|
|
19
19
|
description='Mostly day quotes of cn/hk/us/fund/future markets, side with quote list fetch',
|
|
20
20
|
long_description=read_file('README.md'),
|
|
21
21
|
long_description_content_type="text/markdown",
|
|
@@ -38,5 +38,8 @@ setup(
|
|
|
38
38
|
'Programming Language :: Python :: 3.6',
|
|
39
39
|
'Programming Language :: Python :: 3.7',
|
|
40
40
|
'Programming Language :: Python :: 3.8',
|
|
41
|
+
'Programming Language :: Python :: 3.9',
|
|
42
|
+
'Programming Language :: Python :: 3.10',
|
|
43
|
+
'Programming Language :: Python :: 3.11',
|
|
41
44
|
],
|
|
42
45
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|