# exchangeRates.get

Get the Bank of Canada daily exchange rate for a day, as units of quote for one base (for example base USD, quote CAD, date 2026-09-25). Pairs without CAD are crossed through CAD; a weekend or holiday uses the closest earlier business day. Returns the rate, the day it was published for, the series and a source description to keep with a match or tax review. Reads bankofcanada.ca and never changes anything.

`GET | POST /api/v1/accounting/exchangeRates.get`

Permissions: `accounting:read` · Roles: admin, finance · Reaches outside Oatmilk (email or a provider)

MCP tool: `accounting_exchange_rates_get`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `base` | string | Yes | Three-letter currency code, such as CAD. |
| `quote` | string | Yes | Three-letter currency code, such as CAD. |
| `date` | string | Yes | A date, as YYYY-MM-DD. Date as YYYY-MM-DD. |

## Example request

```bash
curl -G https://app.getoatmilk.com/api/v1/accounting/exchangeRates.get \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'base=CAD' \
  --data-urlencode 'quote=USD' \
  --data-urlencode 'date=2026-09-30'
```

Reference page: https://app.getoatmilk.com/docs/api/exchangeRates.get
