Attijari Bank Tunisie Exchange Rate API: TND Buy and Sell Rates as JSON
Attijari Bank is the Tunisian subsidiary of Morocco’s Attijariwafa bank group. Its cours des changes page lists buying and selling rates in dinars for 15 currencies. This guide shows how to read that board as JSON: what the rates mean, how they compare with the Central Bank of Tunisia official rate and with other banks in Tunisia, and the calls that return them.
What the Attijari Bank board shows
- 15 currencies against the Tunisian dinar: AED, BHD, CAD, CHF, CNY, DKK, EUR, GBP, JPY, KWD, NOK, QAR, SAR, SEK and USD. Every value is TND per 1 unit of the foreign currency.
- The cours de change (achat / vente) pair. Tunisian banks print one cours de change table with buying and selling rates in dinars to three decimals, quoted per 10 units for the Gulf currencies and the Swiss franc and per 1,000 for the yen. Spreads are typically 2-3% around the Central Bank of Tunisia rate. The Central Bank of Tunisia official rate is shown next to each row.
- USD on 15 November 2026: Attijari Bank bought at 2.99 and sold at 3.069 TND, a spread of 2.61%. The Central Bank of Tunisia official rate was 3.0335, so the bank's mid sat -0.13% from it.
- No timestamp on the bank's page. Attijari Bank does not print a last-updated time, so
bank_updated_atisnullandcaptured_at(when AllRatesToday read the page) is the only time available. - Every day's board is kept permanently, from 15 November 2026, the day collection started. Read one past day with
?date=, or a range for one currency with the/historyendpoint (paid plans).
Spreads across the board
On the 15 November 2026 board the tightest spreads were EUR (2.31%), USD (2.61%), SAR (3.18%) and the widest AED (4.21%), CHF (4.21%), QAR (4.20%). Spread is (sell − buy) ÷ mid: what a round trip through the bank costs, before any fees. The API returns it on every row as spread_pct, so you can rank currencies or alert when a bank widens its board.
USD at Attijari Bank and other banks in Tunisia
USD on the 7 boards AllRatesToday reads in Tunisia, all captured on 15 November 2026 (the Central Bank of Tunisia official rate was 3.0335):
| Bank | Buy | Sell | Spread | Mid vs official |
|---|---|---|---|---|
| Arab Tunisian Bank (ATB) | 2.991 | 3.062 | 2.35% | -0.23% |
| Attijari Bank Tunisie | 2.99 | 3.069 | 2.61% | -0.13% |
| Banque de Tunisie et des Emirats (BTE) | 2.991 | 3.036 | 1.49% | -0.66% |
| Société Tunisienne de Banque (STB) | 2.985 | 3.059 | 2.45% | -0.38% |
| BH Bank | 2.949 | 3.038 | 2.97% | -1.32% |
| Tunisian Saudi Bank (TSB) | 2.996 | 3.036 | 1.33% | -0.58% |
| Al Baraka Bank Tunisia | 2.965 | 3.066 | 3.35% | -0.59% |
Attijari Bank had the 5th narrowest USD spread of the 7. One call to /api/v1/bank-rates/tn returns every board in the table at once.
Get the board (REST)
You need an API key; the free key works. The full board:
curl "https://allratestoday.com/api/v1/bank-rates/tn/attijaritn" \
-H "Authorization: Bearer art_live_your_key" What comes back (the 15 November 2026 board, first three rows):
{
"bank": "attijaritn",
"name": "Attijari Bank Tunisie",
"country": "tn",
"quote_ccy": "TND",
"bank_updated_at": null,
"basis": "Cours de change (achat / vente)",
"captured_at": "2026-11-15T11:23:19.780Z",
"rates": [
{"ccy":"AED","buy":0.8013,"sell":0.8358,"mid":0.81855,"spread_pct":4.215,"official":0.81953,"vs_official_pct":-0.12},
{"ccy":"BHD","buy":7.847,"sell":8.142,"mid":7.9945,"spread_pct":3.69,"official":7.9816,"vs_official_pct":0.162},
{"ccy":"CAD","buy":2.074,"sell":2.152,"mid":2.113,"spread_pct":3.691,"official":2.1143,"vs_official_pct":-0.061},
… 12 more currencies
],
"disclaimer": "…",
"attribution": { … }
} One currency, with the row fields at the top level:
curl "https://allratestoday.com/api/v1/bank-rates/tn/attijaritn?ccy=USD" \
-H "Authorization: Bearer art_live_your_key" {
"bank": "attijaritn",
"name": "Attijari Bank Tunisie",
"country": "tn",
"quote_ccy": "TND",
"bank_updated_at": null,
"basis": "Cours de change (achat / vente)",
"captured_at": "2026-11-15T11:23:19.780Z",
"ccy": "USD",
"buy": 2.99,
"sell": 3.069,
"mid": 3.0295,
"spread_pct": 2.608,
"official": 3.0335,
"vs_official_pct": -0.132,
"disclaimer": "Retail buy/sell rates as displayed on each bank’s own website at capture time, quoted as home currency per 1 unit of foreign currency. Indicative only: banks change these through the day, apply them at the counter or in-app, and they are not official or reference rates. For the rate a regulation names, use the central-bank endpoints.",
"attribution": {
"source": "Board rates published by Attijari Bank Tunisie on its own website, collected by AllRatesToday",
"bank_url": "https://www.attijaribank.com.tn/fr/cours/cours-des-changes",
"url": "https://allratestoday.com/bank-exchange-rate-api/tn/attijaritn/",
"terms": "Public pages that show the rates need a visible link to allratestoday.com"
}
} The board as it stood on a past day:
curl "https://allratestoday.com/api/v1/bank-rates/tn/attijaritn?date=2026-11-15" \
-H "Authorization: Bearer art_live_your_key" One currency over a date range, one row per day (paid plans; add &format=csv, xml or xlsx for a file):
curl "https://allratestoday.com/api/v1/bank-rates/tn/attijaritn/history?ccy=USD&from=2026-11-15&to=2026-11-15" \
-H "Authorization: Bearer art_live_your_key" JavaScript
npm install @allratestoday/sdk import { AllRatesToday } from '@allratestoday/sdk';
const client = new AllRatesToday({ apiKey: 'art_live_your_key' });
// Attijari Bank Tunisie's USD row
const r = await client.bankRates('tn', { bank: 'attijaritn', ccy: 'USD' });
console.log(`Attijari Bank buys USD at ${r.buy}, sells at ${r.sell} TND`);
// The board as it stood on a past day
const past = await client.bankRates('tn', { bank: 'attijaritn', date: '2026-11-15' });
console.log(past.snapshot_date, past.rates.length); Python
import requests
r = requests.get(
"https://allratestoday.com/api/v1/bank-rates/tn/attijaritn",
headers={"Authorization": "Bearer art_live_your_key"},
timeout=10,
)
r.raise_for_status()
for row in r.json()["rates"]:
print(row["ccy"], row["buy"], row["sell"], row["spread_pct"]) Board rate or official rate?
The Central Bank of Tunisia rate is the one tax, accounting and customs rules in Tunisia name; nobody transacts at it. Attijari Bank's board is the price a customer actually gets. The API puts both on every row: official is the central bank's rate for the same currency and vs_official_pct is how far the bank's mid sits from it. Use the board to show customers a real price, compare banks for a remittance, or keep a dated record of what the bank quoted; use the Central Bank of Tunisia endpoint when a rule asks for the official rate.
FAQ
Where do the Attijari Bank Tunisie rates come from?
From the bank's own public rates page (https://www.attijaribank.com.tn/fr/cours/cours-des-changes), read hourly. AllRatesToday does not change the numbers: each row is the buy and sell price Attijari Bank shows, with the mid, the spread and the Central Bank of Tunisia rate added.
Are these the official TND exchange rates?
No. They are Attijari Bank's retail prices for customers. The official rate in Tunisia is the Central Bank of Tunisia rate, which the API returns as official on each row where the central bank has one, and in full from the central-bank endpoint.
How often is the Attijari Bank board updated?
AllRatesToday reads the page every hour. The bank prints no timestamp, so captured_at tells you when the rates were read.
Can I get Attijari Bank rates for a past date?
Yes, from 15 November 2026 onward; every day's board is kept permanently. Add ?date=YYYY-MM-DD for one day: the response is the board captured that day, or the nearest earlier day within five days, with date_requested and snapshot_date added. For a range, /history?ccy=USD&from=…&to=… returns one row per day as JSON, CSV, XML or XLSX on paid plans.
Do I need an API key?
Yes. Commercial bank boards need an API key; any plan works, the free key included, and each call counts against the plan. Public pages or widgets that show the rates need a visible link to allratestoday.com.
Attijari Bank Tunisie rates, as JSON
Free API key, hourly board captures, the official rate alongside.
Get your free API keyRelated
- Attijari Bank Tunisie live board rates
- All banks in Tunisia side by side
- Central Bank of Tunisia official rates API
- Arab Tunisian Bank (ATB) exchange rate API guide
- Banque de Tunisie et des Emirats (BTE) exchange rate API guide
- Société Tunisienne de Banque (STB) exchange rate API guide
- BH Bank exchange rate API guide
- Tunisian Saudi Bank (TSB) exchange rate API guide
- Al Baraka Bank Tunisia exchange rate API guide
- Every bank exchange rate API guide, by country
- Commercial bank rates API: every bank and country