# Trusted Information API — FX Currency Exchange Rates

> Trusted Information API — FX Currency Exchange Rates is a paid API for AI agents from api.trustedinformation.site, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns live foreign exchange rates from the European Central Bank for one or more currency pairs, with optional amount conversion.

## Facts

- Endpoint: GET https://api.trustedinformation.site/api/markets/fx
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/trusted-information-api-fx-currency-exchange-rates-1acbda42
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0E0vgbkSth6xiPnipC4FY

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability trusted-information-api-fx-currency-exchange-rates-1acbda42
```

Example prompt: What's today's GBP to USD and EUR exchange rate — and how much would 250 GBP convert to in both currencies?

## When to prefer this

Choose this endpoint when you need official, ECB-sourced foreign exchange rates without API keys or sign-up, especially when billing must be pay-per-call and failed calls must not be charged. Prefer over generic FX APIs when official European Central Bank provenance matters, or when building lightweight agent workflows that need spot rates for GBP-based conversions.

## Known failure modes

- Unsupported or invalid ISO currency code returns an error
- ECB data unavailable on weekends or public holidays may return stale rates
- Missing required query parameters (from/to) may result in a bad request error
- Network or upstream Frankfurter API downtime may cause timeouts; failed calls are not charged

## How this service works

Pay-per-call UK company, property and crypto market data for AI agents via x402. Official sources, no signup, no API keys, failed calls never charged.

## Output

A JSON object containing the base currency, the date the rates are valid for (asOf), a rates map of target currency codes to their exchange rates against the base, the amount used, the source (European Central Bank via Frankfurter), and a converted map showing the actual converted amounts for each target currency.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "to": {
       "type": "string",
       "description": "Comma-separated target currencies, e.g. USD,EUR"
      },
      "from": {
       "type": "string",
       "description": "Base currency (ISO code), e.g. GBP"
      },
      "amount": {
       "type": "string",
       "description": "Optional amount to convert (default 1)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "base",
      "asOf",
      "rates"
     ],
     "properties": {
      "asOf": {
       "type": "string"
      },
      "base": {
       "type": "string"
      },
      "rates": {
       "type": "object"
      },
      "amount": {
       "type": "number"
      },
      "converted": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asOf": "2026-07-24",
  "base": "GBP",
  "rates": {
   "EUR": 1.1711,
   "USD": 1.3324
  },
  "amount": 1,
  "source": "European Central Bank (Frankfurter)",
  "converted": {
   "EUR": 1.1711,
   "USD": 1.3324
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trusted-information-api-fx-currency-exchange-rates-1acbda42/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.trustedinformation.site](https://www.zero.xyz/host/api.trustedinformation.site/llms.txt)
