DEV Community

chathuranga basnayaka
chathuranga basnayaka

Posted on Originally published at allratestoday.com

Switzerland Bank Exchange Rates as JSON: 21 Bank Boards vs the Swiss National Bank Rate

Every bank in Switzerland posts its own buy and sell prices for foreign currency, and they are rarely the same. AllRatesToday reads 21 of those bank boards and puts them in one table at Switzerland bank exchange rates, with the Swiss National Bank official rate as the reference row and the Swiss Federal Office for Customs and Border Security customs rate under it. This post shows what the table says today and how to get the same data from the API.

How bank rates work in Switzerland

Swiss banks publish two lists for each currency: Devisen, the non-cash rate for transfers, account conversions and card payments, and Noten, the cash rate for bank notes, whose spread is several times wider. Many quote SEK, NOK, DKK, JPY and other currencies per 100 units, with tiers by amount; the rates here are the Devisen pair at the smallest tier, converted to francs per 1 unit. The Swiss National Bank official rate is shown next to each row.

USD at banks in Switzerland today

The US dollar on the boards read on 26 November 2026, in CHF per 1 USD, narrowest spread first (15 of 21 shown; the page lists all of them):

Bank Buy Sell Spread
Swiss National Bank (official) 0.8346
Swiss Federal Office for Customs and Border Security (customs) 0.8443
Ersparniskasse Rüeggisberg 0.8241 0.8414 2.08%
PostFinance 0.8217 0.8425 2.50%
Zürcher Kantonalbank 0.8222 0.8431 2.51%
Graubündner Kantonalbank 0.8180 0.8417 2.86%
Nidwaldner Kantonalbank 0.8210 0.8450 2.88%
Aargauische Kantonalbank 0.8216 0.8468 3.02%
Berner Kantonalbank 0.8195 0.8455 3.12%
Bank EKI 0.8196 0.8465 3.24%
Thurgauer Kantonalbank 0.8200 0.8470 3.24%
Bank SLM 0.8180 0.8450 3.25%
LLB Schweiz 0.8173 0.8446 3.30%
Banque Cantonale de Fribourg 0.8155 0.8439 3.42%
St.Galler Kantonalbank 0.8192 0.8479 3.44%
Bank Avera 0.8186 0.8478 3.50%
Raiffeisen Schweiz 0.8178 0.8470 3.51%
  • Spread range: from 2.08% to 4.20% on USD across 21 transfer boards. Spread is (sell − buy) ÷ mid, the cost of a round trip before fees.
  • Best board for a customer: Ersparniskasse Rüeggisberg had both the highest buy (0.8241) and the lowest sell (0.8414) for USD.
  • Official rate: the Swiss National Bank rate was 0.8346 CHF per USD. Bank buy and sell prices sit either side of it.
  • Customs rate: Swiss Federal Office for Customs and Border Security set 0.8443 CHF per USD for converting customs values. It is fixed for its period, so it drifts from the daily official rate (1.16% apart today).

The page switches between all 42 currencies the boards in Switzerland quote, and each row carries the bank's own last-updated time where the bank prints one.

Three rates, three uses

  • Bank board rate: what a customer of that bank is actually charged, at the counter or on a transfer. Retail and indicative: banks change it through the day.
  • Official rate: the Swiss National Bank rate. Use it for accounting, reporting and anything that has to match a published reference.
  • Customs rate: the rate set by Swiss Federal Office for Customs and Border Security, used to convert the value on an import declaration. It is set for a period, not daily.

Get the same data from the API

Every bank in Switzerland, latest board each, plus the official source and date:

curl "https://allratestoday.com/api/v1/bank-rates/ch" \
  -H "Authorization: Bearer YOUR_API_KEY"
Enter fullscreen mode Exit fullscreen mode

One bank, one currency:

curl "https://allratestoday.com/api/v1/bank-rates/ch/ekrueggisberg?ccy=USD" \
  -H "Authorization: Bearer YOUR_API_KEY"
Enter fullscreen mode Exit fullscreen mode

Each rate row returns ccy, buy, sell, mid, spread_pct, official and vs_official_pct, so ranking banks or alerting on a widening spread is a sort, not a scrape. Past days are kept: add ?date=YYYY-MM-DD, or read one currency over a range with /ch/ekrueggisberg/history?ccy=USD&from=…&to=….

In JavaScript:

const res = await fetch('https://allratestoday.com/api/v1/bank-rates/ch', {
  headers: { Authorization: `Bearer ${process.env.ALLRATES_KEY}` },
});
const { banks } = await res.json();
const rows = banks
  .map((b) => ({ bank: b.name, r: b.rates.find((x) => x.ccy === 'USD') }))
  .filter((x) => x.r && x.r.buy != null)
  .sort((a, b) => a.r.spread_pct - b.r.spread_pct);
console.table(rows.map((x) => ({ bank: x.bank, buy: x.r.buy, sell: x.r.sell, spread: x.r.spread_pct })));
Enter fullscreen mode Exit fullscreen mode

A free key is at allratestoday.com/register. The live table, with every bank and currency, is at Switzerland bank exchange rates.

Bank board rates are each bank's own retail prices as shown on its website when read; they are indicative and can change during the day. The official rate is the Swiss National Bank's.

Top comments (0)