National Bank of Cambodia Exchange Rates API — nbc-cambodia-exchange-rate
Official National Bank of Cambodia (Cambodia) daily exchange rates for Node.js and TypeScript. The published central bank rates behind tax filings, customs valuations, audits, and compliant invoicing — not market estimates, but the numbers National Bank of Cambodia itself prints, every business day.
🚀 Why this client?
- 🏛️ Official rates — National Bank of Cambodia's own table, with the publisher's own
rate_date on every response
- 📅 History back to 2016 — point-in-time tables and daily series for any past date
- 🔀 Official vs derived, always flagged — computed inverse/cross pairs carry
derived: true, never mixed with official prints
- ⚡ Zero dependencies — pure ESM + CJS over global
fetch; Node 18+, Bun, Deno, and edge runtimes
- 🔷 Type-safe — full TypeScript definitions shipped with the package
- 🧾 Compliance-grade metadata —
rate_type, publication date, and source disclaimer on every response
Official rate, not mid-market: every value here is a number National Bank of Cambodia itself published, fixed once printed and carrying the central bank's own rate_date — what filings and audits require. Need the live mid-market rate for pricing or display instead? Use the mid-market API or @allratestoday/sdk. The two can diverge by several percent.
🔑 Get your API key
Get a free API key at allratestoday.com/register — no credit card required. Latest rates are on every plan, including free.
📈 Latest official table
The image is rendered live from the keyless endpoint, so it follows the central bank's publications on npm and on GitHub alike without a new release. The same table as text is folded below for search and copy-paste: on GitHub a daily Action refreshes it whenever the central bank publishes a new table; on npm it is as of the package's publish date.
| Base | Quote | Type | Rate |
|---|
| AED | KHR | buy | 1110 |
| AED | KHR | middle | 1115.5 |
| AED | KHR | sell | 1121 |
| AUD | KHR | buy | 2803 |
| AUD | KHR | middle | 2817 |
| AUD | KHR | sell | 2831 |
| CAD | KHR | buy | 2869 |
| CAD | KHR | middle | 2883.5 |
| CAD | KHR | sell | 2898 |
| CHF | KHR | buy | 4922 |
| CHF | KHR | middle | 4946.5 |
| CHF | KHR | sell | 4971 |
| CNH | KHR | buy | 612 |
| CNH | KHR | middle | 615 |
| CNH | KHR | sell | 618 |
| CNY | KHR | buy | 612 |
| CNY | KHR | middle | 615 |
| CNY | KHR | sell | 618 |
| DKK | KHR | buy | 608 |
| DKK | KHR | middle | 611 |
| DKK | KHR | sell | 614 |
| EUR | KHR | buy | 4545 |
| EUR | KHR | middle | 4568 |
|
Full table on the National Bank of Cambodia rates page · Source: Official rates published by NBC, served by AllRatesToday. Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
📦 Installation
npm install nbc-cambodia-exchange-rate
yarn add nbc-cambodia-exchange-rate
pnpm add nbc-cambodia-exchange-rate
Requires Node 18+ (global fetch); also runs on Bun, Deno and edge runtimes. Also published under the org scope as @allratestoday/nbc-cambodia-exchange-rate — same code, same versions.
This is the beginning of the README. Read the rest at the original. Read the full README ↗