{
  "format": "delx/intent-card/v1",
  "id": "currency-exchange-rates-api",
  "intent": "get currency exchange rates for an agent",
  "title": "Currency exchange rates API for agents",
  "description": "Get daily ECB reference rates and bounded cross-rates for $0.001 with source attribution; informational only, not a transaction quote or trading advice.",
  "keywords": [
    "currency exchange rates API",
    "FX rates API",
    "forex reference rates",
    "ECB exchange rates",
    "currency conversion for agents",
    "x402 finance API"
  ],
  "updated_at": "2026-08-01",
  "canonical_url": "https://commerce.delx.ai/intents/currency-exchange-rates-api",
  "machine_url": "https://commerce.delx.ai/intents/currency-exchange-rates-api.json",
  "recommendation": {
    "tool_name": "get_fx_rates_ecb",
    "service_name": "Delx ECB FX Rates",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/fx-rates",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "base_currency": {
          "type": "string",
          "pattern": "^[A-Za-z]{3}$",
          "default": "EUR",
          "description": "Three-letter ISO currency code used as the base."
        },
        "quotes": {
          "type": "array",
          "maxItems": 20,
          "items": {
            "type": "string",
            "pattern": "^[A-Za-z]{3}$"
          },
          "description": "Optional quote currencies; omit to return all currencies in the selected ECB publication."
        },
        "date": {
          "type": "string",
          "format": "date",
          "description": "Optional ECB publication date, today or up to 31 days in the past."
        },
        "timeout": {
          "type": "integer",
          "minimum": 2,
          "maximum": 8,
          "default": 8
        }
      },
      "required": [],
      "additionalProperties": false
    },
    "example_input": {
      "base_currency": "USD",
      "quotes": [
        "EUR",
        "BRL"
      ]
    },
    "example_output": {
      "tool_name": "get_fx_rates_ecb",
      "result": {
        "schema": "delx/fx-rates/v1",
        "base_currency": "USD",
        "rates": {
          "EUR": "0.87804021",
          "BRL": "5.742383"
        },
        "rate_date": "2026-07-31",
        "requested_quotes": [
          "EUR",
          "BRL"
        ],
        "provider": "European Central Bank",
        "provider_url": "https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html",
        "reuse_policy_url": "https://www.ecb.europa.eu/stats/ecb_statistics/governance_and_quality_framework/html/usage_policy.en.html",
        "attribution": "Reference rates supplied by the European Central Bank; see provider_url and reuse_policy_url for source and reuse terms.",
        "data_note": "Informational reference rates only; this is not a transaction quote, execution venue, or trading advice.",
        "cache": "miss",
        "upstream_error": false
      }
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/fx-rates -m POST -H 'x-delx-source: intent-card-currency-exchange-rates-api' --max-amount 0.001 -b '{\"base_currency\":\"USD\",\"quotes\":[\"EUR\",\"BRL\"]}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-currency-exchange-rates-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/fx-rates"
  }
}
