# Agent Time & Place — FX Currency Conversion

> Agent Time & Place — FX Currency Conversion is a paid API for AI agents from time-place.agent-utils.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Converts an amount from one ISO 4217 currency to one or more target currencies using live exchange rates.

## Facts

- Endpoint: GET https://time-place.agent-utils.workers.dev/v1/convert
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-time-place-fx-currency-conversion-23732598
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eSQSR0d01Dzb13EgNtpST

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 agent-time-place-fx-currency-conversion-23732598
```

Example prompt: What's the current exchange rate from USD to EUR and JPY, and how much would 250 USD come out to in each?

## When to prefer this

Choose this endpoint when you need deterministic, low-cost FX conversion without managing API keys — payment via x402 micropayment is authentication. Ideal for AI agents that need on-demand currency conversion as a utility call, supporting multiple target currencies in a single request. Prefer over free-tier FX APIs when you want no key management and sub-cent per-call pricing.

## Known failure modes

- Invalid or unsupported ISO 4217 currency code returns an error
- Missing required 'from' or 'to' query parameter returns a 400-level error
- Payment not provided or insufficient causes a 402 Payment Required response
- Rate data temporarily unavailable from upstream provider may cause a 503 or stale response

## How this service works

Geocoding, timezones, holidays, business days, sun times, FX and distances for AI agents. Deterministic, sub-cent, no API key: payment is authentication (x402).

## Output

Returns a JSON object with the source currency, the requested amount, the timestamp of the rates, the data source (open.er-api.com), and an array of results each containing the target currency code, the exchange rate, and the converted amount.

## 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",
     "required": [
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "ISO 4217 code, or comma list for several targets"
      },
      "from": {
       "type": "string",
       "description": "ISO 4217 code"
      },
      "amount": {
       "type": "number",
       "default": 1
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": "string"
      },
      "from": {
       "type": "string"
      },
      "amount": {
       "type": "number"
      },
      "source": {
       "type": "string"
      },
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "to": {
          "type": "string"
         },
         "rate": {
          "type": "number"
         },
         "converted": {
          "type": "number"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asOf": "2026-09-06T00:02:31.000Z",
  "from": "USD",
  "amount": 100,
  "source": "open.er-api.com",
  "results": [
   {
    "to": "EUR",
    "rate": 0.8604,
    "converted": 86.04
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-time-place-fx-currency-conversion-23732598/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from time-place.agent-utils.workers.dev](https://www.zero.xyz/host/time-place.agent-utils.workers.dev/llms.txt)
