# AgentBit FX Rates

> AgentBit FX Rates is a paid API for AI agents from agentbit.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns live foreign-exchange mid, bid, and ask rates for one or more currency pairs, sourced from ECB reference data with a 30-second cache.

## Facts

- Endpoint: POST https://agentbit.app/v1/finance/fx
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentbit-fx-rates-e1ef31b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TdkdPt7UgxC8GHmNYWJ-w

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 agentbit-fx-rates-e1ef31b1 -d '<json body>'
```

Example prompt: What are the current exchange rates for EUR/USD, EUR/RON, and USD/JPY? I need the mid rate, indicative bid/ask, and confidence score for each pair.

## When to prefer this

Choose this endpoint when you need ECB-derived, authoritative mid/bid/ask FX rates for one or more pairs in a single call, especially for EUR-anchored pairs. Prefer it over general financial data APIs when you need source attribution, confidence scoring, and timestamp freshness signals bundled together for finance agents, pricing engines, or compliance workflows.

## Known failure modes

- Unsupported or malformed currency pair string returns an error or empty result for that pair
- Pairs array is empty or missing — request validation error
- ECB data temporarily unavailable — may return stale cached data or error
- Non-standard pair notation (e.g. EURUSD instead of EUR/USD) may not be recognized
- Rate confidence is lower for exotic or illiquid pairs with sparse ECB coverage

## How this service works

Live foreign-exchange rates for one or many currency pairs (e.g. EUR/USD, EUR/RON, USD/JPY) with mid, indicative bid/ask, source attribution, timestamp and confidence. ECB-derived reference rates, cached 30 seconds. Use for pricing, conversions and finance agents.

## Output

A structured response containing, for each requested currency pair: the mid rate, indicative bid and ask rates, source attribution (ECB), an ISO timestamp of when the rate was last fetched, and a confidence score indicating data freshness and reliability. Rates are cached for up to 30 seconds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pairs": {
   "type": "array",
   "items": {
    "type": "string"
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rates": [
   {
    "ask": 1.0847,
    "bid": 1.0837,
    "mid": 1.0842,
    "pair": "EUR/USD",
    "sources": [
     "ecb/frankfurter"
    ],
    "confidence": 0.95
   }
  ],
  "timestamp": "2026-08-31T12:00:00+00:00"
 }
}
```

## More

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