akshare-one 0.3.7__tar.gz → 0.3.9__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.
- {akshare_one-0.3.7 → akshare_one-0.3.9}/PKG-INFO +72 -74
- {akshare_one-0.3.7 → akshare_one-0.3.9}/README.md +57 -57
- {akshare_one-0.3.7 → akshare_one-0.3.9}/pyproject.toml +50 -39
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/__init__.py +214 -214
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/eastmoney/client.py +80 -80
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/eastmoney/utils.py +102 -102
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/indicators.py +395 -395
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/cache.py +30 -27
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/financial/base.py +27 -27
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/financial/eastmoney_direct.py +183 -183
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/financial/factory.py +46 -46
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/financial/sina.py +292 -292
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/historical/base.py +47 -47
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/historical/eastmoney.py +236 -236
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/historical/eastmoney_direct.py +79 -78
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/historical/factory.py +48 -48
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/historical/sina.py +250 -250
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/indicators/base.py +158 -158
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/indicators/factory.py +33 -33
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/indicators/simple.py +9 -8
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/indicators/talib.py +263 -263
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/info/base.py +25 -25
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/info/eastmoney.py +51 -51
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/info/factory.py +44 -44
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/insider/base.py +28 -28
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/insider/factory.py +44 -44
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/insider/xueqiu.py +110 -110
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/news/base.py +22 -22
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/news/eastmoney.py +43 -43
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/news/factory.py +44 -44
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/realtime/base.py +27 -27
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/realtime/eastmoney.py +53 -53
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/realtime/eastmoney_direct.py +36 -36
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/realtime/factory.py +71 -48
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/realtime/xueqiu.py +57 -57
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/utils.py +10 -10
- akshare_one-0.3.9/src/akshare_one/py.typed +0 -0
- akshare_one-0.3.7/LICENSE +0 -21
- akshare_one-0.3.7/akshare_one.egg-info/PKG-INFO +0 -74
- akshare_one-0.3.7/akshare_one.egg-info/SOURCES.txt +0 -48
- akshare_one-0.3.7/akshare_one.egg-info/dependency_links.txt +0 -1
- akshare_one-0.3.7/akshare_one.egg-info/requires.txt +0 -5
- akshare_one-0.3.7/akshare_one.egg-info/top_level.txt +0 -1
- akshare_one-0.3.7/setup.cfg +0 -4
- akshare_one-0.3.7/tests/test_financial.py +0 -107
- akshare_one-0.3.7/tests/test_indicators.py +0 -520
- akshare_one-0.3.7/tests/test_info.py +0 -82
- akshare_one-0.3.7/tests/test_insider.py +0 -66
- akshare_one-0.3.7/tests/test_news.py +0 -69
- akshare_one-0.3.7/tests/test_stock.py +0 -200
- {akshare_one-0.3.7 → akshare_one-0.3.9/src}/akshare_one/modules/indicators/__init__.py +0 -0
@@ -1,74 +1,72 @@
|
|
1
|
-
Metadata-Version: 2.4
|
2
|
-
Name: akshare-one
|
3
|
-
Version: 0.3.
|
4
|
-
Summary: Standardized interface for Chinese financial market data, built on AKShare with unified data formats and simplified APIs
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
Requires-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
<div
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
-
|
30
|
-
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
|
37
|
-
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
```
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
https://zwldarren.github.io/akshare-one/
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: akshare-one
|
3
|
+
Version: 0.3.9
|
4
|
+
Summary: Standardized interface for Chinese financial market data, built on AKShare with unified data formats and simplified APIs
|
5
|
+
Keywords: akshare,financial-data,stock-data,quant
|
6
|
+
License-Expression: MIT
|
7
|
+
Requires-Dist: akshare>=1.17.38
|
8
|
+
Requires-Dist: cachetools>=5.5.2
|
9
|
+
Requires-Dist: ta-lib>=0.6.4 ; extra == 'talib'
|
10
|
+
Requires-Python: >=3.10
|
11
|
+
Project-URL: Homepage, https://github.com/zwldarren/akshare-one
|
12
|
+
Project-URL: Repository, https://github.com/zwldarren/akshare-one.git
|
13
|
+
Provides-Extra: talib
|
14
|
+
Description-Content-Type: text/markdown
|
15
|
+
|
16
|
+
<div align="center">
|
17
|
+
<h1>AKShare One</h1>
|
18
|
+
<div>
|
19
|
+
<a href="README_zh.md">中文</a> | <strong>English</strong>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
**AKShare One** is a data interface for obtaining Chinese A-shares, based on [AKShare](https://github.com/akfamily/akshare). It aims to simplify AKShare's usage and unify input/output formats from different data sources, making it easier to pass data to LLM.
|
24
|
+
|
25
|
+
## ✨ Features
|
26
|
+
|
27
|
+
- 📊 Unified stock code formats across data sources
|
28
|
+
- 🏗️ Standardized return data structures
|
29
|
+
- 🛠️ Simplified API parameter design
|
30
|
+
- ⏱️ Automatic timestamp and adjustment handling
|
31
|
+
|
32
|
+
## 🚀 Core Features
|
33
|
+
|
34
|
+
| Function | Interface |
|
35
|
+
|------|------|
|
36
|
+
| Historical data | `get_hist_data` |
|
37
|
+
| Real-time quotes | `get_realtime_data` |
|
38
|
+
| Stock news | `get_news_data` |
|
39
|
+
| Financial data | `get_balance_sheet`/`get_income_statement`/`get_cash_flow` |
|
40
|
+
| Internal transactions | `get_inner_trade_data` |
|
41
|
+
| Basic stock info | `get_basic_info` |
|
42
|
+
| Financial metrics | `get_financial_metrics` |
|
43
|
+
| Technical indicators | See [indicators.py](akshare-one/indicators.py) |
|
44
|
+
|
45
|
+
## 📦 Quick Installation
|
46
|
+
|
47
|
+
```bash
|
48
|
+
pip install akshare-one
|
49
|
+
```
|
50
|
+
|
51
|
+
## 💻 Usage Example
|
52
|
+
|
53
|
+
```python
|
54
|
+
from akshare_one import get_hist_data
|
55
|
+
from akshare_one.indicators import get_sma
|
56
|
+
|
57
|
+
# Get historical data
|
58
|
+
df = get_hist_data(
|
59
|
+
symbol="600000",
|
60
|
+
interval="day",
|
61
|
+
adjust="hfq"
|
62
|
+
)
|
63
|
+
|
64
|
+
# Calculate 20-day Simple Moving Average
|
65
|
+
df_sma = get_sma(df, window=20)
|
66
|
+
```
|
67
|
+
|
68
|
+
## 📚 Documentation
|
69
|
+
|
70
|
+
Full API documentation is now available on GitHub Pages:
|
71
|
+
|
72
|
+
https://zwldarren.github.io/akshare-one/
|
@@ -1,57 +1,57 @@
|
|
1
|
-
<div align="center">
|
2
|
-
<h1>AKShare One</h1>
|
3
|
-
<div>
|
4
|
-
<a href="README_zh.md">中文</a> | <strong>English</strong>
|
5
|
-
</div>
|
6
|
-
</div>
|
7
|
-
|
8
|
-
**AKShare One** is a data interface for obtaining Chinese A-shares, based on [AKShare](https://github.com/akfamily/akshare). It aims to simplify AKShare's usage and unify input/output formats from different data sources, making it easier to pass data to LLM.
|
9
|
-
|
10
|
-
## ✨ Features
|
11
|
-
|
12
|
-
- 📊 Unified stock code formats across data sources
|
13
|
-
- 🏗️ Standardized return data structures
|
14
|
-
- 🛠️ Simplified API parameter design
|
15
|
-
- ⏱️ Automatic timestamp and adjustment handling
|
16
|
-
|
17
|
-
## 🚀 Core Features
|
18
|
-
|
19
|
-
| Function | Interface |
|
20
|
-
|------|------|
|
21
|
-
| Historical data | `get_hist_data` |
|
22
|
-
| Real-time quotes | `get_realtime_data` |
|
23
|
-
| Stock news | `get_news_data` |
|
24
|
-
| Financial data | `get_balance_sheet`/`get_income_statement`/`get_cash_flow` |
|
25
|
-
| Internal transactions | `get_inner_trade_data` |
|
26
|
-
| Basic stock info | `get_basic_info` |
|
27
|
-
| Financial metrics | `get_financial_metrics` |
|
28
|
-
| Technical indicators | See [indicators.py](akshare-one/indicators.py) |
|
29
|
-
|
30
|
-
## 📦 Quick Installation
|
31
|
-
|
32
|
-
```bash
|
33
|
-
pip install akshare-one
|
34
|
-
```
|
35
|
-
|
36
|
-
## 💻 Usage Example
|
37
|
-
|
38
|
-
```python
|
39
|
-
from akshare_one import get_hist_data
|
40
|
-
from akshare_one.indicators import get_sma
|
41
|
-
|
42
|
-
# Get historical data
|
43
|
-
df = get_hist_data(
|
44
|
-
symbol="600000",
|
45
|
-
interval="day",
|
46
|
-
adjust="hfq"
|
47
|
-
)
|
48
|
-
|
49
|
-
# Calculate 20-day Simple Moving Average
|
50
|
-
df_sma = get_sma(df, window=20)
|
51
|
-
```
|
52
|
-
|
53
|
-
## 📚 Documentation
|
54
|
-
|
55
|
-
Full API documentation is now available on GitHub Pages:
|
56
|
-
|
57
|
-
https://zwldarren.github.io/akshare-one/
|
1
|
+
<div align="center">
|
2
|
+
<h1>AKShare One</h1>
|
3
|
+
<div>
|
4
|
+
<a href="README_zh.md">中文</a> | <strong>English</strong>
|
5
|
+
</div>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
**AKShare One** is a data interface for obtaining Chinese A-shares, based on [AKShare](https://github.com/akfamily/akshare). It aims to simplify AKShare's usage and unify input/output formats from different data sources, making it easier to pass data to LLM.
|
9
|
+
|
10
|
+
## ✨ Features
|
11
|
+
|
12
|
+
- 📊 Unified stock code formats across data sources
|
13
|
+
- 🏗️ Standardized return data structures
|
14
|
+
- 🛠️ Simplified API parameter design
|
15
|
+
- ⏱️ Automatic timestamp and adjustment handling
|
16
|
+
|
17
|
+
## 🚀 Core Features
|
18
|
+
|
19
|
+
| Function | Interface |
|
20
|
+
|------|------|
|
21
|
+
| Historical data | `get_hist_data` |
|
22
|
+
| Real-time quotes | `get_realtime_data` |
|
23
|
+
| Stock news | `get_news_data` |
|
24
|
+
| Financial data | `get_balance_sheet`/`get_income_statement`/`get_cash_flow` |
|
25
|
+
| Internal transactions | `get_inner_trade_data` |
|
26
|
+
| Basic stock info | `get_basic_info` |
|
27
|
+
| Financial metrics | `get_financial_metrics` |
|
28
|
+
| Technical indicators | See [indicators.py](akshare-one/indicators.py) |
|
29
|
+
|
30
|
+
## 📦 Quick Installation
|
31
|
+
|
32
|
+
```bash
|
33
|
+
pip install akshare-one
|
34
|
+
```
|
35
|
+
|
36
|
+
## 💻 Usage Example
|
37
|
+
|
38
|
+
```python
|
39
|
+
from akshare_one import get_hist_data
|
40
|
+
from akshare_one.indicators import get_sma
|
41
|
+
|
42
|
+
# Get historical data
|
43
|
+
df = get_hist_data(
|
44
|
+
symbol="600000",
|
45
|
+
interval="day",
|
46
|
+
adjust="hfq"
|
47
|
+
)
|
48
|
+
|
49
|
+
# Calculate 20-day Simple Moving Average
|
50
|
+
df_sma = get_sma(df, window=20)
|
51
|
+
```
|
52
|
+
|
53
|
+
## 📚 Documentation
|
54
|
+
|
55
|
+
Full API documentation is now available on GitHub Pages:
|
56
|
+
|
57
|
+
https://zwldarren.github.io/akshare-one/
|
@@ -1,39 +1,50 @@
|
|
1
|
-
[project]
|
2
|
-
name = "akshare-one"
|
3
|
-
version = "0.3.
|
4
|
-
description = "Standardized interface for Chinese financial market data, built on AKShare with unified data formats and simplified APIs"
|
5
|
-
readme = "README.md"
|
6
|
-
requires-python = ">=3.10"
|
7
|
-
dependencies = [
|
8
|
-
"akshare>=1.17.
|
9
|
-
"cachetools>=5.5.2",
|
10
|
-
]
|
11
|
-
license = "MIT"
|
12
|
-
keywords = ["akshare", "financial-data", "stock-data", "quant"]
|
13
|
-
|
14
|
-
[project.urls]
|
15
|
-
Homepage = "https://github.com/zwldarren/akshare-one"
|
16
|
-
Repository = "https://github.com/zwldarren/akshare-one.git"
|
17
|
-
|
18
|
-
[project.optional-dependencies]
|
19
|
-
talib = [
|
20
|
-
"ta-lib>=0.6.4",
|
21
|
-
]
|
22
|
-
|
23
|
-
[dependency-groups]
|
24
|
-
dev = [
|
25
|
-
"mkdocs-material>=9.6.15",
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
1
|
+
[project]
|
2
|
+
name = "akshare-one"
|
3
|
+
version = "0.3.9"
|
4
|
+
description = "Standardized interface for Chinese financial market data, built on AKShare with unified data formats and simplified APIs"
|
5
|
+
readme = "README.md"
|
6
|
+
requires-python = ">=3.10"
|
7
|
+
dependencies = [
|
8
|
+
"akshare>=1.17.38",
|
9
|
+
"cachetools>=5.5.2",
|
10
|
+
]
|
11
|
+
license = "MIT"
|
12
|
+
keywords = ["akshare", "financial-data", "stock-data", "quant"]
|
13
|
+
|
14
|
+
[project.urls]
|
15
|
+
Homepage = "https://github.com/zwldarren/akshare-one"
|
16
|
+
Repository = "https://github.com/zwldarren/akshare-one.git"
|
17
|
+
|
18
|
+
[project.optional-dependencies]
|
19
|
+
talib = [
|
20
|
+
"ta-lib>=0.6.4",
|
21
|
+
]
|
22
|
+
|
23
|
+
[dependency-groups]
|
24
|
+
dev = [
|
25
|
+
"mkdocs-material>=9.6.15",
|
26
|
+
"mypy>=1.17.1",
|
27
|
+
"pandas-stubs>=2.3.0.250703",
|
28
|
+
"pre-commit>=4.2.0",
|
29
|
+
"pytest>=8.4.1",
|
30
|
+
"pytest-cov>=6.2.1",
|
31
|
+
"ruff>=0.12.1",
|
32
|
+
"types-cachetools>=6.1.0.20250717",
|
33
|
+
"types-requests>=2.32.4.20250809",
|
34
|
+
]
|
35
|
+
|
36
|
+
[build-system]
|
37
|
+
requires = ["uv_build>=0.8.12,<0.9.0"]
|
38
|
+
build-backend = "uv_build"
|
39
|
+
|
40
|
+
[tool.pytest.ini_options]
|
41
|
+
testpaths = ["tests"]
|
42
|
+
python_files = "test_*.py"
|
43
|
+
python_functions = "test_*"
|
44
|
+
addopts = "-v --cov=akshare_one --cov-report=term-missing"
|
45
|
+
|
46
|
+
[tool.ruff]
|
47
|
+
line-length = 88
|
48
|
+
|
49
|
+
[tool.mypy]
|
50
|
+
strict = true
|