@allratestoday/sbp-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.
- package/README.md +48 -45
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -37,48 +37,50 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
37
37
|
|
|
38
38
|
## ๐ Latest published table
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
[](https://allratestoday.com/central-bank-rates-api/sbp/)
|
|
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-
|
|
45
|
+
Published **2026-10-13** by State Bank of Pakistan โ 35 rates. Updated 2026-10-14.
|
|
44
46
|
|
|
45
47
|
| Base | Quote | Type | Rate |
|
|
46
48
|
| --- | --- | --- | ---: |
|
|
47
|
-
| AED | PKR | reference | 75.
|
|
48
|
-
| ARS | PKR | reference | 0.
|
|
49
|
-
| AUD | PKR | reference |
|
|
50
|
-
| BDT | PKR | reference | 2.
|
|
51
|
-
| BHD | PKR | reference |
|
|
52
|
-
| BRL | PKR | reference | 55.
|
|
53
|
-
| CAD | PKR | reference | 194.
|
|
54
|
-
| CHF | PKR | reference | 332.
|
|
55
|
-
| CNH | PKR | reference | 41.
|
|
56
|
-
| CNY | PKR | reference | 41.
|
|
57
|
-
| DKK | PKR | reference | 41.
|
|
58
|
-
| EUR | PKR | reference | 309.
|
|
59
|
-
| GBP | PKR | reference |
|
|
60
|
-
| HKD | PKR | reference | 35.
|
|
49
|
+
| AED | PKR | reference | 75.4089 |
|
|
50
|
+
| ARS | PKR | reference | 0.1826 |
|
|
51
|
+
| AUD | PKR | reference | 193.0562 |
|
|
52
|
+
| BDT | PKR | reference | 2.249 |
|
|
53
|
+
| BHD | PKR | reference | 733.4794 |
|
|
54
|
+
| BRL | PKR | reference | 55.5356 |
|
|
55
|
+
| CAD | PKR | reference | 194.2297 |
|
|
56
|
+
| CHF | PKR | reference | 332.587 |
|
|
57
|
+
| CNH | PKR | reference | 41.3753 |
|
|
58
|
+
| CNY | PKR | reference | 41.3756 |
|
|
59
|
+
| DKK | PKR | reference | 41.462 |
|
|
60
|
+
| EUR | PKR | reference | 309.9479 |
|
|
61
|
+
| GBP | PKR | reference | 366.6974 |
|
|
62
|
+
| HKD | PKR | reference | 35.2912 |
|
|
61
63
|
| IDR | PKR | reference | 0.0155 |
|
|
62
|
-
| INR | PKR | reference | 2.
|
|
63
|
-
| JPY | PKR | reference | 1.
|
|
64
|
-
| KRW | PKR | reference | 0.
|
|
65
|
-
| KWD | PKR | reference | 898.
|
|
66
|
-
| KZT | PKR | reference | 0.
|
|
67
|
-
| LKR | PKR | reference | 0.
|
|
68
|
-
| MXN | PKR | reference | 15.
|
|
69
|
-
| MYR | PKR | reference | 67.
|
|
70
|
-
| NOK | PKR | reference |
|
|
71
|
-
| NZD | PKR | reference |
|
|
72
|
-
| OMR | PKR | reference | 719.
|
|
73
|
-
| QAR | PKR | reference | 75.
|
|
74
|
-
| RUB | PKR | reference | 3.
|
|
75
|
-
| SAR | PKR | reference | 73.
|
|
76
|
-
| SEK | PKR | reference | 27.
|
|
77
|
-
| SGD | PKR | reference | 216.
|
|
78
|
-
| THB | PKR | reference | 8.
|
|
79
|
-
| TRY | PKR | reference | 5.
|
|
80
|
-
| USD | PKR | reference |
|
|
81
|
-
| ZAR | PKR | reference | 16.
|
|
64
|
+
| INR | PKR | reference | 2.907 |
|
|
65
|
+
| JPY | PKR | reference | 1.7523 |
|
|
66
|
+
| KRW | PKR | reference | 0.2065 |
|
|
67
|
+
| KWD | PKR | reference | 898.3516 |
|
|
68
|
+
| KZT | PKR | reference | 0.6164 |
|
|
69
|
+
| LKR | PKR | reference | 0.8374 |
|
|
70
|
+
| MXN | PKR | reference | 15.2026 |
|
|
71
|
+
| MYR | PKR | reference | 67.7914 |
|
|
72
|
+
| NOK | PKR | reference | 29.0029 |
|
|
73
|
+
| NZD | PKR | reference | 155.2371 |
|
|
74
|
+
| OMR | PKR | reference | 719.3719 |
|
|
75
|
+
| QAR | PKR | reference | 75.9799 |
|
|
76
|
+
| RUB | PKR | reference | 3.3053 |
|
|
77
|
+
| SAR | PKR | reference | 73.7444 |
|
|
78
|
+
| SEK | PKR | reference | 27.7197 |
|
|
79
|
+
| SGD | PKR | reference | 216.4187 |
|
|
80
|
+
| THB | PKR | reference | 8.2589 |
|
|
81
|
+
| TRY | PKR | reference | 5.6102 |
|
|
82
|
+
| USD | PKR | reference | 276.9618 |
|
|
83
|
+
| ZAR | PKR | reference | 16.8332 |
|
|
82
84
|
|
|
83
85
|
Source: [Official rates published by SBP, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/sbp/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
|
|
84
86
|
<!-- daily-table:end -->
|
|
@@ -135,10 +137,10 @@ const pair = await getRate('USD', 'PKR', { apiKey: 'art_live_...' });
|
|
|
135
137
|
{
|
|
136
138
|
bank: 'sbp',
|
|
137
139
|
name: 'State Bank of Pakistan',
|
|
138
|
-
rate_date: '2026-10-
|
|
140
|
+
rate_date: '2026-10-13', // State Bank of Pakistan's own publication date
|
|
139
141
|
source: 'USD',
|
|
140
142
|
target: 'PKR',
|
|
141
|
-
rate:
|
|
143
|
+
rate: 276.9618,
|
|
142
144
|
rate_type: 'reference',
|
|
143
145
|
derived: false,
|
|
144
146
|
method: 'published',
|
|
@@ -163,9 +165,9 @@ console.log(table.rate_date, table.rates.length);
|
|
|
163
165
|
{
|
|
164
166
|
bank: 'sbp',
|
|
165
167
|
name: 'State Bank of Pakistan',
|
|
166
|
-
rate_date: '2026-10-
|
|
168
|
+
rate_date: '2026-10-13',
|
|
167
169
|
rates: [
|
|
168
|
-
{ "base": "USD", "quote": "PKR", "type": "reference", "value":
|
|
170
|
+
{ "base": "USD", "quote": "PKR", "type": "reference", "value": 276.9618 },
|
|
169
171
|
// โฆ the rest of the published table (35 currencies vs PKR)
|
|
170
172
|
],
|
|
171
173
|
disclaimer: 'โฆ'
|
|
@@ -205,7 +207,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
205
207
|
import { getHistory } from '@allratestoday/sbp-exchange-rate';
|
|
206
208
|
|
|
207
209
|
const series = await getHistory(
|
|
208
|
-
{ source: 'USD', target: 'PKR', from: '2026-01-01', to: '2026-10-
|
|
210
|
+
{ source: 'USD', target: 'PKR', from: '2026-01-01', to: '2026-10-13' },
|
|
209
211
|
{ apiKey: 'art_live_...' }
|
|
210
212
|
);
|
|
211
213
|
```
|
|
@@ -218,11 +220,11 @@ const series = await getHistory(
|
|
|
218
220
|
source: 'USD',
|
|
219
221
|
target: 'PKR',
|
|
220
222
|
from: '2026-01-01',
|
|
221
|
-
to: '2026-10-
|
|
223
|
+
to: '2026-10-13',
|
|
222
224
|
count: 152,
|
|
223
225
|
rates: [
|
|
224
226
|
// one entry per publication date
|
|
225
|
-
{ date: '2026-10-
|
|
227
|
+
{ date: '2026-10-13', rate: 276.9618, rate_type: 'reference', derived: false, method: 'published' },
|
|
226
228
|
// โฆ
|
|
227
229
|
],
|
|
228
230
|
disclaimer: 'โฆ'
|
|
@@ -272,6 +274,7 @@ curl "https://allratestoday.com/api/v1/central-bank/sbp/latest?format=xml&api_ke
|
|
|
272
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
|
|
273
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('sbp')` 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
|
|
274
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 sbp ...` 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`
|
|
275
278
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
276
279
|
|
|
277
280
|
## โ๏ธ Published vs derived rates
|
|
@@ -340,9 +343,9 @@ getRate('USD', 'PKR', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
340
343
|
|
|
341
344
|
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
|
|
342
345
|
|
|
343
|
-
- Hugging Face: [
|
|
346
|
+
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) โ one CSV per institution (`rates/sbp.csv`)
|
|
344
347
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
345
|
-
-
|
|
348
|
+
- Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/sbp/latest.json`
|
|
346
349
|
|
|
347
350
|
## ๐ Links
|
|
348
351
|
|
package/package.json
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/sbp-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.13",
|
|
4
4
|
"description": "Official State Bank of Pakistan (Pakistan) daily exchange rates โ 35 currencies vs PKR, history since 2017. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sbp",
|
|
7
|
+
"state-bank-of-pakistan",
|
|
7
8
|
"state",
|
|
8
9
|
"bank",
|
|
9
|
-
"of",
|
|
10
10
|
"pakistan",
|
|
11
11
|
"exchange-rate",
|
|
12
12
|
"exchange-rates",
|
|
13
|
+
"exchangerate",
|
|
14
|
+
"exchange rate",
|
|
15
|
+
"pkr-exchange-rate",
|
|
13
16
|
"currency",
|
|
14
17
|
"forex",
|
|
15
18
|
"fx",
|
|
16
19
|
"pkr",
|
|
20
|
+
"currency-api",
|
|
21
|
+
"currency-exchange-rates",
|
|
22
|
+
"forex-api",
|
|
23
|
+
"currency-conversion",
|
|
24
|
+
"currency-exchange",
|
|
25
|
+
"currency-rates",
|
|
17
26
|
"central-bank",
|
|
18
27
|
"official-rates",
|
|
19
|
-
"pakistan",
|
|
20
28
|
"api",
|
|
21
29
|
"typescript"
|
|
22
30
|
],
|