Currency Converter

Convert amounts between different currencies with current exchange rates

IBM dbe33b6 3 files · 6.6 KB Updated

File contents

Currency Converter Skill

This skill converts monetary amounts between different currencies using exchange rates.

Features

  • Convert between major world currencies
  • Support for 30+ currency codes
  • Real-time exchange rates (when API configured)
  • Clear conversion breakdown
  • Handles decimal amounts
  • Validates currency codes

Usage

The skill accepts an amount and source/target currency codes.

Example

result = currency_converter(
    amount=100.0,
    from_currency="USD",
    to_currency="EUR"
)

Supported Currencies

  • USD (US Dollar)
  • EUR (Euro)
  • GBP (British Pound)
  • JPY (Japanese Yen)
  • CAD (Canadian Dollar)
  • AUD (Australian Dollar)
  • CHF (Swiss Franc)
  • CNY (Chinese Yuan)
  • And many more...

Output Format

Returns a formatted string with:

  • Original amount and currency
  • Converted amount and currency
  • Exchange rate used
  • Calculation breakdown

Notes

  • Uses demonstration exchange rates by default
  • Configure EXCHANGE_RATE_API_KEY for live rates
  • Rates are approximate and for informational purposes
  • Always verify rates for financial transactions

ibm/codeengine/tree/main/ai/langchain-skills-agent/src/skills/currency_converter commit dbe33b6bff

Frequently asked questions

npx skillmds@latest add ibm/currency-converter