findata-toolkit-cn
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese金融数据工具包 — A股市场
Financial Data Toolkit — A-share Market
自包含的数据工具包,提供A股市场实时金融数据和定量计算。所有数据源免费,无需API密钥。
A self-contained data toolkit that provides real-time financial data and quantitative calculations for the A-share market. All data sources are free and no API key is required.
安装
Installation
安装依赖(一次性):
bash
pip install -r requirements.txtInstall dependencies (one-time):
bash
pip install -r requirements.txt可用工具
Available Tools
所有脚本位于 目录。从技能根目录运行。
scripts/All scripts are located in the directory. Run from the skill root directory.
scripts/1. A股数据 (scripts/stock_data.py
)
scripts/stock_data.py1. A-share Data (scripts/stock_data.py
)
scripts/stock_data.py通过 AKShare 获取A股基本面、行情、财务指标。
| 命令 | 用途 |
|---|---|
| 基本信息(贵州茅台) |
| 完整财务指标(估值、盈利、杠杆、增长) |
| 历史OHLCV行情 |
| 利润表、资产负债表、现金流量表 |
| 董监高增减持数据 |
| 北向资金流向(沪股通/深股通) |
| 批量筛选 |
Obtain A-share fundamentals, market quotes, and financial indicators via AKShare.
| Command | Purpose |
|---|---|
| Basic information (Kweichow Moutai) |
| Complete financial indicators (valuation, profitability, leverage, growth) |
| Historical OHLCV market quotes |
| Income statement, balance sheet, cash flow statement |
| Data on share increases/reductions by directors, supervisors and senior executives |
| Northbound capital flows (Shanghai Stock Connect/Shenzhen Stock Connect) |
| Batch screening |
2. 宏观数据 (scripts/macro_data.py
)
scripts/macro_data.py2. Macroeconomic Data (scripts/macro_data.py
)
scripts/macro_data.py通过 AKShare 获取中国宏观经济指标。
| 命令 | 用途 |
|---|---|
| 完整宏观仪表盘 |
| 利率数据(LPR、Shibor) |
| CPI/PPI数据 |
| PMI数据(制造业/非制造业) |
| 社会融资规模 + M2 |
| 经济周期阶段判断 |
Obtain Chinese macroeconomic indicators via AKShare.
| Command | Purpose |
|---|---|
| Complete macroeconomic dashboard |
| Interest rate data (LPR, Shibor) |
| CPI/PPI data |
| PMI data (manufacturing/non-manufacturing) |
| Social financing scale + M2 |
| Judgment of economic cycle stages |
数据来源
Data Sources
| 来源 | 数据内容 | API密钥 |
|---|---|---|
| AKShare | A股行情、财务数据、董监高交易、北向资金、宏观指标 | 无需 |
| Data Source | Data Content | API Key |
|---|---|---|
| AKShare | A-share market quotes, financial data, insider transactions by directors, supervisors and senior executives, northbound capital, macro indicators | Not required |
输出格式
Output Format
所有脚本以 JSON 输出到标准输出,便于解析。错误信息输出到标准错误。
All scripts output to standard output in JSON format for easy parsing. Error messages are output to standard error.
配置
Configuration
可选:编辑 自定义速率限制或添加付费数据源API密钥。
config/data_sources.yamlOptional: Edit to customize rate limits or add API keys for paid data sources.
config/data_sources.yaml