# Losbeto Forex Rate API

> Losbeto Forex Rate API is a paid API for AI agents from api.losbeto.xyz, paid per call via x402, $0.012/call, status unknown (last checked 2026-09-14).

Returns live foreign exchange (forex) rates, payable via USDC micropayments on Solana or Base.

## Facts

- Endpoint: GET https://api.losbeto.xyz/forex-rate
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-forex-rate-api-758fd1d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__ZFqAzSh-6dynkYOuF6W6

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 losbeto-forex-rate-api-758fd1d5
```

Example prompt: What's the current exchange rate from USD to EUR right now?

## When to prefer this

Choose this endpoint when you need real-time forex rates within an agent workflow that already supports x402 USDC micropayments on Solana or Base, and you want a low-cost ($0.012/call) pay-per-use model without a subscription. Especially suitable for AI trading swarms or automated financial agents making frequent, lightweight rate lookups.

## Known failure modes

- Missing or invalid currency pair parameter returns an error
- Unsupported currency codes may return a 400 or empty result
- Payment failure (insufficient USDC or wrong chain) results in 402 response
- Service downtime or upstream data provider issues may cause 5xx errors
- Stale data if underlying feed is delayed

## How this service works

OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana and Algorand via x402.

## Output

A JSON response containing the current exchange rate for the requested currency pair, likely including the base currency, quote currency, and the numeric rate value.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "properties": {
    "queryParams": {
     "properties": {
      "pair": {
       "description": "Currency pair, e.g. EUR/USD, GBP/USD, USD/JPY",
       "type": "string"
      }
     },
     "type": "object"
    }
   },
   "type": "object"
  },
  "output": {
   "properties": {
    "example": {
     "description": "Live FX rate for major pairs (?pair=EUR/USD): EUR, GBP, JPY, CHF, AUD, CAD crosses with the provider named in the response. [Wrapper over a free public source (https://exchangerate-api.com (free tier)) — you pay for one schema, one payment rail, signed receipts and monitored uptime.]",
     "type": "object"
    }
   },
   "type": "object"
  }
 },
 "required": [
  "input"
 ],
 "type": "object"
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/losbeto-forex-rate-api-758fd1d5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.losbeto.xyz](https://www.zero.xyz/host/api.losbeto.xyz/llms.txt)
