@allratestoday/brh-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.
Files changed (2) hide show
  1. package/README.md +15 -15
  2. package/package.json +13 -5
package/README.md CHANGED
@@ -42,13 +42,13 @@ 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 Banque de la République d'Haïti — 3 rates. Updated 2026-10-12.
45
+ Published **2026-10-13** by Banque de la République d'Haïti — 3 rates. Updated 2026-10-14.
46
46
 
47
47
  | Base | Quote | Type | Rate |
48
48
  | --- | --- | --- | ---: |
49
- | USD | HTG | buy | 130.3146 |
50
- | USD | HTG | reference | 130.5488 |
51
- | USD | HTG | sell | 131.295 |
49
+ | USD | HTG | buy | 130.2509 |
50
+ | USD | HTG | reference | 130.5106 |
51
+ | USD | HTG | sell | 131.3737 |
52
52
 
53
53
  Source: [Official rates published by BRH, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/brh/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
54
54
  <!-- daily-table:end -->
@@ -105,10 +105,10 @@ const pair = await getRate('USD', 'HTG', { apiKey: 'art_live_...' });
105
105
  {
106
106
  bank: 'brh',
107
107
  name: 'Banque de la République d\'Haïti',
108
- rate_date: '2026-10-12', // Banque de la République d'Haïti's own publication date
108
+ rate_date: '2026-10-13', // Banque de la République d'Haïti's own publication date
109
109
  source: 'USD',
110
110
  target: 'HTG',
111
- rate: 130.5488,
111
+ rate: 130.5106,
112
112
  rate_type: 'reference',
113
113
  derived: false,
114
114
  method: 'published',
@@ -133,11 +133,11 @@ console.log(table.rate_date, table.rates.length);
133
133
  {
134
134
  bank: 'brh',
135
135
  name: 'Banque de la République d\'Haïti',
136
- rate_date: '2026-10-12',
136
+ rate_date: '2026-10-13',
137
137
  rates: [
138
- { "base": "USD", "quote": "HTG", "type": "reference", "value": 130.5488 },
139
- { "base": "USD", "quote": "HTG", "type": "sell", "value": 131.295 },
140
- { "base": "USD", "quote": "HTG", "type": "buy", "value": 130.3146 },
138
+ { "base": "USD", "quote": "HTG", "type": "reference", "value": 130.5106 },
139
+ { "base": "USD", "quote": "HTG", "type": "sell", "value": 131.3737 },
140
+ { "base": "USD", "quote": "HTG", "type": "buy", "value": 130.2509 },
141
141
  // … the rest of the published table (1 currency vs HTG)
142
142
  ],
143
143
  disclaimer: '…'
@@ -177,7 +177,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
177
177
  import { getHistory } from '@allratestoday/brh-exchange-rate';
178
178
 
179
179
  const series = await getHistory(
180
- { source: 'USD', target: 'HTG', from: '2026-01-01', to: '2026-10-12' },
180
+ { source: 'USD', target: 'HTG', from: '2026-01-01', to: '2026-10-13' },
181
181
  { apiKey: 'art_live_...' }
182
182
  );
183
183
  ```
@@ -190,11 +190,11 @@ const series = await getHistory(
190
190
  source: 'USD',
191
191
  target: 'HTG',
192
192
  from: '2026-01-01',
193
- to: '2026-10-12',
193
+ to: '2026-10-13',
194
194
  count: 152,
195
195
  rates: [
196
196
  // one entry per publication date
197
- { date: '2026-10-12', rate: 130.5488, rate_type: 'reference', derived: false, method: 'published' },
197
+ { date: '2026-10-13', rate: 130.5106, rate_type: 'reference', derived: false, method: 'published' },
198
198
  // …
199
199
  ],
200
200
  disclaimer: '…'
@@ -313,9 +313,9 @@ getRate('USD', 'HTG', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
313
313
 
314
314
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
315
315
 
316
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/brh.csv`)
316
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/brh.csv`)
317
317
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
318
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/brh/latest.json`
318
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/brh/latest.json`
319
319
 
320
320
  ## 🔗 Links
321
321
 
package/package.json CHANGED
@@ -1,20 +1,28 @@
1
1
  {
2
2
  "name": "@allratestoday/brh-exchange-rate",
3
- "version": "1.3.9",
3
+ "version": "1.3.13",
4
4
  "description": "Official Banque de la République d'Haïti (Haiti) daily exchange rates — 1 currency vs HTG, current table, archive from 2026. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "brh",
7
+ "banque-de-la-republique-dhaiti",
7
8
  "banque",
8
- "de",
9
- "la",
10
- "république",
11
- "d'haïti",
9
+ "republique",
10
+ "dhaiti",
12
11
  "exchange-rate",
13
12
  "exchange-rates",
13
+ "exchangerate",
14
+ "exchange rate",
15
+ "htg-exchange-rate",
14
16
  "currency",
15
17
  "forex",
16
18
  "fx",
17
19
  "htg",
20
+ "currency-api",
21
+ "currency-exchange-rates",
22
+ "forex-api",
23
+ "currency-conversion",
24
+ "currency-exchange",
25
+ "currency-rates",
18
26
  "central-bank",
19
27
  "official-rates",
20
28
  "haiti",