- name
- jin10
- description
- |
- metadata
- openclaw
- skillKey
- jin10
- primaryEnv
- JIN10_API_TOKEN
- envVars
- description
- 金十数据 API Token,必需。获取方式见 https://mcp.jin10.com/app
- required
- true
- configPaths
Jin10 金十数据 Skill
致谢:感谢金十数据提供 MCP 服务。本 skill 仅进行使用方式转换,无意替代或模仿金十数据官方服务。
本 skill 内部沿用金十官方 MCP 端点 https://mcp.jin10.com/mcp,但对 OpenClaw 暴露的是随 skill 一起分发的本地脚本接口。
运行前提:
- 宿主机需要可用的
python3 - 必须提供环境变量
JIN10_API_TOKEN
不要在对话中手写 initialize、tools/call、resources/read、Mcp-Session-Id 等 MCP 细节。统一通过本地 CLI 调用:
python3 scripts/jin10.py ...CLI 会自动完成:
- Bearer Token 鉴权
initialize -> notifications/initialized -> tools/list/resources/listtools/call/resources/read- 优先读取
structuredContent - 协议错误与业务错误处理
配置
方式一:写入配置文件(推荐)
OpenClaw 运行时加载 ~/.openclaw/.env 并将变量注入环境:
echo 'JIN10_API_TOKEN="sk-xxxxxxx"' >> ~/.openclaw/.env方式二:直接设置环境变量
export JIN10_API_TOKEN="sk-xxxxxxx"注意:Python 代码只读取环境变量(os.environ),不直接解析.env文件。确保 OpenClaw 运行时已加载配置。
如果未配置 token,命令会直接失败并返回明确错误。
规则
- 默认使用
python3 scripts/jin10.py --format json ...,优先读取 JSON 输出。 - 只有在需要给用户展示更自然的可读文本时,才使用
--format text。 - 用户问“某个品种报价或 K 线”时,如果代码不明确,先执行
python3 scripts/jin10.py --format json codes查代码,再执行quote或kline。 - 用户问“某个主题的最新快讯”时,优先用
flash search <关键词>;若要顺序浏览,再用flash list和--cursor翻页。 - 用户问“某个主题的深度文章”时,先用
news search或news list找id,再用news get <id>取详情。 - 用户问“财经日历 / 本周数据”时,直接用
calendar。 - 详细命令和字段约定见 references/api-contract.md。
命令接口
报价与代码
python3 scripts/jin10.py --format json codes
python3 scripts/jin10.py --format json quote XAUUSD
python3 scripts/jin10.py --format text quote XAUUSD
python3 scripts/jin10.py --format json kline XAUUSD --time 1h --count 20
python3 scripts/jin10.py --format text kline XAUUSD --time 1d --count 5快讯
python3 scripts/jin10.py --format json flash list
python3 scripts/jin10.py --format json flash list --cursor "<next_cursor>"
python3 scripts/jin10.py --format json flash search "美联储"资讯
python3 scripts/jin10.py --format json news list
python3 scripts/jin10.py --format json news list --cursor "<next_cursor>"
python3 scripts/jin10.py --format json news search "原油"
python3 scripts/jin10.py --format json news search "非农" --cursor "<next_cursor>"
python3 scripts/jin10.py --format json news get 123456财经日历
python3 scripts/jin10.py --format json calendar
python3 scripts/jin10.py --format json calendar --keyword "非农"
python3 scripts/jin10.py --format json calendar --high-importance
python3 scripts/jin10.py --format text calendar --high-importance数据来源
内部使用金十 MCP 端点:https://mcp.jin10.com/mcp