# PennyRail FX Currency Conversion

> PennyRail FX Currency Conversion is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Converts an amount between two currencies using live exchange rates, returning the converted value via a paid settlement endpoint.

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/network/fx.convert--exchange-rate
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-fx-currency-conversion-482749dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YFeELMQumRuVpPpcOZnYU

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 pennyrail-fx-currency-conversion-482749dd -d '<json body>'
```

Example prompt: Convert 750 US dollars to Japanese yen using the current exchange rate.

## When to prefer this

Use this endpoint when you need a quick, pay-per-call FX conversion without managing API keys or subscriptions — ideal for agents that only occasionally need currency conversion and want a low-friction, micro-payment-gated lookup via x402 protocol.

## Known failure modes

- Unsupported currency code returns an error or empty result
- Payment of 0.003 USDC not fulfilled causes HTTP 402 and no data returned
- Malformed input object causes validation failure
- Rate data temporarily unavailable due to upstream FX feed outage

## How this service works

Machine-readable settlement service

## Output

Returns the converted currency amount and the exchange rate applied between the source and target currency pair, as a JSON object.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-fx-currency-conversion-482749dd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
