README.md

January 27, 2026 · View on GitHub

AKShare One

中文 | English

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

FunctionInterface
Historical dataget_hist_data
Real-time quotesget_realtime_data
Stock newsget_news_data
Financial dataget_balance_sheet/get_income_statement/get_cash_flow
Futures dataget_futures_hist_data/get_futures_realtime_data
Options dataget_options_chain/get_options_realtime/get_options_hist
Internal transactionsget_inner_trade_data
Basic stock infoget_basic_info
Financial metricsget_financial_metrics
Technical indicatorsSee 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:

https://zwldarren.github.io/akshare-one/