Diamond Trust Bank Kenya Exchange Rate API: KES Buy and Sell Rates as JSON

Reviewed by Madhushan, Fintech Developer — November 2026

Diamond Trust Bank (DTB) Kenya is a Kenyan commercial bank of the Aga Khan Fund for Economic Development group, with sister banks in Tanzania, Uganda and Burundi. Its treasury page lists indicative buying and selling rates against the shilling for seven major currencies. This guide shows how to read that board as JSON: what the rates mean, how they compare with the Central Bank of Kenya official rate and with other banks in Kenya, and the calls that return them.

What the DTB board shows

Spreads across the board

On the 15 November 2026 board the tightest spreads were USD (3.08%), GBP (4.12%), EUR (4.93%) and the widest ZAR (15.58%), AED (8.87%), AUD (5.88%). 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 DTB and other banks in Kenya

USD on the 11 boards AllRatesToday reads in Kenya, all captured on 15 November 2026 (the Central Bank of Kenya official rate was 129.96):

BankBuySellSpreadMid vs official
KCB Bank Kenya125.15134.957.54%+0.07%
NCBA Bank Kenya125133.56.58%-0.55%
Stanbic Bank Kenya126.45133.455.39%-0.01%
Family Bank127.51312.71%-0.55%
Diamond Trust Bank Kenya1281323.08%+0.03%
Prime Bank Kenya1281323.08%+0.03%
Gulf African Bank1281333.83%+0.42%
Sidian Bank126.98132.984.62%+0.01%
Bank of Africa Kenya126.5131.53.88%-0.74%
Victoria Commercial Bank1281323.08%+0.03%
SBM Bank Kenya127.5131.73.24%-0.28%

DTB had the 2nd narrowest USD spread of the 11. One call to /api/v1/bank-rates/ke 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/ke/dtbke" \
  -H "Authorization: Bearer art_live_your_key"

What comes back (the 15 November 2026 board, first three rows):

{
  "bank": "dtbke",
  "name": "Diamond Trust Bank Kenya",
  "country": "ke",
  "quote_ccy": "KES",
  "bank_updated_at": null,
  "basis": "Indicative forex board buy / sell (major currencies)",
  "captured_at": "2026-11-15T11:52:39.722Z",
  "rates": [
    {"ccy":"AED","buy":33.4,"sell":36.5,"mid":34.95,"spread_pct":8.87,"official":35.38,"vs_official_pct":-1.215},
    {"ccy":"AUD","buy":85.9,"sell":91.1,"mid":88.5,"spread_pct":5.876,"official":88.36,"vs_official_pct":0.158},
    {"ccy":"CAD","buy":88.5,"sell":93.2,"mid":90.85,"spread_pct":5.173,"official":91.13,"vs_official_pct":-0.307},
    … 4 more currencies
  ],
  "disclaimer": "…",
  "attribution": { … }
}

One currency, with the row fields at the top level:

curl "https://allratestoday.com/api/v1/bank-rates/ke/dtbke?ccy=USD" \
  -H "Authorization: Bearer art_live_your_key"
{
  "bank": "dtbke",
  "name": "Diamond Trust Bank Kenya",
  "country": "ke",
  "quote_ccy": "KES",
  "bank_updated_at": null,
  "basis": "Indicative forex board buy / sell (major currencies)",
  "captured_at": "2026-11-15T11:52:39.722Z",
  "ccy": "USD",
  "buy": 128,
  "sell": 132,
  "mid": 130,
  "spread_pct": 3.077,
  "official": 129.96,
  "vs_official_pct": 0.031,
  "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 Diamond Trust Bank Kenya on its own website, collected by AllRatesToday",
    "bank_url": "https://dtbk.dtbafrica.com/treasury",
    "url": "https://allratestoday.com/bank-exchange-rate-api/ke/dtbke/",
    "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/ke/dtbke?date=2026-11-14" \
  -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/ke/dtbke/history?ccy=USD&from=2026-11-14&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' });

// Diamond Trust Bank Kenya's USD row
const r = await client.bankRates('ke', { bank: 'dtbke', ccy: 'USD' });
console.log(`DTB buys USD at ${r.buy}, sells at ${r.sell} KES`);

// The board as it stood on a past day
const past = await client.bankRates('ke', { bank: 'dtbke', date: '2026-11-14' });
console.log(past.snapshot_date, past.rates.length);

Python

import requests

r = requests.get(
    "https://allratestoday.com/api/v1/bank-rates/ke/dtbke",
    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 Kenya rate is the one tax, accounting and customs rules in Kenya name; nobody transacts at it. DTB'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 Kenya endpoint when a rule asks for the official rate.

FAQ

Where do the Diamond Trust Bank Kenya rates come from?

From the bank's own public rates page (https://dtbk.dtbafrica.com/treasury), read hourly. AllRatesToday does not change the numbers: each row is the buy and sell price DTB shows, with the mid, the spread and the Central Bank of Kenya rate added.

Are these the official KES exchange rates?

No. They are DTB's retail prices for customers. The official rate in Kenya is the Central Bank of Kenya 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 DTB 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 DTB rates for a past date?

Yes, from 14 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.

Diamond Trust Bank Kenya rates, as JSON

Free API key, hourly board captures, the official rate alongside.

Get your free API key

Related