cbe-exchange-rate 1.3.7 → 1.3.8

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 +46 -45
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -40,46 +40,46 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
40
40
  Today's full Central Bank of Egypt table, straight from the central bank's latest publication. On GitHub it is refreshed by [a daily Action](.github/workflows/daily-table.yml) that reads the keyless endpoint above and commits only when the central bank publishes a new table; the copy on npm is as of the package's publish date.
41
41
 
42
42
  <!-- daily-table:start -->
43
- Published **2026-10-07** by Central Bank of Egypt — 36 rates. Updated 2026-10-08.
43
+ Published **2026-10-12** by Central Bank of Egypt — 36 rates. Updated 2026-10-12.
44
44
 
45
45
  | Base | Quote | Type | Rate |
46
46
  | --- | --- | --- | ---: |
47
- | AED | EGP | buy | 14.2438 |
48
- | AED | EGP | sell | 14.283 |
49
- | AUD | EGP | buy | 36.3993 |
50
- | AUD | EGP | sell | 36.5017 |
51
- | BHD | EGP | buy | 138.7624 |
52
- | BHD | EGP | sell | 139.1512 |
53
- | CAD | EGP | buy | 36.7728 |
54
- | CAD | EGP | sell | 36.8736 |
55
- | CHF | EGP | buy | 62.8397 |
56
- | CHF | EGP | sell | 63.0302 |
57
- | CNY | EGP | buy | 7.8037 |
58
- | CNY | EGP | sell | 7.8246 |
59
- | DKK | EGP | buy | 7.8332 |
60
- | DKK | EGP | sell | 7.8544 |
61
- | EUR | EGP | buy | 58.5465 |
62
- | EUR | EGP | sell | 58.7132 |
63
- | GBP | EGP | buy | 69.1414 |
64
- | GBP | EGP | sell | 69.3469 |
65
- | JOD | EGP | buy | 73.6906 |
66
- | JOD | EGP | sell | 74.096 |
67
- | JPY | EGP | buy | 0.33043 |
68
- | JPY | EGP | sell | 0.331396 |
69
- | KWD | EGP | buy | 169.7611 |
70
- | KWD | EGP | sell | 170.2694 |
71
- | NOK | EGP | buy | 5.4642 |
72
- | NOK | EGP | sell | 5.4833 |
73
- | OMR | EGP | buy | 135.89 |
74
- | OMR | EGP | sell | 136.2704 |
75
- | QAR | EGP | buy | 14.3524 |
76
- | QAR | EGP | sell | 14.3923 |
77
- | SAR | EGP | buy | 13.9365 |
78
- | SAR | EGP | sell | 13.9752 |
79
- | SEK | EGP | buy | 5.2127 |
80
- | SEK | EGP | sell | 5.227 |
81
- | USD | EGP | buy | 52.3204 |
82
- | USD | EGP | sell | 52.46 |
47
+ | AED | EGP | buy | 14.3207 |
48
+ | AED | EGP | sell | 14.3588 |
49
+ | AUD | EGP | buy | 36.6473 |
50
+ | AUD | EGP | sell | 36.7651 |
51
+ | BHD | EGP | buy | 139.3227 |
52
+ | BHD | EGP | sell | 139.7641 |
53
+ | CAD | EGP | buy | 36.8718 |
54
+ | CAD | EGP | sell | 36.9742 |
55
+ | CHF | EGP | buy | 63.1241 |
56
+ | CHF | EGP | sell | 63.3133 |
57
+ | CNY | EGP | buy | 7.859 |
58
+ | CNY | EGP | sell | 7.8805 |
59
+ | DKK | EGP | buy | 7.866 |
60
+ | DKK | EGP | sell | 7.8877 |
61
+ | EUR | EGP | buy | 58.7925 |
62
+ | EUR | EGP | sell | 58.958 |
63
+ | GBP | EGP | buy | 69.5862 |
64
+ | GBP | EGP | sell | 69.7856 |
65
+ | JOD | EGP | buy | 74.0863 |
66
+ | JOD | EGP | sell | 74.4915 |
67
+ | JPY | EGP | buy | 0.331576 |
68
+ | JPY | EGP | sell | 0.332514 |
69
+ | KWD | EGP | buy | 170.6726 |
70
+ | KWD | EGP | sell | 171.1782 |
71
+ | NOK | EGP | buy | 5.4914 |
72
+ | NOK | EGP | sell | 5.5063 |
73
+ | OMR | EGP | buy | 136.609 |
74
+ | OMR | EGP | sell | 136.987 |
75
+ | QAR | EGP | buy | 14.4295 |
76
+ | QAR | EGP | sell | 14.4691 |
77
+ | SAR | EGP | buy | 14.0046 |
78
+ | SAR | EGP | sell | 14.0423 |
79
+ | SEK | EGP | buy | 5.2446 |
80
+ | SEK | EGP | sell | 5.2588 |
81
+ | USD | EGP | buy | 52.6013 |
82
+ | USD | EGP | sell | 52.74 |
83
83
 
