360 Secure SkillHub
360 安全技能中心

Exchange Rate

该 Skill 通过执行脚本调用外部汇率接口,查询两种货币之间的每日汇率:用 --currency 指定基准货币(默认 CNY)、--target 指定目标货币(默认 USD),目标为 AAA 时返回全部汇率;结果以文本或 JSON 形式输出,依赖网络与 curl/jq 命令。

jaceymarvin99
jaceymarvin99
热度 86.25
最近更新 2026-05-17 12:49:01
分类:搜索依赖:代码执行 / 第三方 API应用场景:财务

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add exchange-rate-2
Metadata
name
exchange-rate
description
Use when users need to query daily currency exchange rates between two currencies.

Exchange Rate Skill

This skill helps AI agents fetch daily currency exchange rates from the 60s API.

When to Use This Skill

Use this skill when users:

  • Ask for current exchange rates between two currencies.
  • Want to know the value of one currency in another.
  • Need the latest currency conversion rate.

How to Use

Execute the associated scripts/exchange_rate.sh script to fetch the exchange rate.

./scripts/exchange_rate.sh [options]

Options

  • --currency, -c <currency>: Optional. The base currency ISO 4217 code. Defaults to CNY.
  • --target, -t <target>: Optional. The target currency ISO 4217 code. Defaults to USD. If set to AAA, it returns all available exchange rates for the base currency.

Return Values

The script outputs the exchange rate value of the target currency relative to 1 unit of the base currency. If the target is AAA, it outputs the full JSON response containing all rates. If the target currency is not found, an error message is returned.

Usage Examples

# Get the exchange rate from CNY to USD (default)
./scripts/exchange_rate.sh

# Get the exchange rate from EUR to JPY
./scripts/exchange_rate.sh --currency EUR --target JPY

# Get all exchange rates for GBP
./scripts/exchange_rate.sh -c GBP -t AAA