@allratestoday/brh-exchange-rate 1.2.7 → 1.3.0
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 +17 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,10 +70,10 @@ const pair = await getRate('USD', 'HTG', { apiKey: 'art_live_...' });
|
|
|
70
70
|
{
|
|
71
71
|
bank: 'brh',
|
|
72
72
|
name: 'Banque de la République d\'Haïti',
|
|
73
|
-
rate_date: '2026-09-
|
|
73
|
+
rate_date: '2026-09-09', // Banque de la République d'Haïti's own publication date
|
|
74
74
|
source: 'USD',
|
|
75
75
|
target: 'HTG',
|
|
76
|
-
rate: 130.
|
|
76
|
+
rate: 130.4876,
|
|
77
77
|
rate_type: 'reference',
|
|
78
78
|
derived: false,
|
|
79
79
|
method: 'published',
|
|
@@ -98,11 +98,11 @@ console.log(table.rate_date, table.rates.length);
|
|
|
98
98
|
{
|
|
99
99
|
bank: 'brh',
|
|
100
100
|
name: 'Banque de la République d\'Haïti',
|
|
101
|
-
rate_date: '2026-09-
|
|
101
|
+
rate_date: '2026-09-09',
|
|
102
102
|
rates: [
|
|
103
|
-
{ "base": "USD", "quote": "HTG", "type": "reference", "value": 130.
|
|
104
|
-
{ "base": "USD", "quote": "HTG", "type": "sell", "value": 131.
|
|
105
|
-
{ "base": "USD", "quote": "HTG", "type": "buy", "value": 130.
|
|
103
|
+
{ "base": "USD", "quote": "HTG", "type": "reference", "value": 130.4876 },
|
|
104
|
+
{ "base": "USD", "quote": "HTG", "type": "sell", "value": 131.1807 },
|
|
105
|
+
{ "base": "USD", "quote": "HTG", "type": "buy", "value": 130.2794 },
|
|
106
106
|
// … the rest of the published table (1 currency vs HTG)
|
|
107
107
|
],
|
|
108
108
|
disclaimer: '…'
|
|
@@ -142,7 +142,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
142
142
|
import { getHistory } from '@allratestoday/brh-exchange-rate';
|
|
143
143
|
|
|
144
144
|
const series = await getHistory(
|
|
145
|
-
{ source: 'USD', target: 'HTG', from: '2026-01-01', to: '2026-09-
|
|
145
|
+
{ source: 'USD', target: 'HTG', from: '2026-01-01', to: '2026-09-09' },
|
|
146
146
|
{ apiKey: 'art_live_...' }
|
|
147
147
|
);
|
|
148
148
|
```
|
|
@@ -155,11 +155,11 @@ const series = await getHistory(
|
|
|
155
155
|
source: 'USD',
|
|
156
156
|
target: 'HTG',
|
|
157
157
|
from: '2026-01-01',
|
|
158
|
-
to: '2026-09-
|
|
158
|
+
to: '2026-09-09',
|
|
159
159
|
count: 152,
|
|
160
160
|
rates: [
|
|
161
161
|
// one entry per publication date
|
|
162
|
-
{ date: '2026-09-
|
|
162
|
+
{ date: '2026-09-09', rate: 130.4876, rate_type: 'reference', derived: false, method: 'published' },
|
|
163
163
|
// …
|
|
164
164
|
],
|
|
165
165
|
disclaimer: '…'
|
|
@@ -238,6 +238,14 @@ getRate('USD', 'HTG', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
238
238
|
| `getRatesForDate(date, { apiKey, source?, target? })` | Paid | The official table (or one pair) for a YYYY-MM-DD date |
|
|
239
239
|
| `getHistory({ symbol \| source+target, from?, to? }, { apiKey })` | Paid | Daily series since 2026 |
|
|
240
240
|
|
|
241
|
+
## 📥 Bulk data (no key)
|
|
242
|
+
|
|
243
|
+
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
|
|
244
|
+
|
|
245
|
+
- Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/brh.csv`)
|
|
246
|
+
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
247
|
+
- CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/brh/latest.json`
|
|
248
|
+
|
|
241
249
|
## 🔗 Links
|
|
242
250
|
|
|
243
251
|
- [Banque de la République d'Haïti rates page](https://allratestoday.com/central-bank-rates-api/brh/) — live table, publication cadence, FAQ
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/brh-exchange-rate",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
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",
|