@allratestoday/sarb-exchange-rate 1.3.9 → 1.3.14

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.
Files changed (2) hide show
  1. package/README.md +33 -31
  2. 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-12** by South African Reserve Bank — 21 rates. Updated 2026-10-12.
45
+ Published **2026-10-16** by South African Reserve Bank — 23 rates. Updated 2026-10-16.
46
46
 
47
47
  | Base | Quote | Type | Rate |
48
48
  | --- | --- | --- | ---: |
49
- | GBP | ZAR | reference | 21.902 |
50
- | ZAR | AUD | reference | 0.0867 |
51
- | ZAR | BRL | reference | 0.3018 |
52
- | ZAR | BWP | reference | 0.8292 |
49
+ | EUR | ZAR | reference | 18.4721 |
50
+ | GBP | ZAR | reference | 21.8855 |
51
+ | USD | ZAR | reference | 16.4262 |
52
+ | ZAR | AUD | reference | 0.0875 |
53
+ | ZAR | BRL | reference | 0.3104 |
54
+ | ZAR | BWP | reference | 0.8317 |
53
55
  | ZAR | CAD | reference | 0.0862 |
54
- | ZAR | CHF | reference | 0.0503 |
55
- | ZAR | CNY | reference | 0.4046 |
56
- | ZAR | DKK | reference | 0.4037 |
57
- | ZAR | HKD | reference | 0.4744 |
58
- | ZAR | ILS | reference | 0.1861 |
59
- | ZAR | INR | reference | 5.7861 |
60
- | ZAR | JPY | reference | 9.5779 |
61
- | ZAR | KES | reference | 7.8435 |
62
- | ZAR | KRW | reference | 80.4646 |
63
- | ZAR | MWK | reference | 104.8228 |
64
- | ZAR | NOK | reference | 0.5792 |
65
- | ZAR | NZD | reference | 0.1079 |
66
- | ZAR | SEK | reference | 0.6053 |
67
- | ZAR | THB | reference | 2.0309 |
68
- | ZAR | TWD | reference | 1.93 |
69
- | ZAR | ZMW | reference | 1.2003 |
56
+ | ZAR | CHF | reference | 0.0502 |
57
+ | ZAR | CNY | reference | 0.4071 |
58
+ | ZAR | DKK | reference | 0.4047 |
59
+ | ZAR | HKD | reference | 0.4778 |
60
+ | ZAR | ILS | reference | 0.1883 |
61
+ | ZAR | INR | reference | 5.7828 |
62
+ | ZAR | JPY | reference | 9.6148 |
63
+ | ZAR | KES | reference | 7.9081 |
64
+ | ZAR | KRW | reference | 81.0794 |
65
+ | ZAR | MWK | reference | 105.5634 |
66
+ | ZAR | NOK | reference | 0.575 |
67
+ | ZAR | NZD | reference | 0.1074 |
68
+ | ZAR | SEK | reference | 0.6027 |
69
+ | ZAR | THB | reference | 2.0333 |
70
+ | ZAR | TWD | reference | 1.9707 |
71
+ | ZAR | ZMW | reference | 1.2148 |
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-08', // South African Reserve Bank's own publication date
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.6391,
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-08',
156
+ rate_date: '2026-10-14',
155
157
  rates: [
156
- { "base": "USD", "quote": "ZAR", "type": "reference", "value": 16.6391 },
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-08' },
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-08',
211
+ to: '2026-10-14',
210
212
  count: 152,
211
213
  rates: [
212
214
  // one entry per publication date
213
- { date: '2026-10-08', rate: 16.6391, rate_type: 'reference', derived: false, method: 'published' },
215
+ { date: '2026-10-14', rate: 16.4706, rate_type: 'reference', derived: false, method: 'published' },
214
216
  // …
215
217
  ],
216
218
  disclaimer: '…'
@@ -260,7 +262,7 @@ curl "https://allratestoday.com/api/v1/central-bank/sarb/latest?format=xml&api_k
260
262
  - MCP server: `npx -y @allratestoday/central-bank-mcp` (stdio) or the hosted endpoint `https://allratestoday.com/api/mcp` — tools for official rates, history, cross-bank comparison and publication calendars
261
263
  - Already using the general SDK or MCP server? Since 2026-10-01 [`@allratestoday/sdk`](https://www.npmjs.com/package/@allratestoday/sdk) 1.4+ has `officialRates('sarb')` and [`@allratestoday/mcp-server`](https://www.npmjs.com/package/@allratestoday/mcp-server) 0.6+ has a `get_official_rates` tool — both return this source's latest table with no key, so you can add it without a second dependency
262
264
  - Claude Code plugin (no key): `/plugin marketplace add AllRates-Today/claude-code-plugin` then `/plugin install allratestoday@allratestoday` — bundles both MCP servers plus an `/official-rate sarb ...` command
263
- - Need dated tables or history for an evaluation? Agents can self-issue a trial key with no signup: `POST https://allratestoday.com/api/agent/keys` (send `Content-Type: application/json`) returns a 100-call key valid 7 days; the MCP servers expose it as `request_trial_key`
265
+ - Evaluating? Agents can self-issue a trial key with no signup: `POST https://allratestoday.com/api/agent/keys` (send `Content-Type: application/json`) returns a 100-call key valid 7 days that covers the free-plan methods (latest table, pairs); dated tables and history need a [paid plan](https://allratestoday.com/pricing/). The MCP servers expose it as `request_trial_key`
264
266
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
265
267
 
266
268
  ## ⚖️ Published vs derived rates
@@ -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: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/sarb.csv`)
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
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/sarb/latest.json`
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.9",
3
+ "version": "1.3.14",
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",