Exchange Rates (XE.com) for Openclaw

A headless browser-based tool to fetch real-time mid-market currency exchange rates from XE.com with automatic API fallback.

mrinvincible29
v1.0.1
Feb 20, 2026
1
5k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install exchange-rates

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install exchange-rates using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Exchange Rates (XE.com)?

The Exchange Rates skill is a specialized utility designed to provide AI agents with real-time access to global financial data. By integrating this component into your Openclaw Skills library, agents can perform precise currency conversions and retrieve current mid-market rates for any ISO 4217 currency pair. The skill leverages automated browser interactions to pull data directly from XE.com, ensuring that the information is as current as possible compared to traditional static datasets.

This skill is particularly valuable for developers building financial assistants, travel planners, or e-commerce automation scripts that require accurate, up-to-the-minute forex data. It bridges the gap between raw web data and actionable AI insights by structuring live web scraping results into a clean, machine-readable format.

Exchange Rates (XE.com) Use Cases

  • Converting specific financial amounts between two currencies like USD to INR or EUR to GBP.
  • Monitoring live mid-market exchange rates for international business transactions.
  • Automating budget calculations for travel or cross-border shipping within an AI workflow.
  • Providing real-time currency data as a verified source for financial reporting bots.

How Exchange Rates (XE.com) Works

  1. The AI agent initiates the script by providing the source currency, target currency, and an optional amount.
  2. The system launches a headless browser instance using Playwright and Browserless (CDP) to access XE.com.
  3. It extracts the live mid-market exchange rate directly from the web interface.
  4. If the browser-based scraping encounter issues, the skill automatically switches to a secondary fallback using the exchangerate-api.com.
  5. The processed data is returned to the agent as a JSON object, including the unit rate, total converted amount, and source metadata.

Exchange Rates (XE.com) Setup

To integrate this into your Openclaw Skills environment, ensure you have the necessary browser automation dependencies installed. Use the following command structure to execute the conversion:

node ~/clawd/skills/exchange-rates/scripts/xe-rate.mjs <FROM> <TO> [AMOUNT]

Example for converting 500 Euros to US Dollars:

node ~/clawd/skills/exchange-rates/scripts/xe-rate.mjs EUR USD 500

Exchange Rates (XE.com) Data Schema & Taxonomy

The skill organizes its output into a structured JSON format to ensure compatibility with other Openclaw Skills. The schema includes:

Key Description Example
amount The original quantity provided for conversion 100
from The 3-letter ISO code for the source currency "EUR"
to The 3-letter ISO code for the target currency "USD"
rate The current mid-market exchange rate 1.085
converted The resulting total after conversion 108.50
source The data origin (e.g., XE.com) "XE.com"
timestamp The exact time the rate was retrieved "2023-10-27T10:00:00Z"

Exchange Rates (XE.com) Advanced Features

  • Multi-source reliability: Uses a primary browser-based scraping method with a robust API fallback mechanism.
  • Mid-market accuracy: Focuses on mid-market rates rather than retail buy/sell spreads for objective financial analysis.
  • Headless automation: Utilizes Playwright and Browserless (CDP) for high-fidelity data extraction that mimics human browsing.
  • ISO 4217 Compliance: Full support for standard 3-letter currency codes used globally in the Openclaw Skills ecosystem.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*