akshare-one 0.1.0__tar.gz → 0.1.1__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 (24) hide show
  1. akshare_one-0.1.1/PKG-INFO +66 -0
  2. akshare_one-0.1.1/README.md +51 -0
  3. {akshare_one-0.1.0 → akshare_one-0.1.1}/akshare_one/adapters/eastmoney.py +2 -4
  4. {akshare_one-0.1.0 → akshare_one-0.1.1}/akshare_one/stock.py +1 -1
  5. akshare_one-0.1.1/akshare_one.egg-info/PKG-INFO +66 -0
  6. akshare_one-0.1.1/pyproject.toml +16 -0
  7. akshare_one-0.1.0/PKG-INFO +0 -61
  8. akshare_one-0.1.0/README.md +0 -50
  9. akshare_one-0.1.0/akshare_one.egg-info/PKG-INFO +0 -61
  10. akshare_one-0.1.0/pyproject.toml +0 -10
  11. {akshare_one-0.1.0 → akshare_one-0.1.1}/LICENSE +0 -0
  12. {akshare_one-0.1.0 → akshare_one-0.1.1}/akshare_one/__init__.py +0 -0
  13. {akshare_one-0.1.0 → akshare_one-0.1.1}/akshare_one/adapters/__init__.py +0 -0
  14. {akshare_one-0.1.0 → akshare_one-0.1.1}/akshare_one/adapters/cache/cache.py +0 -0
  15. {akshare_one-0.1.0 → akshare_one-0.1.1}/akshare_one/adapters/sina.py +0 -0
  16. {akshare_one-0.1.0 → akshare_one-0.1.1}/akshare_one/adapters/xueqiu.py +0 -0
  17. {akshare_one-0.1.0 → akshare_one-0.1.1}/akshare_one/financial.py +0 -0
  18. {akshare_one-0.1.0 → akshare_one-0.1.1}/akshare_one/insider.py +0 -0
  19. {akshare_one-0.1.0 → akshare_one-0.1.1}/akshare_one/news.py +0 -0
  20. {akshare_one-0.1.0 → akshare_one-0.1.1}/akshare_one.egg-info/SOURCES.txt +0 -0
  21. {akshare_one-0.1.0 → akshare_one-0.1.1}/akshare_one.egg-info/dependency_links.txt +0 -0
  22. {akshare_one-0.1.0 → akshare_one-0.1.1}/akshare_one.egg-info/requires.txt +0 -0
  23. {akshare_one-0.1.0 → akshare_one-0.1.1}/akshare_one.egg-info/top_level.txt +0 -0
  24. {akshare_one-0.1.0 → akshare_one-0.1.1}/setup.cfg +0 -0
