Home Documentation Bank Rates Playground Pricing API Status Blog About FAQ Support

HKMA Exchange Rate API: Official HKD Rates as JSON

Reviewed by Madhushan, Fintech Developer — August 2026

Hong Kong Monetary Authority publishes official exchange rates — ~19 currencies against the HKD — and these are the published official rates used for tax filings, audits, and compliant invoicing in Hong Kong, not moving market prices. This guide shows how to pull them as JSON: via a REST endpoint or the zero-dependency hkma-exchange-rate npm package, with history back to 1981.

USD → HKD — official Hong Kong Monetary Authority daily reference rate
Weekly observations, Aug '25 – Jul '26 · HKD per 1 USD
7.8Aug '25Nov '25Jan '26May '26Jul '267.8422025-08-02: 7.8505 HKD2025-08-09: 7.8515 HKD2025-08-16: 7.8265 HKD2025-08-23: 7.8155 HKD2025-08-30: 7.7965 HKD2025-09-06: 7.798 HKD2025-09-13: 7.7815 HKD2025-09-20: 7.7755 HKD2025-09-27: 7.7805 HKD2025-10-04: 7.7825 HKD2025-10-11: 7.7845 HKD2025-10-18: 7.7695 HKD2025-10-25: 7.7705 HKD2025-11-01: 7.7715 HKD2025-11-08: 7.7785 HKD2025-11-15: 7.774 HKD2025-11-22: 7.7835 HKD2025-11-29: 7.787 HKD2025-12-06: 7.784 HKD2025-12-13: 7.7855 HKD2025-12-20: 7.782 HKD2025-12-27: 7.7725 HKD2026-01-03: 7.7915 HKD2026-01-10: 7.7955 HKD2026-01-17: 7.7975 HKD2026-01-24: 7.797 HKD2026-01-31: 7.8135 HKD2026-02-07: 7.8155 HKD2026-02-14: 7.8175 HKD2026-02-21: 7.8155 HKD2026-02-28: 7.8245 HKD2026-03-07: 7.8235 HKD2026-03-14: 7.8275 HKD2026-03-21: 7.8325 HKD2026-03-28: 7.834 HKD2026-04-02: 7.838 HKD2026-04-11: 7.8325 HKD2026-04-18: 7.8325 HKD2026-04-25: 7.8365 HKD2026-05-02: 7.8355 HKD2026-05-09: 7.8305 HKD2026-05-16: 7.8315 HKD2026-05-23: 7.8355 HKD2026-05-30: 7.8385 HKD2026-06-06: 7.8355 HKD2026-06-13: 7.8365 HKD2026-06-20: 7.8385 HKD2026-06-27: 7.8425 HKD2026-07-04: 7.8445 HKD2026-07-11: 7.8415 HKD2026-07-18: 7.8415 HKD2026-07-25: 7.8425 HKD2026-07-31: 7.842 HKD
Source: Hong Kong Monetary Authority published rates · chart data from the AllRatesToday API (/api/v1/central-bank/hkma/history?source=USD&target=HKD).

What the HKMA publishes

The chart above is the Linked Exchange Rate System at work: the HKD trades in a tight 7.75–7.85 band per USD, and the official daily table documents it.

Why official rates, not market rates

A live mid-market feed answers "what is USD/HKD trading at right now?" — the right tool for checkouts and dashboards. But accountants, auditors, and tax authorities ask a different question: "which rate were you required to use for this date?" That answer comes from the central bank's published rates, and it never changes after publication.

Get the latest rates (REST)

curl "https://allratestoday.com/api/v1/central-bank/hkma/latest" \
  -H "Authorization: Bearer YOUR_API_KEY"

The response is the bank's most recent published data — every rate and the publication date. The latest rates are available on every plan, including the free tier (300 requests/month, no credit card).

The npm SDK

npm install hkma-exchange-rate
import { getRate, getLatestRates } from 'hkma-exchange-rate';

// One pair at the official Hong Kong Monetary Authority rate
const pair = await getRate('USD', 'HKD', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date);

// The bank's full published table
const table = await getLatestRates({ apiKey: 'art_live_...' });
console.log(table.rate_date, table.rates.length);

Zero dependencies, TypeScript types included, and it runs anywhere fetch exists — Node 18+, Bun, Deno, and edge runtimes.

Historical rates for an invoice date

import { getRatesForDate, getHistory } from 'hkma-exchange-rate';

// The official rates for an invoice date — non-publication days return
// the most recent published date, flagged via published_on_requested_date.
const day = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...' });

// Time series for one pair
const series = await getHistory(
  { source: 'USD', target: 'HKD', from: '2026-01-01' },
  { apiKey: 'art_live_...' }
);

Historical dates and time series need a paid plan; the latest rates stay free.

Published vs derived pairs

If the HKMA does not print a pair directly, the API resolves it from the bank's published rates — an inverse, or a cross rate via HKD — and flags it derived: true with the method used. Official and computed values are never silently mixed, which is exactly the distinction an auditor will ask about.

FAQ

Does Hong Kong Monetary Authority have an official exchange rate API?

Hong Kong Monetary Authority publishes its official rates on its website, but not always in a developer-friendly form. AllRatesToday serves the bank's published rates as clean JSON — ~19 currencies against the HKD, with history back to 1981 — via REST or the hkma-exchange-rate npm package. The latest table is free.

How often do Hong Kong Monetary Authority rates update?

Once per business day. These are published reference rates, not moving market prices — the table changes when the bank publishes a new one, and every API response carries the bank's own publication date so you can cite it.

Can I get the Hong Kong Monetary Authority rate for a past date, like an invoice date?

Yes. The /central-bank/hkma/rates-for-date endpoint returns the official rates for any date back to 1981. Non-publication days resolve to the most recent published date and are flagged, so your audit trail stays honest. Historical dates require a paid plan; latest rates are free.

Official Hong Kong Monetary Authority rates, as JSON

The latest rates are free — 300 requests/month, no credit card.

Get your free API key

Related Articles