@allratestoday/qcb-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.
- package/README.md +14 -14
- package/package.json +11 -2
package/README.md
CHANGED
|
@@ -42,15 +42,15 @@ 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-
|
|
45
|
+
Published **2026-10-16** by Qatar Central Bank — 7 rates. Updated 2026-10-16.
|
|
46
46
|
|
|
47
47
|
| Base | Quote | Type | Rate |
|
|
48
48
|
| --- | --- | --- | ---: |
|
|
49
|
-
| AUD | QAR | reference | 2.
|
|
50
|
-
| CAD | QAR | reference | 2.
|
|
51
|
-
| CHF | QAR | reference | 4.
|
|
52
|
-
| EUR | QAR | reference | 4.
|
|
53
|
-
| GBP | QAR | reference | 4.
|
|
49
|
+
| AUD | QAR | reference | 2.5326 |
|
|
50
|
+
| CAD | QAR | reference | 2.5719 |
|
|
51
|
+
| CHF | QAR | reference | 4.4098 |
|
|
52
|
+
| EUR | QAR | reference | 4.0941 |
|
|
53
|
+
| GBP | QAR | reference | 4.8502 |
|
|
54
54
|
| HKD | QAR | reference | 0.4646 |
|
|
55
55
|
| USD | QAR | reference | 3.64 |
|
|
56
56
|
|
|
@@ -109,7 +109,7 @@ const pair = await getRate('USD', 'QAR', { apiKey: 'art_live_...' });
|
|
|
109
109
|
{
|
|
110
110
|
bank: 'qcb',
|
|
111
111
|
name: 'Qatar Central Bank',
|
|
112
|
-
rate_date: '2026-10-
|
|
112
|
+
rate_date: '2026-10-14', // Qatar Central Bank's own publication date
|
|
113
113
|
source: 'USD',
|
|
114
114
|
target: 'QAR',
|
|
115
115
|
rate: 3.64,
|
|
@@ -137,7 +137,7 @@ console.log(table.rate_date, table.rates.length);
|
|
|
137
137
|
{
|
|
138
138
|
bank: 'qcb',
|
|
139
139
|
name: 'Qatar Central Bank',
|
|
140
|
-
rate_date: '2026-10-
|
|
140
|
+
rate_date: '2026-10-14',
|
|
141
141
|
rates: [
|
|
142
142
|
{ "base": "USD", "quote": "QAR", "type": "reference", "value": 3.64 },
|
|
143
143
|
// … the rest of the published table (7 currencies vs QAR)
|
|
@@ -179,7 +179,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
179
179
|
import { getHistory } from '@allratestoday/qcb-exchange-rate';
|
|
180
180
|
|
|
181
181
|
const series = await getHistory(
|
|
182
|
-
{ source: 'USD', target: 'QAR', from: '2026-01-01', to: '2026-10-
|
|
182
|
+
{ source: 'USD', target: 'QAR', from: '2026-01-01', to: '2026-10-14' },
|
|
183
183
|
{ apiKey: 'art_live_...' }
|
|
184
184
|
);
|
|
185
185
|
```
|
|
@@ -192,11 +192,11 @@ const series = await getHistory(
|
|
|
192
192
|
source: 'USD',
|
|
193
193
|
target: 'QAR',
|
|
194
194
|
from: '2026-01-01',
|
|
195
|
-
to: '2026-10-
|
|
195
|
+
to: '2026-10-14',
|
|
196
196
|
count: 152,
|
|
197
197
|
rates: [
|
|
198
198
|
// one entry per publication date
|
|
199
|
-
{ date: '2026-10-
|
|
199
|
+
{ date: '2026-10-14', rate: 3.64, rate_type: 'reference', derived: false, method: 'published' },
|
|
200
200
|
// …
|
|
201
201
|
],
|
|
202
202
|
disclaimer: '…'
|
|
@@ -246,7 +246,7 @@ curl "https://allratestoday.com/api/v1/central-bank/qcb/latest?format=xml&api_ke
|
|
|
246
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
|
|
247
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
|
|
248
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
|
-
-
|
|
249
|
+
- 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`
|
|
250
250
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
251
251
|
|
|
252
252
|
## ⚖️ Published vs derived rates
|
|
@@ -315,9 +315,9 @@ getRate('USD', 'QAR', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
315
315
|
|
|
316
316
|
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
|
|
317
317
|
|
|
318
|
-
- Hugging Face: [
|
|
318
|
+
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/qcb.csv`)
|
|
319
319
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
320
|
-
-
|
|
320
|
+
- Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/qcb/latest.json`
|
|
321
321
|
|
|
322
322
|
## 🔗 Links
|
|
323
323
|
|
package/package.json
CHANGED
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/qcb-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
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
|
],
|