# agent402.tools FX Timeseries

> agent402.tools FX Timeseries is a paid API for AI agents from agent402.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns daily exchange rates between two currencies over a specified date range using European Central Bank reference rates via Frankfurter

## Facts

- Endpoint: GET https://agent402.tools/api/fx-timeseries
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-fx-timeseries-2ed5ada1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_McQXqo1rQPyNhRSfiTgZD

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 agent402-tools-fx-timeseries-2ed5ada1
```

Example prompt: Can you pull the daily ECB reference exchange rates from USD to EUR for the entire month of January 2024, from January 2nd through January 31st?

## When to prefer this

Use this endpoint when you need a sequence of daily FX rates over a date range rather than a single current or point-in-time conversion. Ideal for trend analysis, financial reporting, backtesting, budgeting, or charting historical currency movements. Prefer over a spot-rate endpoint when the task requires multiple days of data. The ECB reference rates are authoritative, free from commercial markup, and widely accepted for financial reconciliation.

## Known failure modes

- Invalid or unsupported 3-letter currency code returns an error
- Start date after end date may return empty or error response
- Dates outside ECB historical data coverage (pre-1999) may fail
- Weekend/holiday dates may return no rate for those specific days since ECB doesn't publish on non-business days
- Malformed date format (not YYYY-MM-DD) returns a validation error

## How this service works

Daily FX rates between two currencies across a date window using European Central Bank reference rates (via Frankfurter). ?from=USD&to=EUR&startDate=2024-01-02&endDate=2024-01-31

## Output

A date-keyed object containing daily exchange rate values between the requested currency pair across the specified date window, sourced from European Central Bank reference rates via Frankfurter.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "from",
      "to",
      "startDate",
      "endDate"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "3-letter target currency code"
      },
      "from": {
       "type": "string",
       "description": "3-letter source currency code"
      },
      "endDate": {
       "type": "string",
       "description": "ISO end date (YYYY-MM-DD)"
      },
      "startDate": {
       "type": "string",
       "description": "ISO start date (YYYY-MM-DD)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "from",
      "to",
      "startDate",
      "endDate",
      "count",
      "series"
     ],
     "properties": {
      "to": {
       "type": "string"
      },
      "from": {
       "type": "string"
      },
      "count": {
       "type": "integer"
      },
      "series": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string"
         },
         "rate": {
          "type": "number"
         }
        }
       }
      },
      "endDate": {
       "type": "string"
      },
      "startDate": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "EUR",
  "from": "USD",
  "count": 22,
  "series": [
   {
    "date": "2024-01-02",
    "rate": 0.9128
   }
  ],
  "endDate": "2024-01-31",
  "startDate": "2024-01-02"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-fx-timeseries-2ed5ada1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
