@allratestoday/bcrd-exchange-rate 1.3.9 → 1.3.14

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 +14 -14
  2. package/package.json +12 -4
package/README.md CHANGED
@@ -42,12 +42,12 @@ 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-09** by Banco Central de la República Dominicana — 2 rates. Updated 2026-10-12.
45
+ Published **2026-10-16** by Banco Central de la República Dominicana — 2 rates. Updated 2026-10-17.
46
46
 
47
47
  | Base | Quote | Type | Rate |
48
48
  | --- | --- | --- | ---: |
49
- | USD | DOP | buy | 61.1168 |
50
- | USD | DOP | sell | 61.8247 |
49
+ | USD | DOP | buy | 61.3649 |
50
+ | USD | DOP | sell | 61.8322 |
51
51
 
52
52
  Source: [Official rates published by BCRD, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bcrd/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
53
53
  <!-- daily-table:end -->
@@ -104,10 +104,10 @@ const pair = await getRate('USD', 'DOP', { apiKey: 'art_live_...' });
104
104
  {
105
105
  bank: 'bcrd',
106
106
  name: 'Banco Central de la República Dominicana',
107
- rate_date: '2026-10-09', // Banco Central de la República Dominicana's own publication date
107
+ rate_date: '2026-10-13', // Banco Central de la República Dominicana's own publication date
108
108
  source: 'USD',
109
109
  target: 'DOP',
110
- rate: 61.8247,
110
+ rate: 61.5396,
111
111
  rate_type: 'sell',
112
112
  derived: false,
113
113
  method: 'published',
@@ -132,10 +132,10 @@ console.log(table.rate_date, table.rates.length);
132
132
  {
133
133
  bank: 'bcrd',
134
134
  name: 'Banco Central de la República Dominicana',
135
- rate_date: '2026-10-09',
135
+ rate_date: '2026-10-13',
136
136
  rates: [
137
- { "base": "USD", "quote": "DOP", "type": "sell", "value": 61.8247 },
138
- { "base": "USD", "quote": "DOP", "type": "buy", "value": 61.1168 },
137
+ { "base": "USD", "quote": "DOP", "type": "sell", "value": 61.5396 },
138
+ { "base": "USD", "quote": "DOP", "type": "buy", "value": 61.1149 },
139
139
  // … the rest of the published table (14 currencies vs DOP)
140
140
  ],
141
141
  disclaimer: '…'
@@ -175,7 +175,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
175
175
  import { getHistory } from '@allratestoday/bcrd-exchange-rate';
176
176
 
177
177
  const series = await getHistory(
178
- { source: 'USD', target: 'DOP', from: '2026-01-01', to: '2026-10-09' },
178
+ { source: 'USD', target: 'DOP', from: '2026-01-01', to: '2026-10-13' },
179
179
  { apiKey: 'art_live_...' }
180
180
  );
181
181
  ```
@@ -188,11 +188,11 @@ const series = await getHistory(
188
188
  source: 'USD',
189
189
  target: 'DOP',
190
190
  from: '2026-01-01',
191
- to: '2026-10-09',
191
+ to: '2026-10-13',
192
192
  count: 152,
193
193
  rates: [
194
194
  // one entry per publication date
195
- { date: '2026-10-09', rate: 61.8247, rate_type: 'sell', derived: false, method: 'published' },
195
+ { date: '2026-10-13', rate: 61.5396, rate_type: 'sell', derived: false, method: 'published' },
196
196
  // …
197
197
  ],
198
198
  disclaimer: '…'
@@ -242,7 +242,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bcrd/latest?format=xml&api_k
242
242
  - 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
243
  - 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('bcrd')` 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
244
  - 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 bcrd ...` command
245
- - 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
+ - Evaluating? 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 that covers the free-plan methods (latest table, pairs); dated tables and history need a [paid plan](https://allratestoday.com/pricing/). The MCP servers expose it as `request_trial_key`
246
246
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
247
247
 
248
248
  ## ⚖️ Published vs derived rates
@@ -311,9 +311,9 @@ getRate('USD', 'DOP', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
311
311
 
312
312
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
313
313
 
314
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/bcrd.csv`)
314
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/bcrd.csv`)
315
315
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
316
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/bcrd/latest.json`
316
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/bcrd/latest.json`
317
317
 
318
318
  ## 🔗 Links
319
319
 
package/package.json CHANGED
@@ -1,21 +1,29 @@
1
1
  {
2
2
  "name": "@allratestoday/bcrd-exchange-rate",
3
- "version": "1.3.9",
3
+ "version": "1.3.14",
4
4
  "description": "Official Banco Central de la República Dominicana (Dominican Republic) daily exchange rates — 14 currencies vs DOP, history since 1991. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "bcrd",
7
+ "banco-central-de-la-republica-dominicana",
7
8
  "banco",
8
9
  "central",
9
- "de",
10
- "la",
11
- "república",
10
+ "republica",
12
11
  "dominicana",
13
12
  "exchange-rate",
14
13
  "exchange-rates",
14
+ "exchangerate",
15
+ "exchange rate",
16
+ "dop-exchange-rate",
15
17
  "currency",
16
18
  "forex",
17
19
  "fx",
18
20
  "dop",
21
+ "currency-api",
22
+ "currency-exchange-rates",
23
+ "forex-api",
24
+ "currency-conversion",
25
+ "currency-exchange",
26
+ "currency-rates",
19
27
  "central-bank",
20
28
  "official-rates",
21
29
  "dominican-republic",