@allratestoday/brh-exchange-rate 1.3.7 → 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 +19 -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 '@allratestoday/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: '…'
|
|
@@ -242,6 +244,7 @@ curl "https://allratestoday.com/api/v1/central-bank/brh/latest?format=xml&api_ke
|
|
|
242
244
|
- 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
|
|
243
245
|
- 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('brh')` 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
|
|
244
246
|
- 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 brh ...` command
|
|
247
|
+
- 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`
|
|
245
248
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
246
249
|
|
|
247
250
|
## ⚖️ Published vs derived rates
|
|
@@ -310,9 +313,9 @@ getRate('USD', 'HTG', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
310
313
|
|
|
311
314
|
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
|
|
312
315
|
|
|
313
|
-
- 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`)
|
|
314
317
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
315
|
-
-
|
|
318
|
+
- Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/brh/latest.json`
|
|
316
319
|
|
|
317
320
|
## 🔗 Links
|
|
318
321
|
|
package/package.json
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/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",
|