# CortexCloud FX History

> CortexCloud FX History is a paid API for AI agents from api.cortexcloud.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Retrieves historical foreign exchange (FX) rate data for currency pairs via a pay-per-call API using USDC on Base

## Facts

- Endpoint: GET https://api.cortexcloud.org/x402/v1/fx/history
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cortexcloud-fx-history-34adc832
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NA3M5vXwuOuzgUJl0bwcZ

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 cortexcloud-fx-history-34adc832
```

Example prompt: Can you pull the historical exchange rates for USD to EUR over the past 30 days so I can see how the rate has moved?

## When to prefer this

Choose this endpoint when you need historical FX rate data without committing to a subscription or API key — ideal for agents that make infrequent or one-off forex lookups and want to pay only per call in USDC on Base via x402. Best for lightweight, on-demand financial data needs rather than high-frequency or bulk data pipelines.

## Known failure modes

- Missing or invalid currency pair parameter returns an error
- Date range too large may result in truncated or error response
- Payment failure via x402 protocol results in 402 Payment Required response
- Unsupported currency codes return an error or empty result
- Malformed query parameters return a 400 Bad Request

## How this service works

OpenAI-compatible AI and data API for agents. Pay per call in USDC on Base via x402 — no API keys, no subscriptions, no lock-in.

## Output

Returns a JSON object containing historical foreign exchange rate data for the requested currency pair and time range, including timestamped rate values as a time series

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "format": "application/json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cortexcloud-fx-history-34adc832/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.cortexcloud.org](https://www.zero.xyz/host/api.cortexcloud.org/llms.txt)
