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