@allratestoday/bccr-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 +15 -14
  2. package/package.json +11 -2
package/README.md CHANGED
@@ -42,12 +42,13 @@ 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 Costa Rica — 2 rates. Updated 2026-10-12.
45
+ Published **2026-10-16** by Banco Central de Costa Rica — 3 rates. Updated 2026-10-16.
46
46
 
47
47
  | Base | Quote | Type | Rate |
48
48
  | --- | --- | --- | ---: |
49
- | USD | CRC | buy | 452.61 |
50
- | USD | CRC | sell | 456.61 |
49
+ | EUR | CRC | reference | 510.45 |
50
+ | USD | CRC | buy | 448.47 |
51
+ | USD | CRC | sell | 453.65 |
51
52
 
52
53
  Source: [Official rates published by BCCR, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bccr/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
53
54
  <!-- daily-table:end -->
@@ -104,10 +105,10 @@ const pair = await getRate('USD', 'CRC', { apiKey: 'art_live_...' });
104
105
  {
105
106
  bank: 'bccr',
106
107
  name: 'Banco Central de Costa Rica',
107
- rate_date: '2026-10-09', // Banco Central de Costa Rica's own publication date
108
+ rate_date: '2026-10-13', // Banco Central de Costa Rica's own publication date
108
109
  source: 'USD',
109
110
  target: 'CRC',
110
- rate: 456.61,
111
+ rate: 454.48,
111
112
  rate_type: 'sell',
112
113
  derived: false,
113
114
  method: 'published',
@@ -132,10 +133,10 @@ console.log(table.rate_date, table.rates.length);
132
133
  {
133
134
  bank: 'bccr',
134
135
  name: 'Banco Central de Costa Rica',
135
- rate_date: '2026-10-09',
136
+ rate_date: '2026-10-13',
136
137
  rates: [
137
- { "base": "USD", "quote": "CRC", "type": "sell", "value": 456.61 },
138
- { "base": "USD", "quote": "CRC", "type": "buy", "value": 452.61 },
138
+ { "base": "USD", "quote": "CRC", "type": "sell", "value": 454.48 },
139
+ { "base": "USD", "quote": "CRC", "type": "buy", "value": 449.11 },
139
140
  // … the rest of the published table (2 currencies vs CRC)
140
141
  ],
141
142
  disclaimer: '…'
@@ -175,7 +176,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
175
176
  import { getHistory } from '@allratestoday/bccr-exchange-rate';
176
177
 
177
178
  const series = await getHistory(
178
- { source: 'USD', target: 'CRC', from: '2026-01-01', to: '2026-10-09' },
179
+ { source: 'USD', target: 'CRC', from: '2026-01-01', to: '2026-10-13' },
179
180
  { apiKey: 'art_live_...' }
180
181
  );
181
182
  ```
@@ -188,11 +189,11 @@ const series = await getHistory(
188
189
  source: 'USD',
189
190
  target: 'CRC',
190
191
  from: '2026-01-01',
191
- to: '2026-10-09',
192
+ to: '2026-10-13',
192
193
  count: 152,
193
194
  rates: [
194
195
  // one entry per publication date
195
- { date: '2026-10-09', rate: 456.61, rate_type: 'sell', derived: false, method: 'published' },
196
+ { date: '2026-10-13', rate: 454.48, rate_type: 'sell', derived: false, method: 'published' },
196
197
  // …
197
198
  ],
198
199
  disclaimer: '…'
@@ -242,7 +243,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bccr/latest?format=xml&api_k
242
243
  - 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
244
  - 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('bccr')` 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
245
  - 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 bccr ...` 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`
246
+ - 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
247
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
247
248
 
248
249
  ## ⚖️ Published vs derived rates
@@ -311,9 +312,9 @@ getRate('USD', 'CRC', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
311
312
 
312
313
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
313
314
 
314
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/bccr.csv`)
315
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/bccr.csv`)
315
316
  - 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/bccr/latest.json`
317
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/bccr/latest.json`
317
318
 
318
319
  ## 🔗 Links
319
320
 
package/package.json CHANGED
@@ -1,20 +1,29 @@
1
1
  {
2
2
  "name": "@allratestoday/bccr-exchange-rate",
3
- "version": "1.3.9",
3
+ "version": "1.3.14",
4
4
  "description": "Official Banco Central de Costa Rica (Costa Rica) daily exchange rates — 2 currencies vs CRC, current table, archive from 2026. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "bccr",
7
+ "banco-central-de-costa-rica",
7
8
  "banco",
8
9
  "central",
9
- "de",
10
10
  "costa",
11
11
  "rica",
12
12
  "exchange-rate",
13
13
  "exchange-rates",
14
+ "exchangerate",
15
+ "exchange rate",
16
+ "crc-exchange-rate",
14
17
  "currency",
15
18
  "forex",
16
19
  "fx",
17
20
  "crc",
21
+ "currency-api",
22
+ "currency-exchange-rates",
23
+ "forex-api",
24
+ "currency-conversion",
25
+ "currency-exchange",
26
+ "currency-rates",
18
27
  "central-bank",
19
28
  "official-rates",
20
29
  "costa-rica",