@allratestoday/sbp-exchange-rate 1.3.14 โ†’ 1.3.16

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 +9 -48
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -20,6 +20,10 @@
20
20
 
21
21
  > **Official rate, not mid-market:** every value here is a number State Bank of Pakistan itself published, fixed once printed and carrying the central bank's own `rate_date` โ€” what filings and audits require. Need the live mid-market rate for pricing or display instead? Use the [mid-market API](https://allratestoday.com/docs/) or [`@allratestoday/sdk`](https://www.npmjs.com/package/@allratestoday/sdk). The two can diverge by several percent.
22
22
 
23
+ ## ๐Ÿ”‘ Get your API key
24
+
25
+ Get a free API key at [allratestoday.com/register](https://allratestoday.com/register) โ€” no credit card required. Latest rates are on every plan, including free.
26
+
23
27
  ## โšก Try it without a key
24
28
 
25
29
  The latest State Bank of Pakistan table is also served keyless, CORS-open and edge-cached, for evaluation, embeds and AI agents:
@@ -33,62 +37,18 @@ const r = await fetch('https://allratestoday.com/api/open/central-bank/sbp').the
33
37
  console.log(r.rate_date, r.rates.length); // the central bank's latest published table, no key
34
38
  ```
35
39
 
36
- The open endpoint serves the *latest* table only and asks for a visible attribution link. The client below uses the keyed API, which adds point-in-time tables, history, and CSV/XML/Excel output.
40
+ The open endpoint serves the *latest* table only (JSON by default; add `?format=csv`, `xml` or `xlsx` for a file) and asks for a visible attribution link. The client below uses the keyed API, which adds point-in-time tables and history.
37
41
 
38
42
  ## ๐Ÿ“ˆ Latest published table
39
43
 
40
44
  [![Latest State Bank of Pakistan table](https://allratestoday.com/api/open/central-bank/sbp/table.svg)](https://allratestoday.com/central-bank-rates-api/sbp/)
41
45
 
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.
46
+ 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 same table as text is folded below 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
47
 
44
48
  <!-- daily-table:start -->
45
- Published **2026-10-16** by State Bank of Pakistan โ€” 35 rates. Updated 2026-10-16.
46
-
47
- | Base | Quote | Type | Rate |
48
- | --- | --- | --- | ---: |
49
- | AED | PKR | reference | 75.3993 |
50
- | ARS | PKR | reference | 0.183 |
51
- | AUD | PKR | reference | 192.7027 |
52
- | BDT | PKR | reference | 2.2514 |
53
- | BHD | PKR | reference | 733.055 |
54
- | BRL | PKR | reference | 54.3129 |
55
- | CAD | PKR | reference | 195.49 |
56
- | CHF | PKR | reference | 335.7724 |
57
- | CNH | PKR | reference | 41.4123 |
58
- | CNY | PKR | reference | 41.4114 |
59
- | DKK | PKR | reference | 41.6487 |
60
- | EUR | PKR | reference | 311.3316 |
61
- | GBP | PKR | reference | 368.8461 |
62
- | HKD | PKR | reference | 35.2855 |
63
- | IDR | PKR | reference | 0.0154 |
64
- | INR | PKR | reference | 2.9162 |
65
- | JPY | PKR | reference | 1.7522 |
66
- | KRW | PKR | reference | 0.2079 |
67
- | KWD | PKR | reference | 898.6257 |
68
- | KZT | PKR | reference | 0.6117 |
69
- | LKR | PKR | reference | 0.8364 |
70
- | MXN | PKR | reference | 15.054 |
71
- | MYR | PKR | reference | 67.8372 |
72
- | NOK | PKR | reference | 29.301 |
73
- | NZD | PKR | reference | 156.9811 |
74
- | OMR | PKR | reference | 719.2413 |
75
- | QAR | PKR | reference | 75.9661 |
76
- | RUB | PKR | reference | 3.3075 |
77
- | SAR | PKR | reference | 73.7899 |
78
- | SEK | PKR | reference | 27.971 |
79
- | SGD | PKR | reference | 216.3625 |
80
- | THB | PKR | reference | 8.287 |
81
- | TRY | PKR | reference | 5.5914 |
82
- | USD | PKR | reference | 276.9115 |
83
- | ZAR | PKR | reference | 16.8541 |
84
-
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.
49
+ _The table is filled in by the daily workflow._
86
50
  <!-- daily-table:end -->
87
51
 
88
- ## ๐Ÿ”‘ Get your API key
89
-
90
- Get a free API key at [allratestoday.com/register](https://allratestoday.com/register) โ€” no credit card required. Latest rates are on every plan, including free.
91
-
92
52
  ## ๐Ÿ“ฆ Installation
93
53
 
94
54
  ```bash
@@ -353,7 +313,8 @@ Need the whole archive rather than an API call? The same published tables are mi
353
313
  - [All central bank sources](https://allratestoday.com/central-bank-rates-api/)
354
314
  - [Package docs on the site](https://allratestoday.com/docs/sdk/sbp-exchange-rate/) ยท [ERP integration guides](https://allratestoday.com/docs/integrations/)
355
315
  - [API documentation](https://allratestoday.com/docs/#central-bank) ยท [Interactive reference](https://allratestoday.com/api-reference/) ยท [Methodology](https://allratestoday.com/official-rates-methodology/)
356
- - [Register (free)](https://allratestoday.com/register) ยท [Pricing](https://allratestoday.com/pricing/)
316
+ - [Register (Free)](https://allratestoday.com/register) ยท [Dashboard](https://allratestoday.com/profile) ยท [Pricing](https://allratestoday.com/pricing/)
317
+ - [Status](https://allratestoday.com/status)
357
318
  - [GitHub](https://github.com/AllRates-Today/sbp-exchange-rate)
358
319
 
359
320
  ## ๐Ÿ“œ License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/sbp-exchange-rate",
3
- "version": "1.3.14",
3
+ "version": "1.3.16",
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",
@@ -12,6 +12,7 @@
12
12
  "exchange-rates",
13
13
  "exchangerate",
14
14
  "exchange rate",
15
+ "exchange rates",
15
16
  "pkr-exchange-rate",
16
17
  "currency",
17
18
  "forex",