@allratestoday/qcb-exchange-rate 1.3.7 โ†’ 1.3.13

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 +18 -15
  2. package/package.json +11 -2
package/README.md CHANGED
@@ -37,19 +37,21 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
37
37
 
38
38
  ## ๐Ÿ“ˆ Latest published table
39
39
 
40
- Today's full Qatar Central Bank 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.
40
+ [![Latest Qatar Central Bank table](https://allratestoday.com/api/open/central-bank/qcb/table.svg)](https://allratestoday.com/central-bank-rates-api/qcb/)
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.
41
43
 
42
44
  <!-- daily-table:start -->
43
- Published **2026-10-09** by Qatar Central Bank โ€” 7 rates. Updated 2026-10-09.
45
+ Published **2026-10-14** by Qatar Central Bank โ€” 7 rates. Updated 2026-10-14.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
47
- | AUD | QAR | reference | 2.5438 |
48
- | CAD | QAR | reference | 2.5648 |
49
- | CHF | QAR | reference | 4.39 |
50
- | EUR | QAR | reference | 4.0936 |
51
- | GBP | QAR | reference | 4.8276 |
52
- | HKD | QAR | reference | 0.4645 |
49
+ | AUD | QAR | reference | 2.5521 |
50
+ | CAD | QAR | reference | 2.5679 |
51
+ | CHF | QAR | reference | 4.3841 |
52
+ | EUR | QAR | reference | 4.0864 |
53
+ | GBP | QAR | reference | 4.8388 |
54
+ | HKD | QAR | reference | 0.4646 |
53
55
  | USD | QAR | reference | 3.64 |
54
56
 
55
57
  Source: [Official rates published by QCB, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/qcb/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
@@ -107,7 +109,7 @@ const pair = await getRate('USD', 'QAR', { apiKey: 'art_live_...' });
107
109
  {
108
110
  bank: 'qcb',
109
111
  name: 'Qatar Central Bank',
110
- rate_date: '2026-10-08', // Qatar Central Bank's own publication date
112
+ rate_date: '2026-10-14', // Qatar Central Bank's own publication date
111
113
  source: 'USD',
112
114
  target: 'QAR',
113
115
  rate: 3.64,
@@ -135,7 +137,7 @@ console.log(table.rate_date, table.rates.length);
135
137
  {
136
138
  bank: 'qcb',
137
139
  name: 'Qatar Central Bank',
138
- rate_date: '2026-10-08',
140
+ rate_date: '2026-10-14',
139
141
  rates: [
140
142
  { "base": "USD", "quote": "QAR", "type": "reference", "value": 3.64 },
141
143
  // โ€ฆ the rest of the published table (7 currencies vs QAR)
@@ -177,7 +179,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
177
179
  import { getHistory } from '@allratestoday/qcb-exchange-rate';
178
180
 
179
181
  const series = await getHistory(
180
- { source: 'USD', target: 'QAR', from: '2026-01-01', to: '2026-10-08' },
182
+ { source: 'USD', target: 'QAR', from: '2026-01-01', to: '2026-10-14' },
181
183
  { apiKey: 'art_live_...' }
182
184
  );
183
185
  ```
@@ -190,11 +192,11 @@ const series = await getHistory(
190
192
  source: 'USD',
191
193
  target: 'QAR',
192
194
  from: '2026-01-01',
193
- to: '2026-10-08',
195
+ to: '2026-10-14',
194
196
  count: 152,
195
197
  rates: [
196
198
  // one entry per publication date
197
- { date: '2026-10-08', rate: 3.64, rate_type: 'reference', derived: false, method: 'published' },
199
+ { date: '2026-10-14', rate: 3.64, rate_type: 'reference', derived: false, method: 'published' },
198
200
  // โ€ฆ
199
201
  ],
200
202
  disclaimer: 'โ€ฆ'
@@ -244,6 +246,7 @@ curl "https://allratestoday.com/api/v1/central-bank/qcb/latest?format=xml&api_ke
244
246
  - 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
245
247
  - 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('qcb')` 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
246
248
  - 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 qcb ...` command
249
+ - 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`
247
250
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
248
251
 
249
252
  ## โš–๏ธ Published vs derived rates
@@ -312,9 +315,9 @@ getRate('USD', 'QAR', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
312
315
 
313
316
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
314
317
 
315
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) โ€” one CSV per institution (`rates/qcb.csv`)
318
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) โ€” one CSV per institution (`rates/qcb.csv`)
316
319
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
317
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/qcb/latest.json`
320
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/qcb/latest.json`
318
321
 
319
322
  ## ๐Ÿ”— Links
320
323
 
package/package.json CHANGED
@@ -1,21 +1,30 @@
1
1
  {
2
2
  "name": "@allratestoday/qcb-exchange-rate",
3
- "version": "1.3.7",
3
+ "version": "1.3.13",
4
4
  "description": "Official Qatar Central Bank (Qatar) daily exchange rates โ€” 7 currencies vs QAR, history since 2024. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "qcb",
7
+ "qatar-central-bank",
7
8
  "qatar",
8
9
  "central",
9
10
  "bank",
10
11
  "exchange-rate",
11
12
  "exchange-rates",
13
+ "exchangerate",
14
+ "exchange rate",
15
+ "qar-exchange-rate",
12
16
  "currency",
13
17
  "forex",
14
18
  "fx",
15
19
  "qar",
20
+ "currency-api",
21
+ "currency-exchange-rates",
22
+ "forex-api",
23
+ "currency-conversion",
24
+ "currency-exchange",
25
+ "currency-rates",
16
26
  "central-bank",
17
27
  "official-rates",
18
- "qatar",
19
28
  "api",
20
29
  "typescript"
21
30
  ],