# meld402 FX Quote Pro

> meld402 FX Quote Pro is a paid API for AI agents from meld402.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Converts a currency amount between any fiat or crypto pair using aggregated sources (Twelve Data, ExchangeRate, CoinGecko) and returns a unified rate with attribution metadata.

## Facts

- Endpoint: POST https://meld402.vercel.app/api/fx/quote-pro
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/meld402-fx-quote-pro-f3a19459
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Iv7bClLAnLejdBAvu83rP

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 meld402-fx-quote-pro-f3a19459 -d '<json body>'
```

Example prompt: What's the current exchange rate for converting 500 USD to EUR — pull it from the best available source and give me the rate and converted amount.

## When to prefer this

Choose this endpoint when you need a reliable, aggregated FX or crypto conversion rate with a single USDC micropayment rather than managing multiple API keys for Twelve Data, ExchangeRate, or CoinGecko yourself. Ideal for autonomous agents that need stable schema responses across fiat and crypto pairs without building source-fallback logic. Prefer over raw provider APIs when you want automatic source selection, attribution metadata, and a unified response format.

## Known failure modes

- Invalid or unsupported currency code returns a validation error
- Requested source (e.g. twelvedata) is unavailable and no fallback is possible — returns degraded or error response
- Amount of 0 or negative is rejected by schema validation
- Rate data may be stale if all upstream sources are delayed — check timestamp in response
- Network timeout from upstream providers causes slow or failed response

## How this service works

14 paid data endpoints for autonomous agents and developers. Covers crypto intelligence (token, chain, Solana, gas), markets (FX, market pulse), location (weather), and research (news, brief). Each route aggregates multiple public sources into one stable schema with a single USDC payment over x402 on Base.

## Output

Returns a JSON object with the exchange rate, converted amount, bid/ask prices, spread, timestamp, and the source that provided the data (e.g. Twelve Data). Also includes metadata with an as-of timestamp, list of sources queried, any degraded sources, and data attribution strings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "maxLength": 10,
   "minLength": 2,
   "description": "Target currency (ISO 4217 fiat code or crypto symbol)"
  },
  "from": {
   "type": "string",
   "maxLength": 10,
   "minLength": 2,
   "description": "Source currency (ISO 4217 fiat code or crypto symbol)"
  },
  "amount": {
   "type": "number",
   "default": 1,
   "maximum": 1000000000,
   "description": "Amount to convert",
   "exclusiveMinimum": 0
  },
  "source": {
   "enum": [
    "twelvedata",
    "exchangerate",
    "coingecko",
    "auto"
   ],
   "type": "string",
   "default": "auto",
   "description": "Force specific source"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "to": "EUR",
   "ask": null,
   "bid": null,
   "from": "BTC",
   "rate": 66291.14,
   "amount": 1,
   "result": 66291.14,
   "source": "twelvedata",
   "spread": null,
   "timestamp": "2026-08-23T21:00:00.000Z"
  },
  "meta": {
   "as_of": "2026-08-24T00:00:00.000Z",
   "sources": [
    "twelvedata"
   ],
   "degraded": [],
   "attribution": [
    "FX rates by Twelve Data (twelvedata.com)"
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/meld402-fx-quote-pro-f3a19459/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from meld402.vercel.app](https://www.zero.xyz/host/meld402.vercel.app/llms.txt)
