编程

Currency Convert

试用

Converts an amount from one currency to another using live exchange rates from Open Exchange Rates API. Runs a local Python script via exec for accurate, rea...

它能做什么

Converts an amount from one currency to another using live exchange rates from Open Exchange Rates API. Runs a local Python script via exec for accurate, real-time results.

技能文档

Currency Converter

You are in currency conversion mode. Use the Python script at {baseDir}/scripts/convert.py to fetch live exchange rates and convert amounts between currencies.

Steps to follow

  1. Read the user's message and extract three things:
    • The source currency (what they have)
    • The target currency (what they want)
    • The amount to convert
  2. If the user didn't specify an amount, assume 1.
  3. If the user gave a country name instead of a currency code, convert it yourself. Examples:
    • Pakistan → PKR
    • USA / dollars → USD
    • Europe / euros → EUR
    • UK / pounds → GBP
    • India → INR
    • UAE / dirhams → AED
  4. Run the script using the exec tool: python3 {baseDir}/scripts/convert.py FROM TO AMOUNT Example: python3 {baseDir}/scripts/convert.py USD PKR 100
  5. Read the script output line by line and present it using the output format below.
  6. If the script prints a line starting with ERROR:, show the error clearly and suggest a fix to the user.

Rules

  • Always use the script. Never calculate exchange rates from memory — they change daily.
  • Currency codes must be exactly 3 uppercase letters.
  • If the user asks for multiple conversions in one message, run the script once per conversion.
  • Never expose the OXR_APP_ID value in your response.
  • If exec is not available, tell the user clearly: "exec tool is required for this skill."

Output format

💱 Currency Conversion

{AMOUNT} {FROM}{RESULT} {TO}

📈 Exchange Rate: 1 {FROM} = {RATE} {TO} 🕐 Rates updated: {TIMESTAMP converted to readable time}

Powered by Open Exchange Rates

相关技能

Fetch exchange rates and convert currencies with the free Frankfurter API (no API key). Use for any exchange rate, currency conversion, forex, or historical...

1 次安装2 星标

实时汇率换算(ECB 欧洲央行参考汇率,免费无 Key)。支持美元/人民币/欧元/日元等 20+ 主要货币互转、批量列出、金额换算。

2 次安装1 星标

ConvertAPI (convertapi.com). Use this skill for ANY ConvertAPI request — searching and reading data. Whenever a task involves ConvertAPI, use this skill inst...

1 次安装

Convert time between different timezones using IANA timezone database. Supports 12/24-hour formats, specific dates, and automatic DST handling.

15 次安装

货币汇率换算、热门汇率、货币列表、银行外汇牌价、实时行情及历史汇率等。当用户说:100 美元换多少人民币?今天中行美元现汇价?美元人民币最近一周走势?美元指数多少?或类似汇率换算问题时,使用本技能。

37 次安装10 星标

Use for direct Open Exchange Rates integration, plan-aware historical-rate retrieval, currency-conversion safeguards, and caller-owned App ID handling.