🛠️ 如辉AI数据平台 API文档

面向AI Agent和量化开发者的中国金融数据智能层

快速上手 (3步)

1. 获取API Key: rh_dp_xxx
2. curl "https://data.rh.pub/api/v1/stock/daily?ts_code=600519.SH" -H "x-api-key: KEY"
3. Python: pip install rhdata; rh.stock.daily("600519.SH")

REST API (12端点)

GET /api/v1/stock/daily
A股日线 (ts_code,start_date,end_date,limit)
GET /api/v1/stock/quote
实时快照 (ts_code) 3秒级
GET /api/v1/stock/basic
股票列表 (exchange,limit)
GET /api/v1/stock/daily_basic
每日指标 PE/PB/换手/市值
GET /api/v1/stock/index_daily
指数日线 (ts_code 如000001.SH)
GET /api/v1/stock/hk_daily
港股日线 (00700.HK) 6h缓存
GET /api/v1/stock/us_daily
美股日线 (AAPL)
GET /api/v1/stock/financial
财务指标 ROE/毛利率
GET /api/v1/market/industry_sentiment
产业景气度 31赛道
POST /api/v1/research/ask
AI投研问答 (q) RAG+引用
GET /api/v1/research/search
研究库语义检索 (q,top_k)
GET /api/v1/health
健康检查

🎮 Playground (在线测试)

API Key:
结果...

🤖 MCP Server (AI Agent入口, 22工具)

Endpoint: https://data.rh.pub/mcp
Header: x-api-key: YOUR_KEY
工具: stock_daily/quote/basic/.../research_ask/industry_sentiment (22个)

© 2026 如辉AI量化 | 数据仅供参考不构成投资建议