基于东方财富数据库,支持自然语言查询金融数据,覆盖A港美、基金、债券等多种资产,含实时行情、公司信息、估值、财务报表等,可用于投资研究、交易复盘、市场监控、行业分析、信用研究、财报审计、资产配置等场景,适配机构与个人多元需求。返回结果包含数据说明及 xlsx 文件。Natural language query for financial data across all markets, including A-shares, ETFs, bonds, Hong Kong and US stocks, and funds. It provides L1/L2 data, financial indicators, company profiles and valuation metrics. Ideal for investment research, strategy backtesting, market monitoring and industry analysis. It meets the needs of diverse institutions and individuals.
EM_API_KEY。EM_API_KEY 由东方财富妙想服务(https://ai.eastmoney.com/mxClaw)签发,用于其接口鉴权。支持查询以下类型的结构化数据:
支持多实体、多指标、多时间范围的组合查询。受后端接口限制,单次查询必须遵循以下配额:
示例: “查询 A、B、C、D、E、F 六只股票的营收” -> 仅返回前五只。
Skill 执行后会输出以下文件:
xlsx 文件,用于承载结构化查询结果txt 文件,用于描述查询内容、结果含义及必要说明访问 https://ai.eastmoney.com/mxClaw 注册账号并获取API_KEY。
# macOS 添加到 ~/.zshrc,Linux 添加到 ~/.bashrc
export EM_API_KEY="your_api_key_here"
然后根据系统执行对应的命令:
macOS:
source ~/.zshrc
Linux:
source ~/.bashrc
pip3 install httpx pandas openpyxl --user
python3 {baseDir}/scripts/get_data.py --query "贵州茅台近期走势如何"