# Forex Historical Exchange Rates

> Forex Historical Exchange Rates is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054001/call, status healthy (last checked 2026-09-15, last successful call 2026-09-05).

Returns daily historical exchange rates between two currencies including average, min, max, and change percentage over a date range

## Facts

- Endpoint: GET https://api.strale.io/x402/forex-history
- Price: $0.054001/call
- Payment: x402
- Status: healthy
- Last checked: 2026-09-15
- Last successful call: 2026-09-05
- Success rate: 100% of calls made through Zero
- Rating: 4.7 / 5 from 1 review
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-a54ccbe7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3-GvvJg3w6_8FI8vxfEDr

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 api-strale-io-a54ccbe7
```

Example prompt: Can you pull the historical exchange rates from EUR to USD between January 1 and March 31, 2024, so I can see the daily rates, average, and how much the rate changed over that period?

## When to prefer this

Use this endpoint when you need historical daily forex rate data for a specific currency pair over a defined date range, especially when aggregate statistics like average, min, max, and change percentage are needed alongside raw daily rates. Prefer this over live rate endpoints when the use case involves backtesting, financial reporting, trend analysis, or historical comparisons.

## Known failure modes

- Invalid currency code returns error (e.g. unsupported or misspelled ISO 4217 code)
- Start date after end date may return empty or error response
- Future dates may return no data
- Missing required 'from' or 'to' parameters returns 400-level error
- Very long date ranges may return large payloads or timeout

## How this service works

Get historical exchange rates between two currencies. Returns daily rates, average, min, max, change percentage.

## Output

Returns daily exchange rate data for the requested currency pair and date range, including individual daily rates, average rate over the period, minimum rate, maximum rate, and percentage change from start to end of the period

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "from",
  "to"
 ],
 "properties": {
  "to": {
   "type": "string",
   "description": "Target currency (e.g. USD)"
  },
  "from": {
   "type": "string",
   "description": "Source currency (e.g. EUR)"
  },
  "end_date": {
   "type": "string"
  },
  "start_date": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "max": {
  "type": "number"
 },
 "min": {
  "type": "number"
 },
 "rates": {
  "type": "array"
 },
 "average": {
  "type": "number"
 },
 "change_percent": {
  "type": "number"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-a54ccbe7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
