@allratestoday/brh-exchange-rate 1.3.6 → 1.3.9
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 +30 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
[](https://github.com/AllRates-Today/brh-exchange-rate/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/@allratestoday/brh-exchange-rate)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://allratestoday.com/central-bank-rates-api/brh/)
|
|
8
|
+
[](https://allratestoday.com/central-bank-rates-api/brh/)
|
|
7
9
|
|
|
8
10
|
**Official Banque de la République d'Haïti (Haiti) daily exchange rates for Node.js and TypeScript. The published central bank rates behind tax filings, customs valuations, audits, and compliant invoicing — not market estimates, but the numbers Banque de la République d'Haïti itself prints, every business day.**
|
|
9
11
|
|
|
@@ -33,6 +35,24 @@ console.log(r.rate_date, r.rates.length); // the central bank's latest published
|
|
|
33
35
|
|
|
34
36
|
The open endpoint serves the *latest* table only and asks for a visible attribution link. The client below uses the keyed API, which adds point-in-time tables, history, and CSV/XML/Excel output.
|
|
35
37
|
|
|
38
|
+
## 📈 Latest published table
|
|
39
|
+
|
|
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.
|
|
43
|
+
|
|
44
|
+
<!-- daily-table:start -->
|
|
45
|
+
Published **2026-10-12** by Banque de la République d'Haïti — 3 rates. Updated 2026-10-12.
|
|
46
|
+
|
|
47
|
+
| Base | Quote | Type | Rate |
|
|
48
|
+
| --- | --- | --- | ---: |
|
|
49
|
+
| USD | HTG | buy | 130.3146 |
|
|
50
|
+
| USD | HTG | reference | 130.5488 |
|
|
51
|
+
| USD | HTG | sell | 131.295 |
|
|
52
|
+
|
|
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
|
+
<!-- daily-table:end -->
|
|
55
|
+
|
|
36
56
|
## 🔑 Get your API key
|
|
37
57
|
|
|
38
58
|
Get a free API key at [allratestoday.com/register](https://allratestoday.com/register) — no credit card required. Latest rates are on every plan, including free.
|
|
@@ -85,10 +105,10 @@ const pair = await getRate('USD', 'HTG', { apiKey: 'art_live_...' });
|
|
|
85
105
|
{
|
|
86
106
|
bank: 'brh',
|
|
87
107
|
name: 'Banque de la République d\'Haïti',
|
|
88
|
-
rate_date: '2026-10-
|
|
108
|
+
rate_date: '2026-10-12', // Banque de la République d'Haïti's own publication date
|
|
89
109
|
source: 'USD',
|
|
90
110
|
target: 'HTG',
|
|
91
|
-
rate: 130.
|
|
111
|
+
rate: 130.5488,
|
|
92
112
|
rate_type: 'reference',
|
|
93
113
|
derived: false,
|
|
94
114
|
method: 'published',
|
|
@@ -113,11 +133,11 @@ console.log(table.rate_date, table.rates.length);
|
|
|
113
133
|
{
|
|
114
134
|
bank: 'brh',
|
|
115
135
|
name: 'Banque de la République d\'Haïti',
|
|
116
|
-
rate_date: '2026-10-
|
|
136
|
+
rate_date: '2026-10-12',
|
|
117
137
|
rates: [
|
|
118
|
-
{ "base": "USD", "quote": "HTG", "type": "reference", "value": 130.
|
|
119
|
-
{ "base": "USD", "quote": "HTG", "type": "sell", "value": 131.
|
|
120
|
-
{ "base": "USD", "quote": "HTG", "type": "buy", "value": 130.
|
|
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 },
|
|
121
141
|
// … the rest of the published table (1 currency vs HTG)
|
|
122
142
|
],
|
|
123
143
|
disclaimer: '…'
|
|
@@ -157,7 +177,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
157
177
|
import { getHistory } from '@allratestoday/brh-exchange-rate';
|
|
158
178
|
|
|
159
179
|
const series = await getHistory(
|
|
160
|
-
{ source: 'USD', target: 'HTG', from: '2026-01-01', to: '2026-10-
|
|
180
|
+
{ source: 'USD', target: 'HTG', from: '2026-01-01', to: '2026-10-12' },
|
|
161
181
|
{ apiKey: 'art_live_...' }
|
|
162
182
|
);
|
|
163
183
|
```
|
|
@@ -170,11 +190,11 @@ const series = await getHistory(
|
|
|
170
190
|
source: 'USD',
|
|
171
191
|
target: 'HTG',
|
|
172
192
|
from: '2026-01-01',
|
|
173
|
-
to: '2026-10-
|
|
193
|
+
to: '2026-10-12',
|
|
174
194
|
count: 152,
|
|
175
195
|
rates: [
|
|
176
196
|
// one entry per publication date
|
|
177
|
-
{ date: '2026-10-
|
|
197
|
+
{ date: '2026-10-12', rate: 130.5488, rate_type: 'reference', derived: false, method: 'published' },
|
|
178
198
|
// …
|
|
179
199
|
],
|
|
180
200
|
disclaimer: '…'
|
|
@@ -224,6 +244,7 @@ curl "https://allratestoday.com/api/v1/central-bank/brh/latest?format=xml&api_ke
|
|
|
224
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
|
|
225
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
|
|
226
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`
|
|
227
248
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
228
249
|
|
|
229
250
|
## ⚖️ Published vs derived rates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/brh-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
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",
|