---
title: "OCBC Exchange Rate API: SGD Buy and Sell Rates as JSON"
description: "OCBC's telegraphic transfer, under s$40,000 tier rates for 19 currencies against the Singapore dollar, read hourly from the bank's own page and served as JSON with the Monetary Authority of Singapore official rate alongside. REST, JavaScript and Python examples."
canonical: https://allratestoday.com/blog/ocbc-exchange-rate-api/
source: AllRatesToday (https://allratestoday.com/) — Markdown mirror of the page above; index of all pages at https://allratestoday.com/llms.txt
generated: 2026-11-15T19:11:51.684Z
---

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

- **19 currencies against the Singapore dollar**: AED, AUD, CAD, CHF, DKK, EUR, GBP, HKD, JPY, NOK, NZD, PLN, QAR, SAR, SEK, THB, TRY, USD and ZAR. Every value is SGD per 1 unit of the foreign currency.
- **The telegraphic transfer, under s$40,000 tier pair.** The Monetary Authority of Singapore manages the Singapore dollar against an undisclosed basket of currencies rather than a single peg. Singapore banks price transfers in tiers by amount; the rate shown is the telegraphic-transfer pair for the smallest tier, the one a retail transfer gets. The MAS official rate is shown next to each row.
- **USD on 15 November 2026**: OCBC bought at 1.2755 and sold at 1.3001 SGD, a spread of 1.91%. The Monetary Authority of Singapore official rate was 1.2863, so the bank's mid sat +0.12% from it.
- **The bank's own timestamp.** The page prints a last-updated stamp (`2026-11-13T07:00:14` on the board above), returned as `bank_updated_at` next to our `captured_at`.
- **Every day's board is kept permanently, from 13 November 2026.** Read one past day with `?date=`, or a range for one currency with the `/history` endpoint (paid plans).

## 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):

| Bank | Buy | Sell | Spread | Mid vs official |
| --- | --- | --- | --- | --- |
| **OCBC** | 1.2755 | 1.3001 | 1.91% | +0.12% |
| DBS Bank | 1.2757 | 1.3011 | 1.97% | +0.16% |
| United Overseas Bank | 1.275 | 1.299 | 1.86% | +0.05% |
| Maybank Singapore | 1.2737 | 1.3167 | 3.32% | +0.69% |
| RHB Singapore | 1.2718 | 1.3021 | 2.35% | +0.05% |
| State Bank of India Singapore | 1.2685 | 1.2985 | 2.34% | -0.22% |
| Bank of China Singapore | 1.28 | 1.296 | 1.24% | +0.13% |
| CIMB Bank Singapore | 1.2672 | 1.3074 | 3.12% | +0.08% |
| HSBC Singapore | 1.2613 | 1.313 | 4.02% | +0.07% |
| ICBC Singapore | 1.2782 | 1.2982 | 1.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](https://allratestoday.com/register/) 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](https://allratestoday.com/central-bank-rates-api/mas/) 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](https://allratestoday.com/register/)

## Related

- [OCBC live board rates](https://allratestoday.com/bank-exchange-rate-api/sg/ocbc/)
- [All banks in Singapore side by side](https://allratestoday.com/bank-exchange-rate-api/sg/)
- [Monetary Authority of Singapore official rates API](https://allratestoday.com/central-bank-rates-api/mas/)
- [DBS Bank exchange rate API guide](https://allratestoday.com/blog/dbs-bank-exchange-rate-api/)
- [United Overseas Bank exchange rate API guide](https://allratestoday.com/blog/united-overseas-bank-exchange-rate-api/)
- [Maybank Singapore exchange rate API guide](https://allratestoday.com/blog/maybank-singapore-exchange-rate-api/)
- [RHB Singapore exchange rate API guide](https://allratestoday.com/blog/rhb-singapore-exchange-rate-api/)
- [State Bank of India Singapore exchange rate API guide](https://allratestoday.com/blog/state-bank-of-india-singapore-exchange-rate-api/)
- [Bank of China Singapore exchange rate API guide](https://allratestoday.com/blog/bank-of-china-singapore-exchange-rate-api/)
- [CIMB Bank Singapore exchange rate API guide](https://allratestoday.com/blog/cimb-bank-singapore-exchange-rate-api/)
- [HSBC Singapore exchange rate API guide](https://allratestoday.com/blog/hsbc-singapore-exchange-rate-api/)
- [ICBC Singapore exchange rate API guide](https://allratestoday.com/blog/icbc-singapore-exchange-rate-api/)
- [Every bank exchange rate API guide, by country](https://allratestoday.com/blog/bank-exchange-rate-api-guides/)
- [Commercial bank rates API: every bank and country](https://allratestoday.com/bank-exchange-rate-api/)
