Fx rates
curl --request POST \
--url https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/fx-rates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"currencies": [
"USD",
"EUR"
],
"date": "2026-10-23"
}
'import requests
url = "https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/fx-rates"
payload = {
"currencies": ["USD", "EUR"],
"date": "2026-10-23"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({currencies: ['USD', 'EUR'], date: '2026-10-23'})
};
fetch('https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/fx-rates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/fx-rates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currencies' => [
'USD',
'EUR'
],
'date' => '2026-10-23'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/fx-rates"
payload := strings.NewReader("{\n \"currencies\": [\n \"USD\",\n \"EUR\"\n ],\n \"date\": \"2026-10-23\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/fx-rates")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"currencies\": [\n \"USD\",\n \"EUR\"\n ],\n \"date\": \"2026-10-23\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/fx-rates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"currencies\": [\n \"USD\",\n \"EUR\"\n ],\n \"date\": \"2026-10-23\"\n}"
response = http.request(request)
puts response.read_body{
"attribution": "Source: Bank of Canada",
"currencies": [
"EUR",
"USD"
],
"latest_date": "2026-10-23",
"note": "Bank of Canada daily exchange rates are indicative averages of aggregated quotes, published once each business day by 16:30 ET as Canadian dollars per unit of foreign currency. There are no rates for weekends or Bank of Canada holidays. units_per_cad is derived by this program as 1 / cad_per_unit, rounded to 8 significant digits.",
"observed_at_ms": 1792968772049,
"rate_count": 2,
"rates": [
{
"cad_per_unit": 1.5667,
"currency": "EUR",
"date": "2026-10-23",
"label": "EUR/CAD",
"series": "FXEURCAD",
"units_per_cad": 0.63828429
},
{
"cad_per_unit": 1.3993,
"currency": "USD",
"date": "2026-10-23",
"label": "USD/CAD",
"series": "FXUSDCAD",
"units_per_cad": 0.71464304
}
],
"source_url": "https://www.bankofcanada.ca/valet/observations/FXUSDCAD,FXEURCAD/json?start_date=2026-10-23&end_date=2026-10-23",
"terms_url": "https://www.bankofcanada.ca/terms/"
}Bank of Canada (Valet API and press feeds)
Fx rates
Official CAD exchange rates, e.g. USD/CAD on a date, the latest EUR/CAD, a month of rates for invoicing or tax conversions.
POST
https://api.aisa.one
/
apis
/
v1
/
bankofcanada-ca
/
economic-data
/
fx-rates
Fx rates
curl --request POST \
--url https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/fx-rates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"currencies": [
"USD",
"EUR"
],
"date": "2026-10-23"
}
'import requests
url = "https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/fx-rates"
payload = {
"currencies": ["USD", "EUR"],
"date": "2026-10-23"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({currencies: ['USD', 'EUR'], date: '2026-10-23'})
};
fetch('https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/fx-rates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/fx-rates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currencies' => [
'USD',
'EUR'
],
'date' => '2026-10-23'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/fx-rates"
payload := strings.NewReader("{\n \"currencies\": [\n \"USD\",\n \"EUR\"\n ],\n \"date\": \"2026-10-23\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/fx-rates")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"currencies\": [\n \"USD\",\n \"EUR\"\n ],\n \"date\": \"2026-10-23\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/fx-rates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"currencies\": [\n \"USD\",\n \"EUR\"\n ],\n \"date\": \"2026-10-23\"\n}"
response = http.request(request)
puts response.read_body{
"attribution": "Source: Bank of Canada",
"currencies": [
"EUR",
"USD"
],
"latest_date": "2026-10-23",
"note": "Bank of Canada daily exchange rates are indicative averages of aggregated quotes, published once each business day by 16:30 ET as Canadian dollars per unit of foreign currency. There are no rates for weekends or Bank of Canada holidays. units_per_cad is derived by this program as 1 / cad_per_unit, rounded to 8 significant digits.",
"observed_at_ms": 1792968772049,
"rate_count": 2,
"rates": [
{
"cad_per_unit": 1.5667,
"currency": "EUR",
"date": "2026-10-23",
"label": "EUR/CAD",
"series": "FXEURCAD",
"units_per_cad": 0.63828429
},
{
"cad_per_unit": 1.3993,
"currency": "USD",
"date": "2026-10-23",
"label": "USD/CAD",
"series": "FXUSDCAD",
"units_per_cad": 0.71464304
}
],
"source_url": "https://www.bankofcanada.ca/valet/observations/FXUSDCAD,FXEURCAD/json?start_date=2026-10-23&end_date=2026-10-23",
"terms_url": "https://www.bankofcanada.ca/terms/"
}Request contract
- Method and path: POST /apis/v1/bankofcanada-ca/economic-data/fx-rates
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/bankofcanada-ca/economic-data/fx-rates
{
"operationId": "bankofcanada-ca.economic-data.fx-rates",
"method": "POST",
"path": "/apis/v1/bankofcanada-ca/economic-data/fx-rates",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"currencies": [
"USD",
"EUR"
],
"date": "2026-10-23"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"currencies": {
"description": "ISO 4217 codes, e.g. [\"USD\", \"EUR\"]. Case-insensitive; CAD is not a series. Default: every currently published rate.",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"date": {
"description": "One day, YYYY-MM-DD. Weekends and Bank holidays have no rates (not_found). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"end_date": {
"description": "Range end, YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"recent": {
"description": "The latest N observations per series instead of a date or range.\n\nProvider reference: minimum 1; maximum 10000.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 10000,
"min": 1
}
},
"start_date": {
"description": "Range start, YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Response
Bank of Canada daily average exchange rates (Canadian dollars per unit of about 26 foreign currencies, published each business day by 16:30 ET): the latest day by default, one date, a date range or the latest N days, for chosen currencies or every published rate, each with the inverse rate.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
attribution | string | Required attribution under the Bank of Canada terms of use. |
currencies | string[] | |
latest_date | string | |
note | string | |
observed_at_ms | number | |
rate_count | number | |
rates | object[] | Newest date first, then by currency. |
source_url | string | The Bank of Canada URL that answered (the first page for multi-page scans). |
terms_url | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.