@allratestoday/sarb-exchange-rate 1.3.9 → 1.3.13
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 +33 -31
- package/package.json +11 -1
package/README.md
CHANGED
|
@@ -42,31 +42,33 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
42
42
|
The image is rendered live from the keyless endpoint above, so it follows the central bank's publications on npm and on GitHub alike without a new release. The text copy below is there 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.
|
|
43
43
|
|
|
44
44
|
<!-- daily-table:start -->
|
|
45
|
-
Published **2026-10-
|
|
45
|
+
Published **2026-10-14** by South African Reserve Bank — 23 rates. Updated 2026-10-14.
|
|
46
46
|
|
|
47
47
|
| Base | Quote | Type | Rate |
|
|
48
48
|
| --- | --- | --- | ---: |
|
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
-
|
|
|
52
|
-
| ZAR |
|
|
53
|
-
| ZAR |
|
|
54
|
-
| ZAR |
|
|
55
|
-
| ZAR |
|
|
56
|
-
| ZAR |
|
|
57
|
-
| ZAR |
|
|
58
|
-
| ZAR |
|
|
59
|
-
| ZAR |
|
|
60
|
-
| ZAR |
|
|
61
|
-
| ZAR |
|
|
62
|
-
| ZAR |
|
|
63
|
-
| ZAR |
|
|
64
|
-
| ZAR |
|
|
65
|
-
| ZAR |
|
|
66
|
-
| ZAR |
|
|
67
|
-
| ZAR |
|
|
68
|
-
| ZAR |
|
|
69
|
-
| ZAR |
|
|
49
|
+
| EUR | ZAR | reference | 18.4545 |
|
|
50
|
+
| GBP | ZAR | reference | 21.8458 |
|
|
51
|
+
| USD | ZAR | reference | 16.4706 |
|
|
52
|
+
| ZAR | AUD | reference | 0.0866 |
|
|
53
|
+
| ZAR | BRL | reference | 0.3052 |
|
|
54
|
+
| ZAR | BWP | reference | 0.8311 |
|
|
55
|
+
| ZAR | CAD | reference | 0.0863 |
|
|
56
|
+
| ZAR | CHF | reference | 0.0506 |
|
|
57
|
+
| ZAR | CNY | reference | 0.4063 |
|
|
58
|
+
| ZAR | DKK | reference | 0.4051 |
|
|
59
|
+
| ZAR | HKD | reference | 0.4765 |
|
|
60
|
+
| ZAR | ILS | reference | 0.1864 |
|
|
61
|
+
| ZAR | INR | reference | 5.7735 |
|
|
62
|
+
| ZAR | JPY | reference | 9.6165 |
|
|
63
|
+
| ZAR | KES | reference | 7.8746 |
|
|
64
|
+
| ZAR | KRW | reference | 81.0967 |
|
|
65
|
+
| ZAR | MWK | reference | 105.2789 |
|
|
66
|
+
| ZAR | NOK | reference | 0.5761 |
|
|
67
|
+
| ZAR | NZD | reference | 0.108 |
|
|
68
|
+
| ZAR | SEK | reference | 0.6045 |
|
|
69
|
+
| ZAR | THB | reference | 2.0385 |
|
|
70
|
+
| ZAR | TWD | reference | 1.9517 |
|
|
71
|
+
| ZAR | ZMW | reference | 1.2067 |
|
|
70
72
|
|
|
71
73
|
Source: [Official rates published by SARB, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/sarb/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
|
|
72
74
|
<!-- daily-table:end -->
|
|
@@ -123,10 +125,10 @@ const pair = await getRate('USD', 'ZAR', { apiKey: 'art_live_...' });
|
|
|
123
125
|
{
|
|
124
126
|
bank: 'sarb',
|
|
125
127
|
name: 'South African Reserve Bank',
|
|
126
|
-
rate_date: '2026-10-
|
|
128
|
+
rate_date: '2026-10-14', // South African Reserve Bank's own publication date
|
|
127
129
|
source: 'USD',
|
|
128
130
|
target: 'ZAR',
|
|
129
|
-
rate: 16.
|
|
131
|
+
rate: 16.4706,
|
|
130
132
|
rate_type: 'reference',
|
|
131
133
|
derived: false,
|
|
132
134
|
method: 'published',
|
|
@@ -151,9 +153,9 @@ console.log(table.rate_date, table.rates.length);
|
|
|
151
153
|
{
|
|
152
154
|
bank: 'sarb',
|
|
153
155
|
name: 'South African Reserve Bank',
|
|
154
|
-
rate_date: '2026-10-
|
|
156
|
+
rate_date: '2026-10-14',
|
|
155
157
|
rates: [
|
|
156
|
-
{ "base": "USD", "quote": "ZAR", "type": "reference", "value": 16.
|
|
158
|
+
{ "base": "USD", "quote": "ZAR", "type": "reference", "value": 16.4706 },
|
|
157
159
|
// … the rest of the published table (23 currencies vs ZAR)
|
|
158
160
|
],
|
|
159
161
|
disclaimer: '…'
|
|
@@ -193,7 +195,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
193
195
|
import { getHistory } from '@allratestoday/sarb-exchange-rate';
|
|
194
196
|
|
|
195
197
|
const series = await getHistory(
|
|
196
|
-
{ source: 'USD', target: 'ZAR', from: '2026-01-01', to: '2026-10-
|
|
198
|
+
{ source: 'USD', target: 'ZAR', from: '2026-01-01', to: '2026-10-14' },
|
|
197
199
|
{ apiKey: 'art_live_...' }
|
|
198
200
|
);
|
|
199
201
|
```
|
|
@@ -206,11 +208,11 @@ const series = await getHistory(
|
|
|
206
208
|
source: 'USD',
|
|
207
209
|
target: 'ZAR',
|
|
208
210
|
from: '2026-01-01',
|
|
209
|
-
to: '2026-10-
|
|
211
|
+
to: '2026-10-14',
|
|
210
212
|
count: 152,
|
|
211
213
|
rates: [
|
|
212
214
|
// one entry per publication date
|
|
213
|
-
{ date: '2026-10-
|
|
215
|
+
{ date: '2026-10-14', rate: 16.4706, rate_type: 'reference', derived: false, method: 'published' },
|
|
214
216
|
// …
|
|
215
217
|
],
|
|
216
218
|
disclaimer: '…'
|
|
@@ -329,9 +331,9 @@ getRate('USD', 'ZAR', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
329
331
|
|
|
330
332
|
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
|
|
331
333
|
|
|
332
|
-
- Hugging Face: [
|
|
334
|
+
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/sarb.csv`)
|
|
333
335
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
334
|
-
-
|
|
336
|
+
- Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/sarb/latest.json`
|
|
335
337
|
|
|
336
338
|
## 🔗 Links
|
|
337
339
|
|
package/package.json
CHANGED
|
@@ -1,19 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/sarb-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.13",
|
|
4
4
|
"description": "Official South African Reserve Bank (South Africa) daily exchange rates — 23 currencies vs ZAR, history since 2000. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sarb",
|
|
7
|
+
"south-african-reserve-bank",
|
|
7
8
|
"south",
|
|
8
9
|
"african",
|
|
9
10
|
"reserve",
|
|
10
11
|
"bank",
|
|
11
12
|
"exchange-rate",
|
|
12
13
|
"exchange-rates",
|
|
14
|
+
"exchangerate",
|
|
15
|
+
"exchange rate",
|
|
16
|
+
"zar-exchange-rate",
|
|
13
17
|
"currency",
|
|
14
18
|
"forex",
|
|
15
19
|
"fx",
|
|
16
20
|
"zar",
|
|
21
|
+
"currency-api",
|
|
22
|
+
"currency-exchange-rates",
|
|
23
|
+
"forex-api",
|
|
24
|
+
"currency-conversion",
|
|
25
|
+
"currency-exchange",
|
|
26
|
+
"currency-rates",
|
|
17
27
|
"central-bank",
|
|
18
28
|
"official-rates",
|
|
19
29
|
"south-africa",
|