AKShare One
AKShare One is a data interface for obtaining Chinese A-shares, based on 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.
✨ Features
- 📊 Unified stock code formats across data sources
- 🏗️ Standardized return data structures
- 🛠️ Simplified API parameter design
- ⏱️ Automatic timestamp and adjustment handling
🚀 Core Features
| Function | Interface |
|---|---|
| Historical data | get_hist_data |
| Real-time quotes | get_realtime_data |
| Stock news | get_news_data |
| Financial data | get_balance_sheet/get_income_statement/get_cash_flow |
| Internal transactions | get_inner_trade_data |
| Basic stock info | get_basic_info |
| Financial metrics | get_financial_metrics |
| Technical indicators | See indicators.py |
📦 Quick Installation
pip install akshare-one
💻 Usage Example
from akshare_one import get_hist_data
from akshare_one.indicators import get_sma
# Get historical data
df = get_hist_data(
symbol="600000",
interval="day",
adjust="hfq"
)
# Calculate 20-day Simple Moving Average
df_sma = get_sma(df, window=20)
📚 Documentation
Full API documentation is now available on GitHub Pages:
Metadata
Release files for iflow-mcp-akshare-one 0.3.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iflow_mcp_akshare_one-0.3.15.tar.gz | 27.1 kB | Without provenance | Details for iflow_mcp_akshare_one-0.3.15.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iflow_mcp_akshare_one-0.3.15-py3-none-any.whl | Python 3 | none | any | Details for iflow_mcp_akshare_one-0.3.15-py3-none-any.whl |
Total release size: 71.9 kB
Security for iflow-mcp-akshare-one 0.3.15
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.