Skip to content
onelayer.
All tools

Tool detail

forex

Returns real-time forex exchange rates, including inverse rates, between currencies via the European Central Bank.

Categories: Currency exchange, Market prices

Use when

  • convert one currency to another at current FX rates
  • get batch exchange rates for several target currencies
  • check the latest ECB reference exchange rate

Not for

  • not historical/time-series FX data — latest rate only
  • not crypto exchange rates — fiat forex only

Inputs

GET query params: to (string, required, currency or comma list, e.g. EUR or EUR,GBP,JPY; alias symbols); from (string, optional, default USD, alias base)

Admitted input schema

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Base currency code (single), e.g. USD. Alias: base. Default USD."
    },
    "to": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Target currency or comma-separated list, e.g. EUR or EUR,GBP,JPY,CNY. Alias: symbols."
    }
  },
  "required": [
    "to"
  ],
  "additionalProperties": false
}

Endpoint

Method
GET
URL
https://api.x402node.dev/finance/forex

Payment

Protocol
x402
Listed price
0.008 USDC per request on Base (Solana also accepted)
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
GET https://api.x402node.dev/finance/forex
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z