# Bank of Canada — CAD FX Rates & GoC Yield Curve (`gochujang/bank-of-canada-rates`) Actor

Fetch Bank of Canada official data: USD/CAD, EUR/CAD, GBP/CAD and 7 more CAD cross rates (daily), Government of Canada yield curve (3M to 30Y), Bank Rate, and Prime Rate. Uses the BoC Valet API — free, no key required.

- **URL**: https://apify.com/gochujang/bank-of-canada-rates.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Categories:** Business
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 series fetcheds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bank of Canada — CAD FX Rates & GoC Yield Curve

**Bank of Canada Rates** fetches official data from the **Bank of Canada Valet API** — covering 10 CAD cross-rates (daily), the full Government of Canada yield curve (3M to 30Y), Bank Rate (overnight rate target), and Prime Rate — all in one structured dataset. Free, no API key required. $0.001/series.

The Bank of Canada Valet API is one of the cleanest central bank data feeds available: structured, well-documented, and completely free. This actor wraps it into a normalized format suitable for trading models, macro research, and financial dashboards.

***

### Why use Bank of Canada Rates?

1. **CAD/USD macro trading** — Monitor Bank Rate alongside USD/CAD daily spot rates to track the BoC–Fed rate differential. Rate differentials drive currency pairs — this actor gives you both legs in one run.
2. **GoC yield curve analysis** — Build 2Y–10Y spread monitors or term premium trackers using the full nominal curve. The 2–10 spread inversion has preceded every Canadian recession in recent history.
3. **Canadian mortgage rate forecasting** — The 5-year GoC yield (`BD.CDN.5YR.DQ.YLD`) is the benchmark for fixed-rate mortgages in Canada. Track its weekly moves to anticipate mortgage rate changes.
4. **Real yield monitoring** — The Real Return Bond (RRB) yield is Canada's inflation-linked equivalent of US TIPS. `nominal 10Y - RRB` = market's implied inflation expectation (break-even).
5. **Carry trade screening** — Pull AUD/CAD, NZD/CAD, and other crosses to model high-yield vs. low-yield currency pair dynamics.

***

### How to use

1. Open the actor on Apify Store and click **Try for free**.
2. Set `mode` to choose which data to fetch (`fx_rates`, `yields`, `policy_rates`, or `all`).
3. Set `since` for a historical start date, or `recent: 5` for only the last 5 observations per series.
4. Click **Start**. Returns structured records, one row per series per date.

***

### Input

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `mode` | string | `"all"` | `fx_rates`, `yields`, `policy_rates`, or `all` |
| `since` | string | `"2020-01-01"` | Start date (YYYY-MM-DD). Ignored if `recent` is set. |
| `recent` | integer | `0` | Return only the last N observations per series (0 = use `since`) |

***

### Output

```json
[
  {
    "mode": "fx_rates",
    "series_code": "FXUSDCAD",
    "date": "2026-08-30",
    "value": 1.3734,
    "pair": "USD/CAD",
    "base_currency": "USD",
    "quote_currency": "CAD",
    "description": "US Dollar to Canadian Dollar",
    "source": "Bank of Canada Valet API"
  },
  {
    "mode": "yields",
    "series_code": "BD.CDN.10YR.DQ.YLD",
    "date": "2026-08-30",
    "value": 3.74,
    "label": "GoC 10-Year Bond",
    "tenor": "10Y",
    "bond_type": "government_bond",
    "unit": "% per annum"
  },
  {
    "mode": "policy_rates",
    "series_code": "YRCA",
    "date": "2026-06-05",
    "value": 4.75,
    "label": "Bank of Canada Policy Rate (Overnight Rate Target)",
    "category": "central_bank",
    "unit": "% per annum"
  }
]
```

#### Series coverage

| Mode | Series | Coverage |
|------|--------|----------|
| `fx_rates` | 10 pairs | USD/CAD, EUR/CAD, GBP/CAD, JPY/CAD, AUD/CAD, CHF/CAD, CNY/CAD, HKD/CAD, MXN/CAD, SEK/CAD |
| `yields` | 9 series | 3M T-Bill, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, Long (~30Y), Real Return Bond |
| `policy_rates` | 3 series | Bank Rate, Prime Rate, Overnight Money Market Rate |

***

### Cost estimation

**Pay-Per-Event: $0.001 per series fetched.**

| Use case | Series | Estimated cost |
|----------|--------|----------------|
| All modes (~22 series) | 22 | ~$0.02/run |
| Yields only (9 series) | 9 | ~$0.009/run |
| FX only (10 series) | 10 | ~$0.01/run |
| Daily monitoring | 22/day | ~$0.02/day |

***

### FAQ

**Do I need an API key?**
No. The Bank of Canada Valet API is completely free and open — no registration, no authentication.

**How current is the data?**
FX rates and bond yields are published on business days, typically end-of-day Eastern time. The Bank Rate updates on BoC announcement dates (8 per year). Weekends and holidays appear as gaps — this is expected.

**Why are some series missing some dates?**
The BoC only publishes on business days. Holiday dates are simply absent from the series — this is correct behavior.

**Can I get intraday CAD rates?**
No. The Valet API provides official end-of-day rates only. For intraday FX, use a market data provider.

***

### Data source

Official [Bank of Canada Valet API](https://www.bankofcanada.ca/valet/docs) — free, no registration required. Published by the Bank of Canada.

***

### Related actors

- [Fed Rate Probability Tracker](https://apify.com/gochujang/fed-rate-probability) — US Federal Reserve rate expectations to complement BoC data
- [Crypto ETF Flow Tracker](https://apify.com/gochujang/crypto-etf-flow-tracker) — CAD-denominated crypto ETFs (Purpose Bitcoin ETF, etc.) listed on TSX
- [Altcoin BTC-Relative Performance](https://apify.com/gochujang/altcoin-btc-performance) — CAD/USD moves often correlate with risk-on crypto rotation

### Feedback

If this actor is useful for your macro research, a quick review helps others find it: [Leave a review on Apify Store](https://apify.com/gochujang/bank-of-canada-rates#reviews)

***

**Keywords:** Bank of Canada rates, CAD exchange rate, USD CAD rate, Canadian interest rate, BoC Valet API, Canadian yield curve, Government of Canada bonds, Bank Rate Canada, Prime Rate Canada, CAD macro data, Canadian monetary policy, FX rates Canada, Canadian economic data, central bank rate Canada, fixed income Canada

# Actor input Schema

## `mode` (type: `string`):

What data to fetch. 'fx_rates': USD/CAD, EUR/CAD, GBP/CAD and 7 more CAD crosses (daily). 'yields': GoC yield curve (3M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, long, RRB). 'policy_rates': Bank Rate (overnight rate target), Prime Rate, overnight money market. 'all': everything.

## `since` (type: `string`):

Fetch data from this date onwards. Format: YYYY-MM-DD. Ignored if 'recent' is set.

## `recent` (type: `integer`):

Return only the N most recent observations per series. Set to 0 to use 'since' date instead.

## Actor input object example

```json
{
  "mode": "all",
  "since": "2020-01-01",
  "recent": 0
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/bank-of-canada-rates").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("gochujang/bank-of-canada-rates").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call gochujang/bank-of-canada-rates --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gochujang/bank-of-canada-rates"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Z5J3hdWIQ5o9Sh1gU/builds/kHNfDjdxgazANwtDC/openapi.json
