← Back to Skills Marketplace
oicqren

DeepKnow Currency

by oicqren · GitHub ↗ · v0.1.8 · MIT-0
cross-platform ⚠ suspicious
113
Downloads
0
Stars
0
Active Installs
6
Versions
Install in OpenClaw
/install deepknow-currency
Description
北京宽客进化科技有限公司旗下“知汇 InkRate”的验证版/内测版汇率 Skill,默认连接官方公共入口 `https://rate.feedai.cn`;同时接入京东 `clawtip` A2A 支付服务。提供四项服务:查询汇率(免费)、计算兑换金额(免费)、汇率提醒服务(收费)、汇率涨跌概率查询(收费)。收...
README (SKILL.md)

deepknow-currency

重要说明

  • 这是验证版 / 内测版。
  • 服务主体:北京宽客进化科技有限公司
  • 产品名称:知汇 InkRate
  • 官方公共入口:https://rate.feedai.cn
  • 收费链路:连接到京东的 clawtip A2A 支付服务。
  • 支付过程中,用户可能需要在手机端完成京东登录、支付密码、银行卡验证或风控确认。

服务清单

  • 查询汇率(免费)
  • 计算兑换金额(免费)
  • 汇率提醒服务(收费)
  • 汇率涨跌概率查询(收费)

前两项免费服务直接调用公开 API;后两项收费服务固定走三阶段:先创建订单,再调用 clawtip A2A 完成支付,最后读取支付凭证并履约。

当前支持币种:USD / EUR / JPY / GBP

使用前配置

默认请求地址为官方公共入口 https://rate.feedai.cn。如需接到自建或私有部署,可通过配置覆盖。

你可以任选一种方式覆盖:

  • 环境变量 INKRATE_SKILL_BASE_URL
  • 在 Skill 根目录创建 config.yaml,写入 base_url: "https://your-host"

免费服务:查询汇率

当用户只需要查询最新汇率时,执行:

python3 scripts/quote.py \x3CQUOTE_CURRENCY>

示例:

python3 scripts/quote.py USD

成功时固定输出:

BASE_CURRENCY=CNY
QUOTE_CURRENCY=USD
RATE=\x3Cvalue>
OBSERVATION_DATE=\x3Cvalue>

免费服务:计算兑换金额

当用户需要换算金额时,执行:

python3 scripts/convert.py \x3CFROM> \x3CTO> \x3CAMOUNT>

说明:

  • 免费换算只支持涉及 CNY 的兑换。
  • 如果用户请求非 CNY 直兑,先提示当前免费接口不支持该路径,再引导改成经过 CNY 的换算。

示例:

python3 scripts/convert.py CNY USD 100

成功时固定输出:

FROM_CURRENCY=CNY
TO_CURRENCY=USD
AMOUNT=100.0
CONVERTED_AMOUNT=\x3Cvalue>
BASE_CURRENCY=CNY

收费服务:创建订单

仅当用户请求“汇率提醒服务”或“汇率涨跌概率查询”且尚未支付时,才进入收费流程的第一阶段。

首次交互且用户尚未付款时,必须先创建订单。

python3 scripts/create_order.py "\x3Cquestion-json>"

推荐的 question-json

{"service_type":"forecast","quote_currency":"USD"}

{"service_type":"alert","quote_currency":"USD","direction":"above","target_rate":0.15,"email":"[email protected]"}

脚本成功时固定输出:

ORDER_NO=\x3Cvalue>
AMOUNT=\x3Cvalue>
QUESTION=\x3Cvalue>
INDICATOR=\x3Cvalue>

失败时会输出:

订单创建失败: \x3C错误详情>

如果出现该前缀,必须立即停止,不得继续支付或履约。

收费服务:调用 clawtip A2A

从第一阶段提取 ORDER_NOINDICATOR 后,调用 clawtip

{
  "order_no": "\x3CORDER_NO>",
  "indicator": "\x3CINDICATOR>"
}

支付成功后,clawtip 会把 payCredential 回写到订单文件中。

调试联调时,可以临时将 clawtip 替换为 clawtip-sandbox;正式发布前务必切回 clawtip

收费服务:履约

支付成功后,执行:

python3 scripts/service.py "\x3Corder_no>"

脚本会自动从订单文件中读取 payCredential 与原始问题,并输出:

PAY_STATUS: SUCCESS

PAY_STATUS: PROCESSING

PAY_STATUS: FAIL

PAY_STATUS: ERROR
ERROR_INFO: \x3C错误详情>

如有业务结果,会继续输出一段 JSON。

状态处理必须严格按下面规则执行:

  • PAY_STATUS: SUCCESS 履约成功。若后续有 JSON 结果,直接整理成用户可读内容返回;不得再次触发支付。
  • PAY_STATUS: PROCESSING 不要创建新订单。明确告知用户支付仍在处理中,通常需要继续完成京东登录、授权、支付密码、银行卡验证或风控确认;保留当前 order_no,提示用户稍后用同一个订单再次执行 python3 scripts/service.py "\x3Corder_no>"
  • PAY_STATUS: FAIL 不要创建新订单。明确告知用户本次支付失败,并提示先回到当前 clawtip / 京东支付流程完成授权或支付,再使用同一个 order_no 重试履约;只有用户明确放弃当前订单时,才重新创建订单。
  • PAY_STATUS: ERROR 立即停止当前流程,把 ERROR_INFO 原样回传给用户;不得猜测成功、不得跳过错误继续履约,也不得自动新建订单。

发布前校验与发布

无论是本地直发还是把目录同步到其它机器后再发布,都必须在 Skill 根目录先执行:

python3 scripts/clean_release.py
python3 scripts/clean_release.py --check

