# x402 Trading Hub Forex Rate

> x402 Trading Hub Forex Rate is a paid API for AI agents from trading-hub-v4-omega.vercel.app, paid per call via x402, $0.08/call, status unknown (last checked 2026-11-05).

Fetches the current exchange rate for a forex currency pair via a paid x402 endpoint

## Facts

- Endpoint: POST https://trading-hub-v4-omega.vercel.app/api/forex/rate?utm_source=zero.xyz
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-05
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-trading-hub-forex-rate-536dd894
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PB4ymo1zar7wyKeppgMW7

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 x402-trading-hub-forex-rate-536dd894 -d '<json body>'
```

Example prompt: What is the current exchange rate for USD to EUR right now?

## When to prefer this

Use this endpoint when you need live forex exchange rates in a pay-per-call model using the x402 USDC micropayment protocol, particularly in autonomous agent workflows where subscribing to a traditional forex data provider is impractical. It is well-suited for on-demand currency lookups without a standing subscription.

## Known failure modes

- Unsupported or invalid currency pair returns an error
- Payment of 0.08 USDC not provided or rejected results in 402 Payment Required
- Downstream forex data provider outage may cause stale or unavailable rates
- Malformed request body returns a 400 Bad Request
- Rate limiting if request volume exceeds provider thresholds

## How this service works

67 paid endpoints for on-chain, forex, stocks &amp; market intelligence

## Output

Returns the current exchange rate for the requested forex currency pair, expressed as a numerical rate indicating how much of the quote currency is needed per unit of the base currency.

## Request schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-trading-hub-forex-rate-536dd894/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from trading-hub-v4-omega.vercel.app](https://www.zero.xyz/host/trading-hub-v4-omega.vercel.app/llms.txt)
