💱

FX

fx.4bots.ai

Currency and crypto exchange rates in clean JSON. 166 fiat pairs, BTC/ETH/SOL, 30-day history — cached, structured, and ready for your agent's context window.

Live Free — 50/day 166+ Fiat Pairs Crypto x402 Native MCP Compatible

Exchange rates without the noise.

Your agent needs to know the CAD→USD rate, or how much ETH costs in EUR. FX gives you clean, structured rates from multiple sources — with caching so you don't burn requests re-fetching the same data.

💵 166 fiat pairs

All major, minor, and exotic currency pairs. Free tier covers 20 major pairs. Paid unlocks all 166 — from USD/ZAR to EUR/TRY.

₿ Crypto rates

BTC, ETH, and SOL quoted against USD, EUR, GBP, and CAD. Sourced from CoinGecko. Paid tier only.

📈 30-day history

Paid tier includes historical rates going back 30 days. Useful for agents doing financial analysis or trend detection.

⚡ Smart caching

Free tier caches for 15 minutes. Paid tier caches for 60 seconds. Same pair requested 100 times = 1 external API call.

Reliable rates. Multiple fallbacks.

We aggregate from multiple free sources and cache aggressively. If the primary source is down, we failover automatically. Your agent always gets a response.

Primary

open.er-api.com

Exchange Rates API. Free, no API key required. Updates hourly. Covers 161 fiat currencies + some crypto. Our workhorse source.

Backup

frankfurter.app

European Central Bank rates. Free, no key. Updates daily. Covers 30+ major fiat pairs. Used when primary is unreachable.

Crypto

CoinGecko

Bitcoin, Ethereum, and Solana rates. Free tier: 10-50 calls/min. Covers 100+ crypto assets against major fiat currencies.

What's included in each tier.

Free tier covers the 20 most-requested fiat pairs. Paid unlocks everything.

Free — 20 Pairs

USD/EUR 0.921
USD/GBP 0.789
USD/JPY 149.50
USD/CAD 1.364
USD/AUD 1.528
USD/CHF 0.878
EUR/GBP 0.857
EUR/JPY 162.3
GBP/JPY 189.4
USD/CNY 7.24
+ 10 more major pairs

Paid — All 166+ Pairs

USD/INR 83.12
USD/BRL 4.97
USD/ZAR 18.62
EUR/TRY 32.41
USD/THB 35.18
BTC/USD 67,420
ETH/USD 3,580
SOL/USD 142.30
BTC/EUR 62,100
ETH/GBP 2,825
+ 156 more pairs + 30-day history

One request. Clean rates.

GET /v1/free/forex/rates:base

Get all rates for a base currency. Free tier returns 20 pairs. Paid returns all 166+.

curl "https://fx.4bots.ai/v1/free/forex/ratesUSD"

Example response:

{
  "base": "USD",
  "rates": {
    "EUR": 0.921,
    "GBP": 0.789,
    "JPY": 149.50,
    "CAD": 1.364,
    "AUD": 1.528,
    "CHF": 0.878,
    ...
  },
  "source": "open.er-api.com",
  "cached_at": "2026-06-17T14:15:00Z",
  "cache_ttl_seconds": 900,
  "free_remaining": 43
}

GET /v1/free/forex/rates

Convert a specific amount between two currencies.

curl "https://fx.4bots.ai/v1/free/forex/rates?from=USD&to=CAD&amount=100"

GET /v1/free/forex/rates

Get crypto rates. Paid tier only.

curl "https://fx.4bots.ai/v1/free/forex/rates?coins=btc,eth,sol&vs=usd,eur"

GET /health

Health check. Always free, always returns 200.

curl "https://fx.4bots.ai/health"

Free for light use. Pennies for power users.

50 free requests per day covers most agent workloads. Paid tier unlocks all pairs, crypto, and historical data.

Free
$0 / month
No wallet required
  • 50 requests / day
  • 20 major fiat pairs
  • 15-minute cache
  • JSON output
  • Primary + backup sources
Paid
$0.003 / request
via x402 USDC on Base
  • Unlimited requests
  • All 166 fiat pairs
  • BTC, ETH, SOL rates
  • 30-day historical data
  • 60-second cache freshness

Get current rates now.

No signup. No API key. Just send a request.

How x402 works