akshare-one 0.3.0__py3-none-any.whl → 0.3.1__py3-none-any.whl

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 (39) hide show
  1. akshare_one/__init__.py +31 -31
  2. akshare_one/financial.py +46 -46
  3. akshare_one/indicators.py +395 -395
  4. akshare_one/insider.py +33 -33
  5. akshare_one/modules/cache.py +9 -9
  6. akshare_one/modules/eastmoney/client.py +88 -88
  7. akshare_one/modules/eastmoney/utils.py +104 -104
  8. akshare_one/modules/financial/base.py +22 -22
  9. akshare_one/modules/financial/factory.py +44 -44
  10. akshare_one/modules/financial/sina.py +273 -273
  11. akshare_one/modules/historical/base.py +47 -47
  12. akshare_one/modules/historical/eastmoney.py +241 -241
  13. akshare_one/modules/historical/eastmoney_direct.py +79 -79
  14. akshare_one/modules/historical/factory.py +48 -48
  15. akshare_one/modules/historical/sina.py +254 -218
  16. akshare_one/modules/indicators/base.py +158 -158
  17. akshare_one/modules/indicators/factory.py +33 -33
  18. akshare_one/modules/indicators/simple.py +230 -230
  19. akshare_one/modules/indicators/talib.py +263 -263
  20. akshare_one/modules/insider/base.py +28 -28
  21. akshare_one/modules/insider/factory.py +44 -44
  22. akshare_one/modules/insider/xueqiu.py +115 -115
  23. akshare_one/modules/news/base.py +22 -22
  24. akshare_one/modules/news/eastmoney.py +47 -47
  25. akshare_one/modules/news/factory.py +44 -44
  26. akshare_one/modules/realtime/base.py +27 -27
  27. akshare_one/modules/realtime/eastmoney.py +57 -57
  28. akshare_one/modules/realtime/eastmoney_direct.py +37 -37
  29. akshare_one/modules/realtime/factory.py +48 -48
  30. akshare_one/modules/realtime/xueqiu.py +60 -60
  31. akshare_one/modules/utils.py +10 -10
  32. akshare_one/news.py +27 -27
  33. akshare_one/stock.py +78 -78
  34. {akshare_one-0.3.0.dist-info → akshare_one-0.3.1.dist-info}/METADATA +70 -70
  35. akshare_one-0.3.1.dist-info/RECORD +39 -0
  36. {akshare_one-0.3.0.dist-info → akshare_one-0.3.1.dist-info}/licenses/LICENSE +21 -21
  37. akshare_one-0.3.0.dist-info/RECORD +0 -39
  38. {akshare_one-0.3.0.dist-info → akshare_one-0.3.1.dist-info}/WHEEL +0 -0
  39. {akshare_one-0.3.0.dist-info → akshare_one-0.3.1.dist-info}/top_level.txt +0 -0
