# Delx FX Convert Amount

> Delx FX Convert Amount is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Convert a monetary amount between two currencies using a caller-supplied exchange rate, returning deterministic conversion results as JSON

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/fx-convert-amount
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-fx-convert-amount-cc2d9caf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h7oneKD4KiT4GdAiKn5Rz

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 delx-fx-convert-amount-cc2d9caf -d '<json body>'
```

Example prompt: Convert 1000 USD to EUR using an exchange rate of 1.08 on the buy side and give me the result as a number.

## When to prefer this

Choose this endpoint when you already have an exchange rate from an external source and need deterministic, stateless computation of the converted amount — ideal for preflight checks, invoice generation, portfolio valuation, or any workflow where you supply your own rate and want a reliable machine-readable result without hitting a live FX feed or incurring upstream data costs.

## Known failure modes

- Missing required fields (base, quote, amount, or rate) result in a validation error
- Non-numeric or zero/negative rate may cause computation errors
- Invalid or unrecognized currency codes may result in rejection or ambiguous output
- Amount as integer may cause precision issues for fractional currency values
- Payment failure via x402 protocol prevents endpoint access

## How this service works

Convert an amount with a caller-supplied FX rate (no live feed) — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already…

## Output

Returns a deterministic machine-readable JSON object containing the converted amount derived from applying the caller-supplied rate to the input amount, along with the base and quote currency identifiers and conversion side used — no live market data, no external calls, purely computed from provided inputs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "string",
   "description": "Input field: base."
  },
  "rate": {
   "type": "number",
   "description": "Input field: rate."
  },
  "side": {
   "type": "string",
   "description": "Input field: side."
  },
  "quote": {
   "type": "string",
   "description": "Input field: quote."
  },
  "amount": {
   "type": "integer",
   "description": "Input field: amount."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "base": "USD",
  "note": "Caller supplies rate; not a live FX feed",
  "rate": 5.2,
  "side": "multiply",
  "quote": "BRL",
  "amount": 100,
  "schema": "delx/util-fx-convert-amount/v1",
  "decimals": 6,
  "converted": 520
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-fx-convert-amount-cc2d9caf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
