# Bank of Canada FX Rates (BOC Valet)

> Bank of Canada FX Rates (BOC Valet) is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns official Bank of Canada daily foreign exchange rate observations for one or more currency pairs via the BOC Valet API.

## Facts

- Endpoint: GET https://data.greeneris.io/v1/ca/boc-rates
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bank-of-canada-fx-rates-boc-valet-54af0fd0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QawZEAzPjmkObN_Qv8aWT

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 bank-of-canada-fx-rates-boc-valet-54af0fd0
```

Example prompt: What's the official Bank of Canada USD/CAD exchange rate for the last 5 days? Use the BOC Valet data and give me the daily observations.

## When to prefer this

Use this endpoint when you need official, authoritative Bank of Canada daily FX rates (not real-time tick data), especially for CAD-denominated currency pairs. Prefer this over commercial FX APIs when regulatory or audit-grade sourcing from a central bank is required, or when cost is a concern ($0.002/call). Ideal for batch historical lookups of up to 60 days and up to 10 series per call.

## Known failure modes

- Invalid series code returns empty or error response
- Requesting more than 10 series at once may be rejected
- Recent parameter outside 1-60 range may return error
- HTTP 402 returned if payment not provided — must pay $0.002 USDC via x402 on Base before data is returned
- No data returned for weekends/holidays when BOC does not publish rates

## How this service works

Official Bank of Canada Valet observations, normalized JSON. Query: ?series=FXUSDCAD,FXEURCAD&recent=5 (1-10 comma-separated codes; FX pairs like FXUSDCAD/FXEURCAD/FXGBPCAD, overnight target rate V39079, prime rate V80691311). recent=N returns the last N daily observations (default 1, max 60). Primary-source CAD reference, published each business day; 6h cache.

## Output

A JSON object containing labeled exchange rate series (e.g. FXUSDCAD) with an array of date/value observation pairs and a source attribution to the Bank of Canada Valet API.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "recent": {
       "type": "integer",
       "default": 1,
       "description": "Last N daily observations (1-60)"
      },
      "series": {
       "type": "string",
       "default": "FXUSDCAD",
       "description": "Comma-separated Valet series codes (max 10)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "series": {
   "FXUSDCAD": {
    "label": "USD/CAD",
    "observations": [
     {
      "date": "2026-07-10",
      "value": 1.4146
     }
    ]
   }
  },
  "source": "Bank of Canada Valet API (official daily data)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bank-of-canada-fx-rates-boc-valet-54af0fd0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
