cbn-exchange-rate 1.3.19 → 1.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -56
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,72 +24,54 @@
|
|
|
24
24
|
|
|
25
25
|
Get a free API key at [allratestoday.com/register](https://allratestoday.com/register) — no credit card required. Latest rates are on every plan, including free.
|
|
26
26
|
|
|
27
|
-
## ⚡ Try it without a key
|
|
28
|
-
|
|
29
|
-
The latest Central Bank of Nigeria table is also served keyless, CORS-open and edge-cached, for evaluation, embeds and AI agents:
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
curl "https://allratestoday.com/api/open/central-bank/cbn?source=USD&target=NGN"
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
```js
|
|
36
|
-
const r = await fetch('https://allratestoday.com/api/open/central-bank/cbn').then((x) => x.json());
|
|
37
|
-
console.log(r.rate_date, r.rates.length); // the central bank's latest published table, no key
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
The open endpoint serves the *latest* table only (JSON by default; add `?format=csv`, `xml` or `xlsx` for a file) and is free to use with a visible, followable link where the rates are shown: `<a href="https://allratestoday.com">Exchange rates by AllRatesToday</a>` (terms: <https://allratestoday.com/terms/#attribution>). The client below uses the keyed API, which adds point-in-time tables and history; with a key the link is appreciated, not required.
|
|
41
|
-
|
|
42
27
|
## 📈 Latest published table
|
|
43
28
|
|
|
44
29
|
[](https://allratestoday.com/central-bank-rates-api/cbn/)
|
|
45
30
|
|
|
46
|
-
The image is rendered live from the keyless endpoint
|
|
31
|
+
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](.github/workflows/daily-table.yml) refreshes it whenever the central bank publishes a new table; on npm it is as of the package's publish date.
|
|
47
32
|
|
|
48
33
|
<!-- daily-table:start -->
|
|
49
34
|
<details>
|
|
50
|
-
<summary>Table as text: published 2026-10-
|
|
35
|
+
<summary>Table as text: published 2026-10-29 by Central Bank of Nigeria — 36 rates. Updated 2026-10-30.</summary>
|
|
51
36
|
|
|
52
37
|
| Base | Quote | Type | Rate |
|
|
53
38
|
| --- | --- | --- | ---: |
|
|
54
|
-
|
|
|
55
|
-
|
|
|
56
|
-
|
|
|
57
|
-
|
|
|
58
|
-
|
|
|
59
|
-
|
|
|
60
|
-
|
|
|
61
|
-
|
|
|
62
|
-
|
|
|
63
|
-
|
|
|
64
|
-
|
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
|
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
|
|
|
76
|
-
|
|
|
77
|
-
|
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
|
84
|
-
|
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
|
|
|
90
|
-
| ZAR | NGN | buy | 82.1692 |
|
|
91
|
-
| ZAR | NGN | middle | 82.1993 |
|
|
92
|
-
| ZAR | NGN | sell | 82.2294 |
|
|
39
|
+
| CHF | NGN | buy | 1623.7312 |
|
|
40
|
+
| CHF | NGN | middle | 1624.3344 |
|
|
41
|
+
| CHF | NGN | sell | 1624.9376 |
|
|
42
|
+
| CNY | NGN | buy | 202.0311 |
|
|
43
|
+
| CNY | NGN | middle | 202.1061 |
|
|
44
|
+
| CNY | NGN | sell | 202.1812 |
|
|
45
|
+
| DKK | NGN | buy | 200.3529 |
|
|
46
|
+
| DKK | NGN | middle | 200.4273 |
|
|
47
|
+
| DKK | NGN | sell | 200.5018 |
|
|
48
|
+
| EUR | NGN | buy | 1497.4604 |
|
|
49
|
+
| EUR | NGN | middle | 1498.0167 |
|
|
50
|
+
| EUR | NGN | sell | 1498.573 |
|
|
51
|
+
| GBP | NGN | buy | 1792.7532 |
|
|
52
|
+
| GBP | NGN | middle | 1793.4192 |
|
|
53
|
+
| GBP | NGN | sell | 1794.0852 |
|
|
54
|
+
| JPY | NGN | buy | 8.5141 |
|
|
55
|
+
| JPY | NGN | middle | 8.5173 |
|
|
56
|
+
| JPY | NGN | sell | 8.5204 |
|
|
57
|
+
| SAR | NGN | buy | 358.6322 |
|
|
58
|
+
| SAR | NGN | middle | 358.7654 |
|
|
59
|
+
| SAR | NGN | sell | 358.8987 |
|
|
60
|
+
| USD | NGN | buy | 1345.9108 |
|
|
61
|
+
| USD | NGN | middle | 1346.4108 |
|
|
62
|
+
| USD | NGN | sell | 1346.9108 |
|
|
63
|
+
| XDR | NGN | buy | 1820.4789 |
|
|
64
|
+
| XDR | NGN | middle | 1821.1552 |
|
|
65
|
+
| XDR | NGN | sell | 1821.8315 |
|
|
66
|
+
| XOF | NGN | buy | 2.2662 |
|
|
67
|
+
| XOF | NGN | middle | 2.2762 |
|
|
68
|
+
| XOF | NGN | sell | 2.2862 |
|
|
69
|
+
| XUA | NGN | buy | 1819.5308 |
|
|
70
|
+
| XUA | NGN | middle | 1820.2068 |
|
|
71
|
+
| XUA | NGN | sell | 1820.8827 |
|
|
72
|
+
| ZAR | NGN | buy | 80.8098 |
|
|
73
|
+
| ZAR | NGN | middle | 80.8398 |
|
|
74
|
+
| ZAR | NGN | sell | 80.8698 |
|
|
93
75
|
|
|
94
76
|
</details>
|
|
95
77
|
|
|
@@ -256,6 +238,7 @@ The Central Bank of Nigeria is Nigeria's central bank. It publishes official nai
|
|
|
256
238
|
|
|
257
239
|
- Publisher's own page: [Exchange rates](https://www.cbn.gov.ng/rates/) · [www.cbn.gov.ng](https://www.cbn.gov.ng)
|
|
258
240
|
- Publication: every business day; the exact schedule, freshness status and any current delay are on the [Central Bank of Nigeria rates page](https://allratestoday.com/central-bank-rates-api/cbn/)
|
|
241
|
+
- In the API: usually by **17:15 UTC** (measured over the last 10 publications). Schedule a sync at or after that time and retry hourly until `rate_date` moves; every response carries the same figure as `available_by_utc` — see [when to poll](https://allratestoday.com/docs/#when-to-poll)
|
|
259
242
|
- Values are stored unmodified, with the publisher's own `rate_date` on every row — see the [methodology](https://allratestoday.com/official-rates-methodology/)
|
|
260
243
|
|
|
261
244
|
## 🧭 Reading the numbers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cbn-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.24",
|
|
4
4
|
"description": "Official Central Bank of Nigeria (Nigeria) daily exchange rates — 13 currencies vs NGN, history since 2001. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cbn",
|