@@ -0,0 +1,66 @@
1
+ Metadata-Version: 2.4
2
+ Name: akshare-one
3
+ Version: 0.1.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.16.64
13
+ Requires-Dist: cachetools>=5.5.2
14
+ Dynamic: license-file
15
+
16
+ <div align="center">
17
+ <h1>AKShare One</h1>
18
+ <div>
19
+ <strong>English</strong> | <a href="README_zh.md">中文</a>
20
+ </div>
21
+ </div>
22
+
23
+ **AKShare One** is a standardized interface for Chinese financial market data, built as a wrapper around [AKShare](https://github.com/akfamily/akshare) to solve inconsistencies in input/output formats across different data sources.
24
+
25
+ ## ✨ Features
26
+
27
+ - 📊 Unified stock code formats across data sources
28
+ - 🏗️ Standardized return data structures
29
+ - 🛠️ Simplified API parameters
30
+ - ⏱️ Automatic timestamp and adjustment handling
31
+
32
+ ## 🚀 Core Features
33
+
34
+ | Feature | 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
+ | Insider trading | `get_inner_trade_data` |
41
+
42
+ ## 📦 Quick Installation
43
+
44
+ ```bash
45
+ pip install akshare-one
46
+ ```
47
+
48
+ ## 💻 Usage Example
49
+
50
+ ```python
51
+ from akshare_one import get_hist_data, get_realtime_data
52
+
53
+ # Get historical data
54
+ df_hist = get_hist_data(
55
+ symbol="600000",
56
+ interval="day",
57
+ adjust="hfq"
58
+ )
59
+
60
+ # Get real-time data
61
+ df_realtime = get_realtime_data(symbol="600000")
62
+ ```
63
+
64
+ ## 📚 Documentation
65
+
66
+ Detailed API reference: [docs/api.md](docs/api.md)
@@ -0,0 +1,51 @@
1
+ <div align="center">
2
+ <h1>AKShare One</h1>
3
+ <div>
4
+ <strong>English</strong> | <a href="README_zh.md">中文</a>
5
+ </div>
6
+ </div>
7
+
8
+ **AKShare One** is a standardized interface for Chinese financial market data, built as a wrapper around [AKShare](https://github.com/akfamily/akshare) to solve inconsistencies in input/output formats across different data sources.
9
+
10
+ ## ✨ Features
11
+
12
+ - 📊 Unified stock code formats across data sources
13
+ - 🏗️ Standardized return data structures
14
+ - 🛠️ Simplified API parameters
15
+ - ⏱️ Automatic timestamp and adjustment handling
16
+
17
+ ## 🚀 Core Features
18
+
19
+ | Feature | 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
+ | Insider trading | `get_inner_trade_data` |
26
+
27
+ ## 📦 Quick Installation
28
+
29
+ ```bash
30
+ pip install akshare-one
31
+ ```
32
+
33
+ ## 💻 Usage Example
34
+
35
+ ```python
36
+ from akshare_one import get_hist_data, get_realtime_data
37
+
38
+ # Get historical data
39
+ df_hist = get_hist_data(
40
+ symbol="600000",
41
+ interval="day",
42
+ adjust="hfq"
43
+ )
44
+
45
+ # Get real-time data
46
+ df_realtime = get_realtime_data(symbol="600000")
47
+ ```
48
+
49
+ ## 📚 Documentation
50
+
51
+ Detailed API reference: [docs/api.md](docs/api.md)
@@ -31,7 +31,7 @@ class EastMoneyAdapter:
31
31
 
32
32
  Args:
33
33
  symbol: Unified symbol format (e.g. '600000')
34
- interval: Time granularity ('second','minute','hour','day','week','month','year')
34
+ interval: Time granularity ('minute','hour','day','week','month','year')
35
35
  interval_multiplier: Interval multiplier (e.g. 5 for 5 minutes)
36
36
  start_date: Start date in YYYY-MM-DD format (will be converted to YYYYMMDD)
37
37
  end_date: End date in YYYY-MM-DD format (will be converted to YYYYMMDD)
@@ -42,9 +42,7 @@ class EastMoneyAdapter:
42
42
  """
43
43
  # Map standard interval to akshare supported periods
44
44
  interval = interval.lower()
45
- if interval == "second":
46
- raise ValueError("EastMoney does not support second-level data")
47
- elif interval == "minute":
45
+ if interval == "minute":
48
46
  if interval_multiplier < 1:
49
47
  raise ValueError("Minute interval multiplier must be >= 1")
50
48
 
@@ -21,7 +21,7 @@ def get_hist_data(
21
21
 
22
22
  Args:
23
23
  symbol: 股票代码 (e.g. '600000')
24
- interval: 时间间隔 ('second','minute','hour','day','week','month','year')
24
+ interval: 时间间隔 ('minute','hour','day','week','month','year')
25
25
  interval_multiplier: 时间间隔倍数 (e.g. 5 for 5 minutes)
26
26
  start_date: 开始日期 (YYYY-MM-DD)
27
27
  end_date: 结束日期 (YYYY-MM-DD)
@@ -0,0 +1,66 @@
1
+ Metadata-Version: 2.4
2
+ Name: akshare-one
3
+ Version: 0.1.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.16.64
13
+ Requires-Dist: cachetools>=5.5.2
14
+ Dynamic: license-file
15
+
16
+ <div align="center">
17
+ <h1>AKShare One</h1>
18
+ <div>
19
+ <strong>English</strong> | <a href="README_zh.md">中文</a>
20
+ </div>
21
+ </div>
22
+
23
+ **AKShare One** is a standardized interface for Chinese financial market data, built as a wrapper around [AKShare](https://github.com/akfamily/akshare) to solve inconsistencies in input/output formats across different data sources.
24
+
25
+ ## ✨ Features
26
+
27
+ - 📊 Unified stock code formats across data sources
28
+ - 🏗️ Standardized return data structures
29
+ - 🛠️ Simplified API parameters
30
+ - ⏱️ Automatic timestamp and adjustment handling
31
+
32
+ ## 🚀 Core Features
33
+
34
+ | Feature | 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
+ | Insider trading | `get_inner_trade_data` |
41
+
42
+ ## 📦 Quick Installation
43
+
44
+ ```bash
45
+ pip install akshare-one
46
+ ```
47
+
48
+ ## 💻 Usage Example
49
+
50
+ ```python
51
+ from akshare_one import get_hist_data, get_realtime_data
52
+
53
+ # Get historical data
54
+ df_hist = get_hist_data(
55
+ symbol="600000",
56
+ interval="day",
57
+ adjust="hfq"
58
+ )
59
+
60
+ # Get real-time data
61
+ df_realtime = get_realtime_data(symbol="600000")
62
+ ```
63
+
64
+ ## 📚 Documentation
65
+
66
+ Detailed API reference: [docs/api.md](docs/api.md)
@@ -0,0 +1,16 @@
1
+ [project]
2
+ name = "akshare-one"
3
+ version = "0.1.1"
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.12"
7
+ dependencies = [
8
+ "akshare>=1.16.64",
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"
@@ -1,61 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: akshare-one
3
- Version: 0.1.0
4
- Summary: Add your description here
5
- Requires-Python: >=3.12
6
- Description-Content-Type: text/markdown
7
- License-File: LICENSE
8
- Requires-Dist: akshare>=1.16.64
9
- Requires-Dist: cachetools>=5.5.2
10
- Dynamic: license-file
11
-
12
- # AKShare One
13
-
14
- **AKShare One** 是一个标准化中国金融市场数据接口,基于 [AKShare](https://github.com/akfamily/akshare) 二次封装,解决AKShare多数据源输入输出不统一的问题。
15
-
16
- ## 项目背景
17
-
18
- AKShare提供了丰富的中国金融市场数据,但不同数据源的:
19
- - 股票代码格式不统一(如东方财富和新浪使用不同格式)
20
- - 返回数据结构不一致
21
- - 参数命名和用法有差异
22
-
23
- AKShare One希望通过统一封装,提供:
24
- - 标准化的股票代码格式
25
- - 一致的数据返回结构
26
- - 简化的API参数
27
-
28
- ## 核心功能
29
-
30
- ### 目前仅实现了以下功能:
31
- - 历史数据 (`get_hist_data`)
32
- - 实时行情 (`get_realtime_data`)
33
- - 个股新闻 (`get_news_data`)
34
- - 财务数据 (资产负债表/利润表/现金流量表)
35
- - 内部交易 (`get_inner_trade_data`)
36
-
37
- ### 标准化处理
38
- - 统一时间戳为UTC
39
- - 自动处理复权数据
40
- - 清理异常值和缺失数据
41
- - 统一列名和数据类型
42
-
43
- ## 快速开始
44
-
45
- 使用示例:
46
- ```python
47
- from akshare_one import get_hist_data, get_realtime_data
48
-
49
- # 获取历史数据
50
- df_hist = get_hist_data(
51
- symbol="600000",
52
- interval="day",
53
- adjust="hfq"
54
- )
55
-
56
- # 获取实时数据
57
- df_realtime = get_realtime_data(symbol="600000")
58
- ```
59
-
60
- ## API文档
61
- 详细API说明请参考 [docs/api.md](docs/api.md)
@@ -1,50 +0,0 @@
1
- # AKShare One
2
-
3
- **AKShare One** 是一个标准化中国金融市场数据接口,基于 [AKShare](https://github.com/akfamily/akshare) 二次封装,解决AKShare多数据源输入输出不统一的问题。
4
-
5
- ## 项目背景
6
-
7
- AKShare提供了丰富的中国金融市场数据,但不同数据源的:
8
- - 股票代码格式不统一(如东方财富和新浪使用不同格式)
9
- - 返回数据结构不一致
10
- - 参数命名和用法有差异
11
-
12
- AKShare One希望通过统一封装,提供:
13
- - 标准化的股票代码格式
14
- - 一致的数据返回结构
15
- - 简化的API参数
16
-
17
- ## 核心功能
18
-
19
- ### 目前仅实现了以下功能:
20
- - 历史数据 (`get_hist_data`)
21
- - 实时行情 (`get_realtime_data`)
22
- - 个股新闻 (`get_news_data`)
23
- - 财务数据 (资产负债表/利润表/现金流量表)
24
- - 内部交易 (`get_inner_trade_data`)
25
-
26
- ### 标准化处理
27
- - 统一时间戳为UTC
28
- - 自动处理复权数据
29
- - 清理异常值和缺失数据
30
- - 统一列名和数据类型
31
-
32
- ## 快速开始
33
-
34
- 使用示例:
35
- ```python
36
- from akshare_one import get_hist_data, get_realtime_data
37
-
38
- # 获取历史数据
39
- df_hist = get_hist_data(
40
- symbol="600000",
41
- interval="day",
42
- adjust="hfq"
43
- )
44
-
45
- # 获取实时数据
46
- df_realtime = get_realtime_data(symbol="600000")
47
- ```
48
-
49
- ## API文档
50
- 详细API说明请参考 [docs/api.md](docs/api.md)
@@ -1,61 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: akshare-one
3
- Version: 0.1.0
4
- Summary: Add your description here
5
- Requires-Python: >=3.12
6
- Description-Content-Type: text/markdown
7
- License-File: LICENSE
8
- Requires-Dist: akshare>=1.16.64
9
- Requires-Dist: cachetools>=5.5.2
10
- Dynamic: license-file
11
-
12
- # AKShare One
13
-
14
- **AKShare One** 是一个标准化中国金融市场数据接口,基于 [AKShare](https://github.com/akfamily/akshare) 二次封装,解决AKShare多数据源输入输出不统一的问题。
15
-
16
- ## 项目背景
17
-
18
- AKShare提供了丰富的中国金融市场数据,但不同数据源的:
19
- - 股票代码格式不统一(如东方财富和新浪使用不同格式)
20
- - 返回数据结构不一致
21
- - 参数命名和用法有差异
22
-
23
- AKShare One希望通过统一封装,提供:
24
- - 标准化的股票代码格式
25
- - 一致的数据返回结构
26
- - 简化的API参数
27
-
28
- ## 核心功能
29
-
30
- ### 目前仅实现了以下功能:
31
- - 历史数据 (`get_hist_data`)
32
- - 实时行情 (`get_realtime_data`)
33
- - 个股新闻 (`get_news_data`)
34
- - 财务数据 (资产负债表/利润表/现金流量表)
35
- - 内部交易 (`get_inner_trade_data`)
36
-
37
- ### 标准化处理
38
- - 统一时间戳为UTC
39
- - 自动处理复权数据
40
- - 清理异常值和缺失数据
41
- - 统一列名和数据类型
42
-
43
- ## 快速开始
44
-
45
- 使用示例:
46
- ```python
47
- from akshare_one import get_hist_data, get_realtime_data
48
-
49
- # 获取历史数据
50
- df_hist = get_hist_data(
51
- symbol="600000",
52
- interval="day",
53
- adjust="hfq"
54
- )
55
-
56
- # 获取实时数据
57
- df_realtime = get_realtime_data(symbol="600000")
58
- ```
59
-
60
- ## API文档
61
- 详细API说明请参考 [docs/api.md](docs/api.md)
@@ -1,10 +0,0 @@
1
- [project]
2
- name = "akshare-one"
3
- version = "0.1.0"
4
- description = "Add your description here"
5
- readme = "README.md"
6
- requires-python = ">=3.12"
7
- dependencies = [
8
- "akshare>=1.16.64",
9
- "cachetools>=5.5.2",
10
- ]
File without changes
File without changes