ricequant/ricequant-skills/rqdata-python
Claude Code and agent skill by ricequant/ricequant-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
RQData数据API使用指南。当需要查询RQData数据接口、获取金融数据时使用。支持A股、港股、期货、期权、指数、基金、可转债等市场数据查询,包含HTTP API和Python API文档。
Install
npx vskill@latest install ricequant/ricequant-skills/rqdata-pythonSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry/rqdata-python.
rqdata-python
每次skill使用前,执行python ~/.claude/skills/rqdata-python/scripts/init_skill.py。如果返回RQData license不可用,则提示用户需正确安装rqsdk,配置许可证,或者问题应联系RQData技术支持获得帮助,终止skill的使用
使用方法
查找API接口
- 确定所需API文档:在
cache/api_doc_index.md中grep需要的API文档,示例:Grep宏观|GDPoncache/api_doc_index.md的结果显示满足GDP宏观数据查询需求的API文档是macro-economy.md
- 确定所需API接口:在
cache/api_index/{API文档名}_index.md中grep所需API接口。API索引文件中每行表一个API接口的API Name、Description、Line Range,确定匹配API接口的行号List Range,阅读API接口开始的50行来获取API接口定义,如果50行不够多阅读更多行。示例:Grep宏观|GDPoncache/api_index/macro-economy_index.md的结果显示满足GDP宏观数据查询需求的API接口是econ.get_factors,行号范围是87-131,阅读cache/api_index/macro-economy.md的第87到87+50行获得API定义
- 注意也许需要调用多个API接口来满足需求,所以可能需要定位多个API接口
- 若以上步骤没有定位到API接口,才尝试在
cache中搜索
应使用真实资产代码
- 如果API参数涉及到资产代码(例如股票代码,期货代码,期权代码等),强制获取真实的资产代码:
- 推断资产类型,资产名称(或资产代码),市场名称
- 如果是查询期权合约代码请参考
references/options_contract_query.md - 如果是查询期货合约代码请参考
references/futures_contract_query.md - 如果是查询其他类型资产代码参考
references/common_asset_code_query.md
其他注意事项
- 如果API参数涉及到宏观因子名称,查询宏观因子名称参考
cache/api_docs/macro_factor_names.csv - 调用RQData API前必须调用
rqdatac.init()来初始化 - 禁止阅读
scripts中的源代码 - 当遇到使用问题的时候,参考
references/pitfall.md了解常见错误使用陷阱
Skil执行示例
用户prompt:请为我展示近几年的中国的存款准备金率
Agent执行步骤:
- 强制执行skill初始化脚本
存款准备金率是宏观数据,根据api_doc_index.md,应在macro-economy.md中查找API- 使用
macro-economy_index.md快速定位满足需求的API接口为econ.get_reserve_ratio,行范围87-131 - 使用read工具读取
macro-economy.md中读取接口头50行(第87到87+50行) - 从read工具返回中获取API定义和参数信息
- 让我开始编写代码
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/basic/rqdata-python/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ricequant/ricequant-skills/rqdata-python)