A self-contained data toolkit that provides real-time financial data and quantitative calculations for the A-share market. All data sourcesfree,no API key required。
Installation
Install dependencies (one-time):
pip install -r requirements.txt
Available Tools
All scripts are located in the scripts/ directory. Run from the skill root directory.
1. A-share Data (scripts/stock_data.py)
Obtain A-share fundamentals, quotes, and financial indicators via AKShare.
| Command | Purpose |
|---|---|
python scripts/stock_data.py 600519 |
Basic information (Kweichow Moutai) |
python scripts/stock_data.py 600519 --metrics |
Complete financial indicators (valuation, profitability, leverage, growth) |
python scripts/stock_data.py 600519 --history |
Historical OHLCV quotes |
python scripts/stock_data.py 600519 --financials |
Income statement, balance sheet, cash flow statement |
python scripts/stock_data.py 600519 --insider |
Directors' and supervisors' share increase and decrease data |
python scripts/stock_data.py --northbound |
Northbound capital flows (Shanghai Stock Connect/Shenzhen Stock Connect) |
python scripts/stock_data.py 600519 000858 --screen |
Batch screening |
2. Macro Data (scripts/macro_data.py)
Obtain China macroeconomic indicators via AKShare.
| Command | Purpose |
|---|---|
python scripts/macro_data.py --dashboard |
Complete macro dashboard |
python scripts/macro_data.py --rates |
Interest rate data (LPR, Shibor) |
python scripts/macro_data.py --inflation |
CPI/PPI data |
python scripts/macro_data.py --pmi |
PMI data (manufacturing/non-manufacturing) |
python scripts/macro_data.py --social-financing |
Aggregate financing to the real economy + M2 |
python scripts/macro_data.py --cycle |
Economic cycle stage assessment |
Data Sources
| Source | Data Content | API Key |
|---|---|---|
| AKShare | A-share quotes, financial data, directors' and supervisors' transactions, northbound capital, macroeconomic indicators | Not required |
Output Format
All scripts output to standard output as JSON , for easy parsing. Error messages are output to standard error.
Configuration
Optional: edit config/data_sources.yaml to customize rate limits or add paid data source API keys.