Standardized interface for Chinese financial market data, built on AKShare with unified data formats and simplified APIs
Project description
AKShare Two
Note: This project is forked from AKShare One but uses
akshare-twoas the package name for personal use and distribution.
AKShare Two is a direct API data interface for obtaining Chinese A-shares. It provides direct connections to data sources (EastMoney, Sina, Xueqiu) without depending on the AKShare library, offering better control and avoiding dependency conflicts.
✨ 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-two
💻 Usage Example
from akshare_two import get_hist_data
from akshare_two.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:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters