akshare-one 0.3.7__tar.gz → 0.3.8__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 (50) hide show
  1. {akshare_one-0.3.7 → akshare_one-0.3.8}/LICENSE +21 -21
  2. {akshare_one-0.3.7 → akshare_one-0.3.8}/PKG-INFO +74 -74
  3. {akshare_one-0.3.7 → akshare_one-0.3.8}/README.md +57 -57
  4. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/__init__.py +214 -214
  5. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/eastmoney/client.py +80 -80
  6. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/eastmoney/utils.py +102 -102
  7. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/indicators.py +395 -395
  8. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/cache.py +27 -27
  9. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/financial/base.py +27 -27
  10. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/financial/eastmoney_direct.py +183 -183
  11. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/financial/factory.py +46 -46
  12. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/financial/sina.py +292 -292
  13. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/historical/base.py +47 -47
  14. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/historical/eastmoney.py +236 -236
  15. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/historical/eastmoney_direct.py +78 -78
  16. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/historical/factory.py +48 -48
  17. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/historical/sina.py +250 -250
  18. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/indicators/base.py +158 -158
  19. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/indicators/factory.py +33 -33
  20. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/indicators/talib.py +263 -263
  21. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/info/base.py +25 -25
  22. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/info/eastmoney.py +51 -51
  23. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/info/factory.py +44 -44
  24. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/insider/base.py +28 -28
  25. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/insider/factory.py +44 -44
  26. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/insider/xueqiu.py +110 -110
  27. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/news/base.py +22 -22
  28. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/news/eastmoney.py +43 -43
  29. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/news/factory.py +44 -44
  30. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/realtime/base.py +27 -27
  31. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/realtime/eastmoney.py +53 -53
  32. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/realtime/eastmoney_direct.py +36 -36
  33. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/realtime/factory.py +48 -48
  34. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/realtime/xueqiu.py +57 -57
  35. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/utils.py +10 -10
  36. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one.egg-info/PKG-INFO +74 -74
  37. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one.egg-info/requires.txt +1 -1
  38. {akshare_one-0.3.7 → akshare_one-0.3.8}/pyproject.toml +39 -39
  39. {akshare_one-0.3.7 → akshare_one-0.3.8}/setup.cfg +4 -4
  40. {akshare_one-0.3.7 → akshare_one-0.3.8}/tests/test_financial.py +107 -107
  41. {akshare_one-0.3.7 → akshare_one-0.3.8}/tests/test_indicators.py +520 -520
  42. {akshare_one-0.3.7 → akshare_one-0.3.8}/tests/test_info.py +82 -82
  43. {akshare_one-0.3.7 → akshare_one-0.3.8}/tests/test_insider.py +66 -66
  44. {akshare_one-0.3.7 → akshare_one-0.3.8}/tests/test_news.py +69 -69
  45. {akshare_one-0.3.7 → akshare_one-0.3.8}/tests/test_stock.py +200 -200
  46. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/indicators/__init__.py +0 -0
  47. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one/modules/indicators/simple.py +0 -0
  48. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one.egg-info/SOURCES.txt +0 -0
  49. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one.egg-info/dependency_links.txt +0 -0
  50. {akshare_one-0.3.7 → akshare_one-0.3.8}/akshare_one.egg-info/top_level.txt +0 -0
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 zwldarren
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 zwldarren
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,74 +1,74 @@
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.8
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.31
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,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/