Install
openclaw skills install @kenneth-bro/investoday-finance-dataopenclaw skills install @kenneth-bro/investoday-finance-data获取中国金融市场数据与投研信息,覆盖 A 股、港股、基金、指数、行情、财务、公告、研报、新闻、宏观经济等数据。
适合用这个 skill 的常见任务:
先判断用户要解决的问题,再决定是读取接口索引和 references,还是直接调用具体接口。
当用户表达以下意图时,优先使用本 skill:
典型用户话术:
这个 skill 不适合:
如果数据权限、时间范围或接口能力有限,要明确说出限制。
按以下顺序执行:
docs/references-index.md,按业务分类定位对应 references 文档,再从文档确定接口。investoday-api <endpoint> [key=value ...]。用户说自然语言时,先理解任务,不要先回到接口名和字段名。优先把:
需要 Node.js 18+ 和 Node 包 @investoday/investoday-api。
investoday-api init 用于初始化 CLI 的本地运行环境配置,可能会创建或更新 CLI 使用的本地配置文件。
# 初始化运行环境
investoday-api init
# 非交互式一次性初始化
investoday-api init --api-key "<API_KEY>" --auto-update --skip-verify
#发起请求
investoday-api <endpoint> [key=value ...]
#POST 接口如 references 区分 Query 参数与 Body JSON 参数:
#Query 参数使用 key=value;Body JSON 参数使用 --body-json,数组/对象不要写成普通 key=value 字符串。
investoday-api <endpoint> --method POST [queryKey=value ...] --body-json '{"bodyKey":[]}'
示例:
# 初始化运行环境
investoday-api init
# 非交互式一次性初始化
investoday-api init --api-key "<API_KEY>" --auto-update --skip-verify
# 调用数据
investoday-api search key=贵州茅台 type=11
investoday-api stock/basic-info stockCode=600519
investoday-api fund/daily-quotes --method POST fundCode=000001 beginDate=2024-01-01 endDate=2024-12-31
investoday-api industry-quote/realtime-v2 --method POST industryLevel=1 industryType=SW sortColumn=changeRatio order=desc pageSize=10 --body-json '{"industryCodes":[]}'
docs/references-index.md,按业务分类定位并读取对应 references 文档。Query 参数 和 Body JSON 参数,Query 使用 key=value,Body 使用 --body-json;不要把数组或对象 Body 写成普通字符串参数。investoday-api init 尚未执行或本地配置缺失,先提示执行 investoday-api init,再继续数据查询。docs/references-index.md。