84
84
  Source: [Official rates published by CBE, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/cbe/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
85
85
  <!-- daily-table:end -->
@@ -136,10 +136,10 @@ const pair = await getRate('USD', 'EGP', { apiKey: 'art_live_...' });
136
136
  {
137
137
  bank: 'cbe',
138
138
  name: 'Central Bank of Egypt',
139
- rate_date: '2026-10-07', // Central Bank of Egypt's own publication date
139
+ rate_date: '2026-10-12', // Central Bank of Egypt's own publication date
140
140
  source: 'USD',
141
141
  target: 'EGP',
142
- rate: 52.46,
142
+ rate: 52.74,
143
143
  rate_type: 'sell',
144
144
  derived: false,
145
145
  method: 'published',
@@ -164,10 +164,10 @@ console.log(table.rate_date, table.rates.length);
164
164
  {
165
165
  bank: 'cbe',
166
166
  name: 'Central Bank of Egypt',
167
- rate_date: '2026-10-07',
167
+ rate_date: '2026-10-12',
168
168
  rates: [
169
- { "base": "USD", "quote": "EGP", "type": "sell", "value": 52.46 },
170
- { "base": "USD", "quote": "EGP", "type": "buy", "value": 52.3204 },
169
+ { "base": "USD", "quote": "EGP", "type": "sell", "value": 52.74 },
170
+ { "base": "USD", "quote": "EGP", "type": "buy", "value": 52.6013 },
171
171
  // … the rest of the published table (18 currencies vs EGP)
172
172
  ],
173
173
  disclaimer: '…'
@@ -207,7 +207,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
207
207
  import { getHistory } from 'cbe-exchange-rate';
208
208
 
209
209
  const series = await getHistory(
210
- { source: 'USD', target: 'EGP', from: '2026-01-01', to: '2026-10-07' },
210
+ { source: 'USD', target: 'EGP', from: '2026-01-01', to: '2026-10-12' },
211
211
  { apiKey: 'art_live_...' }
212
212
  );
213
213
  ```
@@ -220,11 +220,11 @@ const series = await getHistory(
220
220
  source: 'USD',
221
221
  target: 'EGP',
222
222
  from: '2026-01-01',
223
- to: '2026-10-07',
223
+ to: '2026-10-12',
224
224
  count: 152,
225
225
  rates: [
226
226
  // one entry per publication date
227
- { date: '2026-10-07', rate: 52.46, rate_type: 'sell', derived: false, method: 'published' },
227
+ { date: '2026-10-12', rate: 52.74, rate_type: 'sell', derived: false, method: 'published' },
228
228
  // …
229
229
  ],
230
230
  disclaimer: '…'
@@ -274,6 +274,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbe/latest?format=xml&api_ke
274
274
  - 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
275
275
  - 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('cbe')` 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
276
276
  - 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 cbe ...` command
277
+ - 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`
277
278
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
278
279
 
279
280
  ## ⚖️ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cbe-exchange-rate",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "Official Central Bank of Egypt (Egypt) daily exchange rates — 18 currencies vs EGP, history since 2026. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "cbe",