获取中国金融市场数据与投研信息,覆盖 A 股、港股、基金、指数、行情、财务、公告、研报、新闻、宏观经济等数据。
适合用这个 skill 的常见任务:
先判断用户要解决的问题,再决定是浏览分组、搜索接口,还是直接调用具体接口。
当用户表达以下意图时,优先使用本 skill:
典型用户话术:
这个 skill 不适合:
如果数据权限、时间范围或接口能力有限,要明确说出限制。
按以下顺序执行:
investoday-api list 浏览分组,或用 investoday-api search-api 按关键词搜索接口。investoday-api search-api 查询接口说明、参数和示例。investoday-api [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 list <group/subgroup/leaf>
#用于按关键词搜索接口(其中query、tool_ids支持多个入参,以英文逗号隔开)
investoday-api search-api query=<query> tool_ids=<tool_ids>
#发起请求
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 list
investoday-api list 沪深京数据
investoday-api list 沪深京数据/公司行为/基本信息
# 关键词搜索
investoday-api search-api query=股票,基本面分析
# 工具信息搜索
investoday-api search-api tool_ids=list_stock_violation_penalt,list_stock_report_schema
# 调用数据
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":[]}'
list 或 search-api 查找。search-api 获取接口使用方式。Query 参数 和 Body JSON 参数,Query 使用 key=value,Body 使用 --body-json;不要把数组或对象 Body 写成普通字符串参数。investoday-api init 尚未执行或本地配置缺失,先提示执行 investoday-api init,再继续数据查询。docs/references-index.md共 12 个版本