# FX Revalue Amount

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

Revalues a notional amount by comparing a historical (source) FX rate against a current (target) FX rate, returning the revalued amount as deterministic JSON.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/fx-revalue-amount
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fx-revalue-amount-0258cc79
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KmSwMvp0xghp1f1qeVLCP

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 fx-revalue-amount-0258cc79 -d '<json body>'
```

Example prompt: Revalue a notional of 1,000,000 EUR that was booked at a rate of 1.08 USD/EUR — what's it worth at today's rate of 1.12 USD/EUR?

## When to prefer this

Use this endpoint when you need a deterministic, advisory FX revaluation using two caller-supplied rates (e.g., ECB-style historical-vs-current comparisons) and do not need a live market feed or external rate lookup. Ideal for agents performing mark-to-market, P&L estimation, or treasury revaluation workflows where both rates are already known. Prefer this over market-data endpoints when reproducibility and auditability of the math matters and the caller controls the rate inputs.

## Known failure modes

- Missing required fields (amount, rate_from, or rate_to) result in a validation error
- rate_from of zero causes a division-by-zero error
- Non-numeric inputs for amount or rates return a schema validation error
- Payment failure (insufficient USDC balance or x402 protocol error) blocks the request

## How this service works

Revalue amount by two rates (historical vs current). Call when ECB-style revaluation when rates are caller-supplied. Returns revalued_amount as deterministic JSON for $0.002 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a JSON object containing revalued_amount, which is the notional amount scaled by the ratio of the target rate (rate_to) to the source rate (rate_from). The computation is purely local arithmetic with no external data fetched.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount": {
   "type": "number",
   "description": "Notional amount to revalue"
  },
  "rate_to": {
   "type": "number",
   "description": "Target FX rate"
  },
  "rate_from": {
   "type": "number",
   "description": "Source FX rate"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-fx-revalue-amount/v1",
  "revalued_amount": 110
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fx-revalue-amount-0258cc79/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)
