@allratestoday/fed-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 +33 -33
  2. package/package.json +11 -2
package/README.md CHANGED
@@ -42,32 +42,32 @@ 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-02** by US Federal Reserve — 22 rates. Updated 2026-10-12.
45
+ Published **2026-10-09** by US Federal Reserve — 22 rates. Updated 2026-10-16.
46
46
 
47
47
  | Base | Quote | Type | Rate |
48
48
  | --- | --- | --- | ---: |
49
- | AUD | USD | reference | 0.6953 |
50
- | EUR | USD | reference | 1.1259 |
51
- | GBP | USD | reference | 1.3234 |
52
- | NZD | USD | reference | 0.5612 |
53
- | USD | BRL | reference | 5.2222 |
54
- | USD | CAD | reference | 1.4253 |
55
- | USD | CHF | reference | 0.8293 |
56
- | USD | CNY | reference | 6.7038 |
57
- | USD | DKK | reference | 6.6574 |
58
- | USD | HKD | reference | 7.847 |
59
- | USD | INR | reference | 96.31 |
60
- | USD | JPY | reference | 157.81 |
61
- | USD | KRW | reference | 1345.75 |
62
- | USD | LKR | reference | 330.55 |
63
- | USD | MXN | reference | 18.192 |
64
- | USD | MYR | reference | 4.081 |
65
- | USD | NOK | reference | 9.6386 |
66
- | USD | SEK | reference | 10.0688 |
67
- | USD | SGD | reference | 1.2787 |
68
- | USD | THB | reference | 33.58 |
69
- | USD | TWD | reference | 32.01 |
70
- | USD | ZAR | reference | 16.6685 |
49
+ | AUD | USD | reference | 0.6979 |
50
+ | EUR | USD | reference | 1.1193 |
51
+ | GBP | USD | reference | 1.3229 |
52
+ | NZD | USD | reference | 0.5611 |
53
+ | USD | BRL | reference | 4.979 |
54
+ | USD | CAD | reference | 1.4269 |
55
+ | USD | CHF | reference | 0.8308 |
56
+ | USD | CNY | reference | 6.692 |
57
+ | USD | DKK | reference | 6.678 |
58
+ | USD | HKD | reference | 7.8476 |
59
+ | USD | INR | reference | 96.73 |
60
+ | USD | JPY | reference | 158.34 |
61
+ | USD | KRW | reference | 1342.13 |
62
+ | USD | LKR | reference | 330.8 |
63
+ | USD | MXN | reference | 18.399 |
64
+ | USD | MYR | reference | 4.083 |
65
+ | USD | NOK | reference | 9.5665 |
66
+ | USD | SEK | reference | 10.0039 |
67
+ | USD | SGD | reference | 1.2811 |
68
+ | USD | THB | reference | 33.55 |
69
+ | USD | TWD | reference | 31.94 |
70
+ | USD | ZAR | reference | 16.532 |
71
71
 
72
72
  Source: [Official rates published by FED, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/fed/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
73
73
  <!-- daily-table:end -->
@@ -124,10 +124,10 @@ const pair = await getRate('USD', 'JPY', { apiKey: 'art_live_...' });
124
124
  {
125
125
  bank: 'fed',
126
126
  name: 'US Federal Reserve',
127
- rate_date: '2026-10-02', // US Federal Reserve's own publication date
127
+ rate_date: '2026-10-09', // US Federal Reserve's own publication date
128
128
  source: 'USD',
129
129
  target: 'JPY',
130
- rate: 157.81,
130
+ rate: 158.34,
131
131
  rate_type: 'reference',
132
132
  derived: false,
133
133
  method: 'published',
@@ -152,9 +152,9 @@ console.log(table.rate_date, table.rates.length);
152
152
  {
153
153
  bank: 'fed',
154
154
  name: 'US Federal Reserve',
155
- rate_date: '2026-10-02',
155
+ rate_date: '2026-10-09',
156
156
  rates: [
157
- { "base": "USD", "quote": "JPY", "type": "reference", "value": 157.81 },
157
+ { "base": "USD", "quote": "JPY", "type": "reference", "value": 158.34 },
158
158
  // … the rest of the published table (22 currencies vs USD)
159
159
  ],
160
160
  disclaimer: '…'
@@ -194,7 +194,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
194
194
  import { getHistory } from '@allratestoday/fed-exchange-rate';
195
195
 
196
196
  const series = await getHistory(
197
- { source: 'USD', target: 'JPY', from: '2026-01-01', to: '2026-10-02' },
197
+ { source: 'USD', target: 'JPY', from: '2026-01-01', to: '2026-10-09' },
198
198
  { apiKey: 'art_live_...' }
199
199
  );
200
200
  ```
@@ -207,11 +207,11 @@ const series = await getHistory(
207
207
  source: 'USD',
208
208
  target: 'JPY',
209
209
  from: '2026-01-01',
210
- to: '2026-10-02',
210
+ to: '2026-10-09',
211
211
  count: 152,
212
212
  rates: [
213
213
  // one entry per publication date
214
- { date: '2026-10-02', rate: 157.81, rate_type: 'reference', derived: false, method: 'published' },
214
+ { date: '2026-10-09', rate: 158.34, rate_type: 'reference', derived: false, method: 'published' },
215
215
  // …
216
216
  ],
217
217
  disclaimer: '…'
@@ -261,7 +261,7 @@ curl "https://allratestoday.com/api/v1/central-bank/fed/latest?format=xml&api_ke
261
261
  - 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
262
262
  - 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('fed')` 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
263
263
  - 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 fed ...` command
264
- - 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`
264
+ - 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`
265
265
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
266
266
 
267
267
  ## ⚖️ Published vs derived rates
@@ -330,9 +330,9 @@ getRate('USD', 'JPY', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
330
330
 
331
331
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
332
332
 
333
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/fed.csv`)
333
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/fed.csv`)
334
334
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
335
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/fed/latest.json`
335
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/fed/latest.json`
336
336
 
337
337
  ## 🔗 Links
338
338
 
package/package.json CHANGED
@@ -1,18 +1,27 @@
1
1
  {
2
2
  "name": "@allratestoday/fed-exchange-rate",
3
- "version": "1.3.9",
3
+ "version": "1.3.14",
4
4
  "description": "Official US Federal Reserve (United States) weekly exchange rates — 22 currencies vs USD, history since 2016. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "fed",
7
- "us",
7
+ "us-federal-reserve",
8
8
  "federal",
9
9
  "reserve",
10
10
  "exchange-rate",
11
11
  "exchange-rates",
12
+ "exchangerate",
13
+ "exchange rate",
14
+ "usd-exchange-rate",
12
15
  "currency",
13
16
  "forex",
14
17
  "fx",
15
18
  "usd",
19
+ "currency-api",
20
+ "currency-exchange-rates",
21
+ "forex-api",
22
+ "currency-conversion",
23
+ "currency-exchange",
24
+ "currency-rates",
16
25
  "central-bank",
17
26
  "official-rates",
18
27
  "united-states",