Exchange Rate
Real-time currency exchange rate and conversion using QVeris tools.
What This Skill Does
Exchange Rate provides:
- 1. Rate lookup – Current exchange rate between two currencies (e.g. USD/EUR, CNY/JPY).
- Amount conversion – Convert an amount from one currency to another at current rates.
Supported via QVeris: forex and common fiat pairs; optional historical date for rate/conversion when the tool supports it.
Key Advantages
- - Uses only QVeris API: search for tools by capability, then execute; no hardcoded provider list.
- Fallback across providers (e.g. Alpha Vantage, Twelve Data) when one fails or is unavailable.
- Same credential as other skills:
QVERIS_API_KEY only. - Read-only, no side effects; suitable for travel, trade, and reporting.
Core Workflow
- 1. Parse user intent: rate (fromcurrency, tocurrency) or convert (fromcurrency, tocurrency, amount).
- Search QVeris for tools: e.g. "currency exchange rate real-time", "currency conversion".
- Rank results by success_rate, latency, and parameter fit (rate vs conversion).
- Build request parameters: for rate use
from_currency/to_currency or symbol (e.g. EUR/USD); for conversion add amount. - Execute chosen tool with 5s timeout; on failure try next candidate.
- Return formatted rate and/or converted amount (markdown or JSON).
Command Surface
Primary script: INLINECODE6
-
node scripts/exchange_rate.mjs rate --from USD --to EUR
-
node scripts/exchange_rate.mjs rate --from CNY --to USD
-
node scripts/exchange_rate.mjs convert --from USD --to JPY --amount 1000
- INLINECODE10
Optional: --date YYYY-MM-DD for historical rate/conversion when the tool supports it; --format json for machine-readable output.
Safety and Disclosure
- - Uses only
QVERIS_API_KEY; no other secrets. - Calls only QVeris over HTTPS; no package install or arbitrary commands.
- Output is for reference only; not financial or contractual advice.
汇率
使用QVeris工具获取实时货币汇率与兑换。
功能说明
汇率功能提供:
- 1. 汇率查询 – 两种货币间的当前汇率(例如美元/欧元、人民币/日元)。
- 金额兑换 – 按当前汇率将某一金额从一种货币转换为另一种货币。
通过QVeris支持:外汇及常见法定货币对;当工具支持时,可提供历史日期进行汇率/兑换查询。
核心优势
- - 仅使用QVeris API:按能力搜索工具后执行;无硬编码供应商列表。
- 当某个供应商(如Alpha Vantage、Twelve Data)故障或不可用时,可在供应商间自动切换。
- 与其他技能使用相同凭证:仅需QVERISAPIKEY。
- 只读操作,无副作用;适用于旅行、贸易和报告场景。
核心工作流程
- 1. 解析用户意图:汇率查询(源货币、目标货币)或金额兑换(源货币、目标货币、金额)。
- 在QVeris中搜索工具:例如实时货币汇率、货币兑换。
- 根据成功率、延迟和参数匹配度(汇率查询vs金额兑换)对结果排序。
- 构建请求参数:汇率查询使用fromcurrency/tocurrency或symbol(例如EUR/USD);金额兑换需添加amount参数。
- 执行选定工具,超时时间5秒;失败时尝试下一个候选工具。
- 返回格式化后的汇率和/或兑换金额(Markdown或JSON格式)。
命令界面
主脚本:scripts/exchange_rate.mjs
- node scripts/exchange_rate.mjs rate --from USD --to EUR
- node scripts/exchange_rate.mjs rate --from CNY --to USD
- node scripts/exchange_rate.mjs convert --from USD --to JPY --amount 1000
- node scripts/exchange_rate.mjs convert --from EUR --to GBP --amount 500
可选参数:--date YYYY-MM-DD用于历史汇率/兑换查询(当工具支持时);--format json用于机器可读输出。
安全与声明
- - 仅使用QVERISAPIKEY;无需其他密钥。
- 仅通过HTTPS调用QVeris;无需安装软件包或执行任意命令。
- 输出仅供参考;不构成财务或合同建议。