← Back to Skills Marketplace
robinspt

金十数据

by loong · GitHub ↗ · v1.0.7 · MIT-0
cross-platform ✓ Security Clean
273
Downloads
0
Stars
0
Active Installs
8
Versions
Install in OpenClaw
/install jin10
Description
金十数据财经信息查询 skill。查询黄金/白银/原油等行情报价、K线、最新财经快讯、资讯新闻、财经日历数据时使用。 触发场景:问"黄金价格"、"XAUUSD报价"、"黄金1小时K线"、"原油快讯"、"财经日历"、"非农什么时候"、"资讯详情"等。 本 skill 包含 Python 代码(jin10/ 模块 +...
README (SKILL.md)

Jin10 金十数据 Skill

致谢:感谢金十数据提供 MCP 服务。本 skill 仅进行使用方式转换,无意替代或模仿金十数据官方服务。

本 skill 内部沿用金十官方 MCP 端点 https://mcp.jin10.com/mcp,但对 OpenClaw 暴露的是随 skill 一起分发的本地脚本接口。

运行前提:

  • 宿主机需要可用的 python3
  • 必须提供环境变量 JIN10_API_TOKEN

不要在对话中手写 initializetools/callresources/readMcp-Session-Id 等 MCP 细节。统一通过本地 CLI 调用:

python3 scripts/jin10.py ...

CLI 会自动完成:

  • Bearer Token 鉴权
  • initialize -> notifications/initialized -> tools/list/resources/list
  • tools/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,命令会直接失败并返回明确错误。

规则

  1. 默认使用 python3 scripts/jin10.py --format json ...,优先读取 JSON 输出。
  2. 只有在需要给用户展示更自然的可读文本时,才使用 --format text
  3. 用户问“某个品种报价或 K 线”时,如果代码不明确,先执行 python3 scripts/jin10.py --format json codes 查代码,再执行 quotekline
  4. 用户问“某个主题的最新快讯”时,优先用 flash search \x3C关键词>;若要顺序浏览,再用 flash list--cursor 翻页。
  5. 用户问“某个主题的深度文章”时,先用 news searchnews listid,再用 news get \x3Cid> 取详情。
  6. 用户问“财经日历 / 本周数据”时,直接用 calendar
  7. 详细命令和字段约定见 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 "\x3Cnext_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 "\x3Cnext_cursor>"
python3 scripts/jin10.py --format json news search "原油"
python3 scripts/jin10.py --format json news search "非农" --cursor "\x3Cnext_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

Usage Guidance
这个 skill 看起来与其描述一致:它本地运行捆绑的 Python 脚本并将您提供的 JIN10_API_TOKEN 用作对 https://mcp.jin10.com/mcp 的 Bearer 授权。安装前请确认: - JIN10_API_TOKEN 从官方渠道获取且权限可控(如果可能,使用仅限读取的最小权限 token); - 不要在聊天中粘贴 token;把 token 放在 ~/.openclaw/.env 或环境变量中; - 您理解该技能会向金十的 MCP 端点发出网络请求并接收数据; - 若担心自动或频繁调用,可限制该技能的使用/禁用自动调用,或在隔离环境中先运行/审计代码; 我已审阅随包的 Python 源码(网络请求、JSON-RPC/SSE 解析、CLI 封装等),未发现调用其他隐藏服务或读取非预期本地敏感路径的行为。如需更高置信度,可要求作者提供 call_tool/read_resource 等被截断实现部分的完整代码以供复核,或在隔离环境中运行并监控网络流量。
Capability Analysis
Type: OpenClaw Skill Name: jin10 Version: 1.0.7 The jin10 skill bundle is a well-structured Python wrapper for the Jin10 financial data MCP service. It provides tools for querying market quotes, K-line data, news flashes, and economic calendars via the 'https://mcp.jin10.com/mcp' endpoint. The code uses only Python standard libraries (urllib, json, argparse), requires a specific API token via environment variables, and contains no evidence of data exfiltration, malicious execution, or harmful prompt injection instructions.
Capability Tags
requires-oauth-tokenrequires-sensitive-credentials
Capability Assessment
Purpose & Capability
Skill 名称与描述对应金融数据查询;代码(jin10/ 模块和 scripts/jin10.py)实现了对 Jin10 MCP 端点的 JSON-RPC/SSE 调用。所需主要凭据 JIN10_API_TOKEN 与其功能一致,没有要求与功能无关的额外环境变量或二进制。
Instruction Scope
SKILL.md 指示通过本地 CLI (python3 scripts/jin10.py ...) 调用,明确要求 JIN10_API_TOKEN 并说明不应在对话中发 MCP 细节。指令和代码仅读环境变量、调用网络 API 以获取财经数据,未要求读取/传输除请求结果外的本地文件或其它未说明的外部端点。
Install Mechanism
没有安装脚本或远程下载;仅随包分发 Python 源文件并通过系统的 python3 运行。没有从不可信 URL 下载或提取可执行代码的行为。
Credentials
仅声明并使用一个主要凭据 JIN10_API_TOKEN,且该凭据与对 Jin10 MCP 的 Bearer 授权直接对应。没有要求其他 unrelated 的 secrets 或高权限系统路径。SKILL.md 也提供可选的 ~/.openclaw/.env 配置位置作为便捷存放点。
Persistence & Privilege
技能不设置 always:true,也不要求修改其他技能或系统配置。默认允许模型自主调用(disable-model-invocation:false),这属于平台默认行为 —— 注意:被授权的 token 会被技能用于对外网络请求,若担心自动化调用可在安装前考虑是否允许技能自动触发。
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install jin10
  3. After installation, invoke the skill by name or use /jin10
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.7
- Added K线(K-line/candlestick chart)行情查询说明与命令示例,支持如“黄金1小时K线”场景 - 触发场景与描述补充了K线相关问法 - 规则部分增加了K线查询相关流程指引 - 命令接口中新增了kline指令的格式与用法示例 - 其它说明与结构保持不变
v1.0.6
- 增加 skillKey 和 primaryEnv 元数据字段,便于平台自动识别环境变量需求 - JIN10_API_TOKEN 的 API 获取地址更新为新版(/app) - 文档中补充对 python3 运行时和环境变量的明确要求 - 精简致谢和前置条件说明,去除冗余的官方服务声明
v1.0.5
- Improved documentation on environment variable configuration: clarified usage of `.env` files versus direct environment variable settings. - Added explanation that the Python code only reads from environment variables and does not parse `.env` files directly. - Provided a usage tip to ensure OpenClaw runtime loads the configuration properly. - No changes to functionality or code; documentation only.
v1.0.4
- 说明文件(SKILL.md)补充:明确 skill 包含 Python 代码(jin10/ 模块 + scripts/jin10.py),不是纯指令型 skill。 - 增加 metadata:详细列出 JIN10_API_TOKEN 配置要求与可选的 config 路径说明。 - 其余功能与用法未变。
v1.0.3
**Jin10 skill v1.0.3 introduces a new local CLI interface and updates usage guidelines.** - Added local CLI entry via `scripts/jin10.py` for all data queries (quotes, news, flash, calendar). - Refined documentation with explicit CLI command examples and step-by-step usage rules. - Clarified authentication: now fails early with missing `JIN10_API_TOKEN`. - Added reference to new API contract documentation. - Provided detailed command and output format rules, emphasizing JSON as the default.
v1.0.2
- 增加 metadata 字段,声明主环境变量为 JIN10_API_TOKEN - 其余内容保持不变,无新增功能或代码调整
v1.0.1
- 环境变量配置方式优化,现在需在 `~/.openclaw/.env` 文件中设置 `JIN10_API_TOKEN` - 去除原有 Bash 配置及读取方式说明,统一为 `.env` 配置并自动读取 - 其余功能模块、接口调用方式和代码示例保持不变
v1.0.0
Jin10 v1.0.0 – 金十数据财经信息查询 skill - 支持查询黄金/白银/原油等行情报价,财经快讯、资讯新闻、财经日历数据。 - 支持通过金十数据 MCP 协议进行原生 HTTP 查询,无需额外服务配置,降低 token 消耗。 - 提供 Python SDK,分模块操作:行情(quotes)、快讯(flash)、资讯(news)、财经日历(calendar)。 - 各模块包含数据格式化输出,便于直接展示查询结果。 - 适用于对话场景下直接调用,快速获取财经信息。 **致谢**:感谢[金十数据提供 MCP 服务](https://mcp.jin10.com/app/)。本 skill 仅进行使用方式转换,将 MCP 协议调用转换为 Python SDK,无意替代或模仿金十数据官方服务。 **首次使用需要设置环境变量**:设置环境变量 `JIN10_API_TOKEN` 为你的金十数据 token: ```bash echo 'export JIN10_API_TOKEN="sk-xxxxxxx"' >> ~/.bashrc source ~/.bashrc ```
Metadata
Slug jin10
Version 1.0.7
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 8
Frequently Asked Questions

What is 金十数据?

金十数据财经信息查询 skill。查询黄金/白银/原油等行情报价、K线、最新财经快讯、资讯新闻、财经日历数据时使用。 触发场景:问"黄金价格"、"XAUUSD报价"、"黄金1小时K线"、"原油快讯"、"财经日历"、"非农什么时候"、"资讯详情"等。 本 skill 包含 Python 代码(jin10/ 模块 +... It is an AI Agent Skill for Claude Code / OpenClaw, with 273 downloads so far.

How do I install 金十数据?

Run "/install jin10" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 金十数据 free?

Yes, 金十数据 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 金十数据 support?

金十数据 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 金十数据?

It is built and maintained by loong (@robinspt); the current version is v1.0.7.

💬 Comments