只有 --check 输出 CLEAN 时,才允许继续:

clawhub login
clawhub publish .
Usage Guidance
This skill appears to implement the exchange-rate and paid-payment workflow it describes, but pay attention before installing: - Base URL risk: by default it calls https://rate.feedai.cn, but you can override INKRATE_SKILL_BASE_URL (or put a different base_url in config.yaml). If you point that to an untrusted host, the skill will send user-provided 'question' JSON and order info to that host — do not set it to unknown servers. - Order files: the skill saves payment/order data under ~/.openclaw/skills/orders/<indicator> by default (or to a directory you can override with OPENCLAW_ORDER_ROOT). Those JSON files may contain payment credentials; inspect them and secure the directory. - Undocumented env var: OPENCLAW_ORDER_ROOT is honored by the code but not documented in SKILL.md; be aware of that override. - Whitelist not enforced: runtime_config contains SUPPORTED_PUBLIC_BASE_URLS but the code does not enforce it; the base_url override is only syntactically validated. If you require a strict whitelist, review/patch the code to enforce it before use. - Payments: paid flows use JD clawtip and may require mobile verification — follow the claimed three-stage flow and do not bypass steps. Review the scripts yourself before use or run them in a restricted/sandboxed environment if you have any doubt.
Capability Tags
cryptocan-make-purchases
Capability Assessment
Purpose & Capability
Name/description (exchange rates + paid alerts via JD clawtip) align with included scripts: quote.py, convert.py, create_order.py, service.py and file_utils for order storage. Network access and reading order credentials are reasonable for the declared payment/fulfillment flows.
Instruction Scope
Runtime instructions tell the agent to run local Python scripts that call the configured base_url and store/read order files under the user's home. The skill accepts arbitrary 'question' JSON and sends it to /api/skill/create-order and /api/skill/fulfill on the base_url — so a misconfigured or malicious base_url could receive arbitrary user data. The SKILL.md documents INKRATE_SKILL_BASE_URL but does not mention the OPENCLAW_ORDER_ROOT env var used by file_utils to change the order storage path.
Install Mechanism
No install spec or external downloads; this is instruction + embedded Python scripts. No remote installers or archive extraction observed. Risk from install mechanism is low.
Credentials
The skill declares no required env vars but supports INKRATE_SKILL_BASE_URL (documented) and implicitly supports OPENCLAW_ORDER_ROOT (not documented). Allowing base_url to be overridden lets network calls send user question/payload data to any host (normalize_base_url only validates URL syntax, it does not enforce the SUPPORTED_PUBLIC_BASE_URLS whitelist present in code). 'credential.read' permission in metadata is consistent with reading stored order payment credentials, but users should note order files may contain sensitive payment credentials.
Persistence & Privilege
always=false; no elevation or modification of other skills. The skill writes/reads order files under a per-skill order directory in the user's home (or OPENCLAW_ORDER_ROOT), which is expected for persisting payment orders.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install deepknow-currency
  3. After installation, invoke the skill by name or use /deepknow-currency
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.8
- 默认汇率数据请求地址由 `https://rate.deepknow.cn` 更新为官方公共入口 `https://rate.feedai.cn` - 相关文档、配置说明及参数注释同步更新为新入口域名 - 允许通过配置环境变量或 `config.yaml` 覆盖默认入口,方便自建/私有部署 - 其余功能、API流程和使用方法保持不变
v0.1.4
deepknow-currency 0.1.4 - 增加免费接口:支持汇率查询和兑换金额计算,无需付费。 - 拓展币种支持,特别强调仅限 USD / EUR / JPY / GBP 涉及 CNY 的兑换。 - 服务说明和文档全面升级,详细区分免费与收费流程。 - 新增 scripts/quote.py、scripts/convert.py、scripts/clean_release.py,分别对应查询汇率、兑换金额及清理校验操作。 - SKILL.md 描述更加详尽,增加规范的状态处理和收费流程细则。 - 默认 API 地址更新为生产服务:https://rate.deepknow.cn。
v0.1.3
- No user-facing changes; updated only manifest.yaml. - Functionality and documentation remain unchanged.
v0.1.2
- Updated manifest.yaml with new information. - No changes to functionality or user instructions. - Documentation and process remain unchanged.
v0.1.1
No changes detected in this version (0.1.1). The SKILL.md and all files remain unchanged.
v0.1.0
deepknow-currency 0.1.0 released - Initial verification/beta release for DeepKnow Currency paid exchange rate services via JD clawtip. - Supports two chargeable features: rate alerts and forecast queries. - Implements a fixed three-stage process: order creation, real JD payment, and fulfillment. - End-users may need to complete mobile-side JD login, payment code, card verification, or risk control. - Includes configuration options for base URL via environment variable or config.yaml. - Provides command-line scripts for order creation and service fulfillment with clear success/failure outputs.
Metadata
Slug deepknow-currency
Version 0.1.8
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 6
Frequently Asked Questions

What is DeepKnow Currency?

北京宽客进化科技有限公司旗下“知汇 InkRate”的验证版/内测版汇率 Skill,默认连接官方公共入口 `https://rate.feedai.cn`;同时接入京东 `clawtip` A2A 支付服务。提供四项服务:查询汇率(免费)、计算兑换金额(免费)、汇率提醒服务(收费)、汇率涨跌概率查询(收费)。收... It is an AI Agent Skill for Claude Code / OpenClaw, with 113 downloads so far.

How do I install DeepKnow Currency?

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

Is DeepKnow Currency free?

Yes, DeepKnow Currency is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does DeepKnow Currency support?

DeepKnow Currency is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created DeepKnow Currency?

It is built and maintained by oicqren (@oicqren); the current version is v0.1.8.

💬 Comments