OCBC Exchange Rate API: SGD Buy and Sell Rates as JSON

Reviewed by Madhushan, Fintech Developer — November 2026

OCBC is one of Singapore’s three local banking groups, headquartered in Singapore. Its foreign exchange rates page lists telegraphic-transfer buying and selling rates against the Singapore dollar in tiers by amount; the tier under S$40,000 is shown here. This guide shows how to read that board as JSON: what the rates mean, how they compare with the Monetary Authority of Singapore official rate and with other banks in Singapore, and the calls that return them.

What the OCBC board shows

Spreads across the board

On the 15 November 2026 board the tightest spreads were USD (1.91%), HKD (2.45%), EUR (2.49%) and the widest PLN (6.41%), ZAR (6.06%), QAR (6.03%). 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 OCBC and other banks in Singapore

USD on the 10 boards AllRatesToday reads in Singapore, all captured on 15 November 2026 (the Monetary Authority of Singapore official rate was 1.2863):

BankBuySellSpreadMid vs official
OCBC1.27551.30011.91%+0.12%
DBS Bank1.27571.30111.97%+0.16%
United Overseas Bank1.2751.2991.86%+0.05%
Maybank Singapore1.27371.31673.32%+0.69%
RHB Singapore1.27181.30212.35%+0.05%
State Bank of India Singapore1.26851.29852.34%-0.22%
Bank of China Singapore1.281.2961.24%+0.13%
CIMB Bank Singapore1.26721.30743.12%+0.08%
HSBC Singapore1.26131.3134.02%+0.07%
ICBC Singapore1.27821.29821.55%+0.15%

OCBC had the 4th narrowest USD spread of the 10. One call to /api/v1/bank-rates/sg 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/sg/ocbc" \
  -H "Authorization: Bearer art_live_your_key"

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

{
  "bank": "ocbc",
  "name": "OCBC",
  "country": "sg",
  "quote_ccy": "SGD",
  "bank_updated_at": "2026-11-13T07:00:14",
  "basis": "Telegraphic transfer, under S$40,000 tier",
  "captured_at": "2026-11-15T11:15:24.797Z",
  "rates": [
    {"ccy":"AED","buy":0.339315,"sell":0.359666,"mid":0.3494905,"spread_pct":5.823,"official":0.3502,"vs_official_pct":-0.203},
    {"ccy":"AUD","buy":0.8619,"sell":0.8901,"mid":0.876,"spread_pct":3.219,"official":0.8756999999999999,"vs_official_pct":0.034},
    {"ccy":"CAD","buy":0.8863,"sell":0.9189,"mid":0.9026,"spread_pct":3.612,"official":0.9023,"vs_official_pct":0.033},
    … 16 more currencies
  ],
  "disclaimer": "…",
  "attribution": { … }
}

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

curl "https://allratestoday.com/api/v1/bank-rates/sg/ocbc?ccy=USD" \
  -H "Authorization: Bearer art_live_your_key"
{
  "bank": "ocbc",
  "name": "OCBC",
  "country": "sg",
  "quote_ccy": "SGD",
  "bank_updated_at": "2026-11-13T07:00:14",
  "basis": "Telegraphic transfer, under S$40,000 tier",
  "captured_at": "2026-11-15T11:15:24.797Z",
  "ccy": "USD",
  "buy": 1.2755,
  "sell": 1.3001,
  "mid": 1.2878,
  "spread_pct": 1.91,
  "official": 1.2863,
  "vs_official_pct": 0.117,
  "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 OCBC on its own website, collected by AllRatesToday",
    "bank_url": "https://www.ocbc.com/business-banking/foreign-exchange-rates",
    "url": "https://allratestoday.com/bank-exchange-rate-api/sg/ocbc/",
    "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/sg/ocbc?date=2026-11-13" \
  -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/sg/ocbc/history?ccy=USD&from=2026-11-13&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' });

// OCBC's USD row
const r = await client.bankRates('sg', { bank: 'ocbc', ccy: 'USD' });
console.log(`OCBC buys USD at ${r.buy}, sells at ${r.sell} SGD`);

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

Python

import requests

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

FAQ

Where do the OCBC rates come from?

From the bank's own public rates page (https://www.ocbc.com/business-banking/foreign-exchange-rates), read hourly. AllRatesToday does not change the numbers: each row is the buy and sell price OCBC shows, with the mid, the spread and the Monetary Authority of Singapore rate added.

Are these the official SGD exchange rates?

No. They are OCBC's retail prices for customers. The official rate in Singapore is the Monetary Authority of Singapore 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 OCBC board updated?

AllRatesToday reads the page every hour. The bank's own last-updated stamp is returned as bank_updated_at, so you can tell a fresh read of an unchanged board from a new board.

Can I get OCBC rates for a past date?

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

OCBC rates, as JSON

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

Get your free API key

Related