@@ -1,70 +1,70 @@
1
- Metadata-Version: 2.4
2
- Name: akshare-one
3
- Version: 0.3.0
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.12
10
- Description-Content-Type: text/markdown
11
- License-File: LICENSE
12
- Requires-Dist: akshare>=1.17.8
13
- Requires-Dist: cachetools>=6.1.0
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
- | 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
- Detailed API reference: [docs/api.md](docs/api.md)
1
+ Metadata-Version: 2.4
2
+ Name: akshare-one
3
+ Version: 0.3.1
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.12
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Requires-Dist: akshare>=1.17.15
13
+ Requires-Dist: cachetools>=6.1.0
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
+ | 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
+ Detailed API reference: [docs/api.md](docs/api.md)
@@ -0,0 +1,39 @@
1
+ akshare_one/__init__.py,sha256=M4eXCnBzGqa5FihT-q7DHaluTvidnqwVF7AgPgCikKU,878
2
+ akshare_one/financial.py,sha256=XAsonRzGK8akKtW2Q7LUrew4OFRnRAfZm0nw0JY73Jc,1426
3
+ akshare_one/indicators.py,sha256=CltxhMoy6qbiQKIq2veTQ6xsf4_q7Ir3Zw8IfHyr4FI,12138
4
+ akshare_one/insider.py,sha256=fM6wvlLSGm7a2NkQFvxEK2PkhN5WudrO-V0BboVz2Bo,1092
5
+ akshare_one/news.py,sha256=yrYeCaKTgCGP-TSyOfOou9gMw8185qiWrg380fD9-f8,669
6
+ akshare_one/stock.py,sha256=kldPmfggrgUH8pEcU8HGR5ofsxzYXJiUqj8GXCM5pBk,2266
7
+ akshare_one/modules/cache.py,sha256=47A80Xtfr4gkKvEfBQrT8Dz8hNFR769rBa2gU6ew25s,373
8
+ akshare_one/modules/utils.py,sha256=H4nrGf8m4_ezTiW5-OcNPxpV-neTYfffEfaOLDFLY9Y,323
9
+ akshare_one/modules/eastmoney/client.py,sha256=AprWA4SxX_B4RzvG6B0_ciOMYaoRFcmIwHGRkEtvfHQ,3118
10
+ akshare_one/modules/eastmoney/utils.py,sha256=KzT0x6dF8y6wgc9Wzewr450NCee1i_dK2EhocBJQc5g,2896
11
+ akshare_one/modules/financial/base.py,sha256=qj_XeujG7Tn2oO1niuIG4s7lMH3xg5zERDbcj75DUnU,536
12
+ akshare_one/modules/financial/factory.py,sha256=GqzFp6LoHWj7t5VwtZJkLFxBuaAW_0b__bduBrmlcOg,1301
13
+ akshare_one/modules/financial/sina.py,sha256=Hf6fVeN0gClS9GU2N9Hg6QJ1f8X4mecpEA6KWVgiwTc,10914
14
+ akshare_one/modules/historical/base.py,sha256=EkSNFk9bV1zbbuuIvI5Yk3r6s0EsomZJ4VFROYe4prU,1245
15
+ akshare_one/modules/historical/eastmoney.py,sha256=2bYXobIwlrd5vG8pHlUZVE6edjQqn8AEGCVFGcWCCKk,8248
16
+ akshare_one/modules/historical/eastmoney_direct.py,sha256=QRgGrY6NhAB2NAWCh_H3G0q2wKnSEnYQBRjMq-GjXGM,2814
17
+ akshare_one/modules/historical/factory.py,sha256=K1JwhScNPvuP-wR33C5VnosJYXJ3u1RykJuaMU6-3ls,1500
18
+ akshare_one/modules/historical/sina.py,sha256=D6xYpwoV5aNDsTLqUphnXye_2k7TVZZTdfvoLFu70Ds,8685
19
+ akshare_one/modules/indicators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
+ akshare_one/modules/indicators/base.py,sha256=oNfP2p1ZO-jdV9Ay7CECO7LrFCGs9y3Xxg7ewg9uAZ0,4218
21
+ akshare_one/modules/indicators/factory.py,sha256=FDERSNI7r22qN06PYzyzkB5fyhXa2f_v1Yj-A_e6dFc,988
22
+ akshare_one/modules/indicators/simple.py,sha256=8GdDteLchQv-ON6lEYlq57u3ryPaHAOo-RksmLcze3s,9112
23
+ akshare_one/modules/indicators/talib.py,sha256=w7C-21TZfiLcVA_WgE7aQ1nYVzbyhb99r5rzKS7a6aU,10510
24
+ akshare_one/modules/insider/base.py,sha256=xOhBDzMtZd1DutsHaJWe931P17fgW7dlivo1vz5ZflI,949
25
+ akshare_one/modules/insider/factory.py,sha256=om51vX-GTXknpptZGvmDD9m10FfgEVmy402xZ3bBsNM,1280
26
+ akshare_one/modules/insider/xueqiu.py,sha256=UnvyLyfpz_OJCcPjGEaD_tm8YEpOag7H1cpel0rVhEU,3994
27
+ akshare_one/modules/news/base.py,sha256=yrBZf1q1QwJkCXygNmeLIEjvcqm1iti63tjb3s40L_4,559
28
+ akshare_one/modules/news/eastmoney.py,sha256=efVT4plk03s8TbSfhAhRLWgMLlR5G_2G0xGZTQgSxmY,1333
29
+ akshare_one/modules/news/factory.py,sha256=Em6c7m46K760iwIX3GZ15HdFu7pXT2w-n4QsjwHezjY,1264
30
+ akshare_one/modules/realtime/base.py,sha256=XtD-4L1pCrMtfbwtZR7tP_BhWB_eMWtpQr89rAdX7P4,702
31
+ akshare_one/modules/realtime/eastmoney.py,sha256=7IR35dwPr5xj0ErdBajYwyBivEoi55wd1Q5c0DEjUAI,1650
32
+ akshare_one/modules/realtime/eastmoney_direct.py,sha256=yFH1fNcZRieyxFN5YzX7Gcw5-CR-dUEgUHSeR0NPD0g,1238
33
+ akshare_one/modules/realtime/factory.py,sha256=qHdCDY6dA7ck4JgK3yUDqcne9WrruAA6XzbRT69kT2w,1480
34
+ akshare_one/modules/realtime/xueqiu.py,sha256=LKu0fW0EMt3c2m1w2kqBbEt9s2TcHUeBFpbFtueJgbU,2241
35
+ akshare_one-0.3.1.dist-info/licenses/LICENSE,sha256=Gg6A1GNSJCZWQ73aHJ7TXOa0i8RQ3FejZCTZ6Db07cU,1066
36
+ akshare_one-0.3.1.dist-info/METADATA,sha256=rJ0LO-mZZcvL78bqVVVhL7U8FAS7nSeNn-V60FuDYRg,2062
37
+ akshare_one-0.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
+ akshare_one-0.3.1.dist-info/top_level.txt,sha256=kNiucyLVAGa89wmUSpXbBLWD7pF_RuahuiaOfLHZSyw,12
39
+ akshare_one-0.3.1.dist-info/RECORD,,
@@ -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,39 +0,0 @@
1
- akshare_one/__init__.py,sha256=W8FpPEXHDYu6JKPuAXylA3fpFt_axj3vNQC_kevjmY8,909
2
- akshare_one/financial.py,sha256=uCTFpcoeCxDo1iwewGPq9_TppwoHXBJFT4QlMgFOgRQ,1472
3
- akshare_one/indicators.py,sha256=x3Amff9CG_GvQpA-sqGfFwEAIvaaXlBxDfzTxD05taQ,12533
4
- akshare_one/insider.py,sha256=ugr7TXjZvHkaQ-3cNmXeo9LCUqfmcbIwQx-gs-RItAA,1125
5
- akshare_one/news.py,sha256=Pqap-23VCosG9vf70eEeFAC4O0emS-CORHjwkuDuoUA,696
6
- akshare_one/stock.py,sha256=VFMNn3Sqa2P9dKZueOa8ekqbxo4jc08iXS94B8eClMo,2344
7
- akshare_one/modules/cache.py,sha256=LBOfMQE9-Mr49GRS7d0dATGdMZCZcQWiY41p4GUI2DA,382
8
- akshare_one/modules/utils.py,sha256=msHqsjWSRULbX-3Bnit1p26a4a7MOEuNfkPSaECXr4k,333
9
- akshare_one/modules/eastmoney/client.py,sha256=C320WKr_9dpmtQ_KZY5NTUkuV0kCDU2Btitj6YABIvU,3192
10
- akshare_one/modules/eastmoney/utils.py,sha256=0hs1kE51kZs3A9cOK448w5K8YKHaKZi0WWgtGZHVPGc,3000
11
- akshare_one/modules/financial/base.py,sha256=D-leZAXdKe5srbB4rrxdjNc8TWk2bflt7qtL_KBddY0,558
12
- akshare_one/modules/financial/factory.py,sha256=Lv66xSmmQyE8jZZvnYcgl_oZ0VUmBISN2yegsN38_oM,1345
13
- akshare_one/modules/financial/sina.py,sha256=xKR8RqePfi_vFBntet7e5xjvYHolVrXfOJHRK4x54b4,11187
14
- akshare_one/modules/historical/base.py,sha256=4jdHW99-5U1mzv0WPopIkxeh20yYUDrNFzn7xazfwZU,1292
15
- akshare_one/modules/historical/eastmoney.py,sha256=VbOaf0zXxuGmmm60x4FMh-9T5N9mYTUGmG1suMFUPfU,8489
16
- akshare_one/modules/historical/eastmoney_direct.py,sha256=EF5AhViBwdNywqZnJYacRrdw4Up0gbuUr7RgssK7rpw,2893
17
- akshare_one/modules/historical/factory.py,sha256=qfMod5HSV-itE-i1ludIp0w8Zq7Vjp2LPomajVd5Kjc,1548
18
- akshare_one/modules/historical/sina.py,sha256=lKCwBrGzz8yZYQGbLFxUy6EHXGJHND7pCbM_sZRQMaM,7467
19
- akshare_one/modules/indicators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
- akshare_one/modules/indicators/base.py,sha256=DhFivpVIUIkdIv24U2WoOy1GCDySxsw0tD0-rBRe5Lc,4376
21
- akshare_one/modules/indicators/factory.py,sha256=pKx57oej_L0Lz3kkXwzVievKpOYph0T_Y7fzSwO3Zd4,1021
22
- akshare_one/modules/indicators/simple.py,sha256=vAqE3v9HYpW-Sy6KsG9oV5fppWchQTxtz1M_508sQtY,9342
23
- akshare_one/modules/indicators/talib.py,sha256=w0KpV-BXVxU0LmWs_EbXJUFgo9dbMeUQijjJMkjtWtU,10773
24
- akshare_one/modules/insider/base.py,sha256=NE45w-B9sQ2AoUSSKNPU9U6wPHK4fiLV5Zgj_byrBMQ,977
25
- akshare_one/modules/insider/factory.py,sha256=32bueJA3E8yCZc0v5EAen_48RZ23yojYzpzaZyQ6WnA,1324
26
- akshare_one/modules/insider/xueqiu.py,sha256=ztvfIw8_WARZfZY4NAmIzLoZgl7RBM2GuwKf2uZi3Hw,4086
27
- akshare_one/modules/news/base.py,sha256=D5BDtRQ9vdi1Gj-ikbtjAaCAbimW6mCEhRo_NJTmqN4,581
28
- akshare_one/modules/news/eastmoney.py,sha256=2gPEnzQ347MJMXAUsxxu8MnizvCrfGPse9V83wfCsXE,1380
29
- akshare_one/modules/news/factory.py,sha256=3FMkNBpYF7l-v2NHHR5TzbvklQNzJ-R_XzG8AlRjJcg,1308
30
- akshare_one/modules/realtime/base.py,sha256=eYicSs7E4qmcpQ-8TnbfmJvsK0VQoezVK7Zobqh5xPk,729
31
- akshare_one/modules/realtime/eastmoney.py,sha256=IRAPokCm_-aOn16w5_dkbKVjdYcqL-y7GSHrSgOjT2E,1707
32
- akshare_one/modules/realtime/eastmoney_direct.py,sha256=HiHrhsTcDTswMg4b7JSUXHLtf-oYziWxLGXLhFJ2pYo,1275
33
- akshare_one/modules/realtime/factory.py,sha256=_7jBDgqWqkt5xTTT1SpZoUHM9IpMRpcUQeyyCglM5z0,1528
34
- akshare_one/modules/realtime/xueqiu.py,sha256=j_cjJZD0fTva_jgXKeQAJSFVHKJHb5zMu3Crf_8zLs0,2301
35
- akshare_one-0.3.0.dist-info/licenses/LICENSE,sha256=3bqxoD7aU4QS7kpNtQmRd4MikxXe6Gtm_DrojyFHGAc,1087
36
- akshare_one-0.3.0.dist-info/METADATA,sha256=FndXexmkJ23O7ApSpDTXZZdyHYEXKRW0ZLm-Ih_mRBE,2131
37
- akshare_one-0.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
- akshare_one-0.3.0.dist-info/top_level.txt,sha256=kNiucyLVAGa89wmUSpXbBLWD7pF_RuahuiaOfLHZSyw,12
39
- akshare_one-0.3.0.dist-info/RECORD,,