# Tollkit Extract – FX Rate Lookup

> Tollkit Extract – FX Rate Lookup is a paid API for AI agents from attest.tollkit.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Looks up a foreign exchange rate for a currency pair on a given date, paid per-call with USDC via x402 protocol.

## Facts

- Endpoint: POST https://attest.tollkit.dev/fx?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tollkit-extract-fx-rate-lookup-d4eca0a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_38ssk7d_ly_nl05zHZmnY

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 tollkit-extract-fx-rate-lookup-d4eca0a8 -d '<json body>'
```

Example prompt: What was the EUR to USD exchange rate on 2024-11-15 for an amount of 500 euros? Use Tollkit's pay-per-call FX lookup — no API key needed.

## When to prefer this

Choose this endpoint when you need a lightweight, anonymous, pay-as-you-go FX rate lookup with no account setup or API key management. Ideal for agents that need occasional historical or recent currency conversion data and want to pay micropayments per call via x402 on Base or Solana rather than subscribe to a currency data service.

## Known failure modes

- Invalid 3-letter currency code (non-alphabetic or unsupported pair) returns an error
- Date outside the 90-day lookback window returns a validation error
- Weekend date provided — endpoint uses the previous business day automatically
- Insufficient USDC balance or failed x402 payment results in 402 Payment Required
- Malformed date format (not YYYY-MM-DD) causes a schema validation failure

## How this service works

Pay-per-call product page extraction. No account, no API key: pay in-band with x402 in USDC on Base or Solana.

## Output

Returns the exchange rate (and optionally the converted amount) for the specified currency pair on the given date, paid for in-band with a micro USDC payment via x402 on Base or Solana — no account or API key required.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "pattern": "^[A-Za-z]{3}$"
  },
  "date": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "description": "YYYY-MM-DD within the last 90 days; weekends use the previous business day."
  },
  "from": {
   "type": "string",
   "pattern": "^[A-Za-z]{3}$"
  },
  "amount": {
   "type": "number",
   "default": 1,
   "minimum": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tollkit-extract-fx-rate-lookup-d4eca0a8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from attest.tollkit.dev](https://www.zero.xyz/host/attest.tollkit.dev/llms.txt)
