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.
- 📊 Unified stock code formats across data sources
- 🏗️ Standardized return data structures
- 🛠️ Simplified API parameter design
- ⏱️ Automatic timestamp and adjustment handling
| 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 |
| Futures data | get_futures_hist_data/get_futures_realtime_data |
| Options data | get_options_chain/get_options_realtime/get_options_hist |
| Internal transactions | get_inner_trade_data |
| Basic stock info | get_basic_info |
| Financial metrics | get_financial_metrics |
| Technical indicators | See indicators.py |
pip install akshare-onefrom 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)Full API documentation is now available on GitHub Pages: