brh-exchange-rate 1.3.8 → 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 +18 -16
- package/package.json +13 -5
package/README.md
CHANGED
|
@@ -37,16 +37,18 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
37
37
|
|
|
38
38
|
## 📈 Latest published table
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
[](https://allratestoday.com/central-bank-rates-api/brh/)
|
|
41
|
+
|
|
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.
|
|
41
43
|
|
|
42
44
|
<!-- daily-table:start -->
|
|
43
|
-
Published **2026-10-
|
|
45
|
+
Published **2026-10-13** by Banque de la République d'Haïti — 3 rates. Updated 2026-10-14.
|
|
44
46
|
|
|
45
47
|
| Base | Quote | Type | Rate |
|
|
46
48
|
| --- | --- | --- | ---: |
|
|
47
|
-
| USD | HTG | buy | 130.
|
|
48
|
-
| USD | HTG | reference | 130.
|
|
49
|
-
| USD | HTG | sell | 131.
|
|
49
|
+
| USD | HTG | buy | 130.2509 |
|
|
50
|
+
| USD | HTG | reference | 130.5106 |
|
|
51
|
+
| USD | HTG | sell | 131.3737 |
|
|
50
52
|
|
|
51
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.
|
|
52
54
|
<!-- daily-table:end -->
|
|
@@ -103,10 +105,10 @@ const pair = await getRate('USD', 'HTG', { apiKey: 'art_live_...' });
|
|
|
103
105
|
{
|
|
104
106
|
bank: 'brh',
|
|
105
107
|
name: 'Banque de la République d\'Haïti',
|
|
106
|
-
rate_date: '2026-10-
|
|
108
|
+
rate_date: '2026-10-13', // Banque de la République d'Haïti's own publication date
|
|
107
109
|
source: 'USD',
|
|
108
110
|
target: 'HTG',
|
|
109
|
-
rate: 130.
|
|
111
|
+
rate: 130.5106,
|
|
110
112
|
rate_type: 'reference',
|
|
111
113
|
derived: false,
|
|
112
114
|
method: 'published',
|
|
@@ -131,11 +133,11 @@ console.log(table.rate_date, table.rates.length);
|
|
|
131
133
|
{
|
|
132
134
|
bank: 'brh',
|
|
133
135
|
name: 'Banque de la République d\'Haïti',
|
|
134
|
-
rate_date: '2026-10-
|
|
136
|
+
rate_date: '2026-10-13',
|
|
135
137
|
rates: [
|
|
136
|
-
{ "base": "USD", "quote": "HTG", "type": "reference", "value": 130.
|
|
137
|
-
{ "base": "USD", "quote": "HTG", "type": "sell", "value": 131.
|
|
138
|
-
{ "base": "USD", "quote": "HTG", "type": "buy", "value": 130.
|
|
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 },
|
|
139
141
|
// … the rest of the published table (1 currency vs HTG)
|
|
140
142
|
],
|
|
141
143
|
disclaimer: '…'
|
|
@@ -175,7 +177,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
175
177
|
import { getHistory } from 'brh-exchange-rate';
|
|
176
178
|
|
|
177
179
|
const series = await getHistory(
|
|
178
|
-
{ source: 'USD', target: 'HTG', from: '2026-01-01', to: '2026-10-
|
|
180
|
+
{ source: 'USD', target: 'HTG', from: '2026-01-01', to: '2026-10-13' },
|
|
179
181
|
{ apiKey: 'art_live_...' }
|
|
180
182
|
);
|
|
181
183
|
```
|
|
@@ -188,11 +190,11 @@ const series = await getHistory(
|
|
|
188
190
|
source: 'USD',
|
|
189
191
|
target: 'HTG',
|
|
190
192
|
from: '2026-01-01',
|
|
191
|
-
to: '2026-10-
|
|
193
|
+
to: '2026-10-13',
|
|
192
194
|
count: 152,
|
|
193
195
|
rates: [
|
|
194
196
|
// one entry per publication date
|
|
195
|
-
{ date: '2026-10-
|
|
197
|
+
{ date: '2026-10-13', rate: 130.5106, rate_type: 'reference', derived: false, method: 'published' },
|
|
196
198
|
// …
|
|
197
199
|
],
|
|
198
200
|
disclaimer: '…'
|
|
@@ -311,9 +313,9 @@ getRate('USD', 'HTG', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
311
313
|
|
|
312
314
|
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
|
|
313
315
|
|
|
314
|
-
- Hugging Face: [
|
|
316
|
+
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/brh.csv`)
|
|
315
317
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
316
|
-
-
|
|
318
|
+
- Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/brh/latest.json`
|
|
317
319
|
|
|
318
320
|
## 🔗 Links
|
|
319
321
|
|
package/package.json
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brh-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
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
|
-
"
|
|
9
|
-
"
|
|
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",
|