@allratestoday/sdk 1.4.9 → 1.4.10
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 +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
- 📡 **Real-Time Data** — Rates updated every 60 seconds
|
|
16
16
|
- 💹 **Mid-Market Rates** — No retail spread or markup baked in
|
|
17
17
|
- 🌍 **160+ Currencies** — Major, minor, and exotic currency pairs
|
|
18
|
-
- 🏛️ **Official Rates Too** — latest tables from
|
|
18
|
+
- 🏛️ **Official Rates Too** — latest tables from [122 central banks and 4 tax authorities](https://allratestoday.com/central-bank-rates-api/institutions/) via `officialRates()`, no key needed
|
|
19
19
|
- 🔷 **Type-Safe** — Full TypeScript support with intelligent autocomplete
|
|
20
20
|
- 🌐 **Universal** — Works seamlessly in Node.js 18+ and modern browsers
|
|
21
21
|
- 🧑💻 **Developer-Friendly** — Simple API, extensive documentation, and great DX
|
|
@@ -264,8 +264,8 @@ console.log(`$500 = €${rate.to.amount}`);
|
|
|
264
264
|
|
|
265
265
|
The methods above return live mid-market rates. For the **official rate an
|
|
266
266
|
institution published** — what invoices, VAT returns, customs declarations and
|
|
267
|
-
audits require — use `officialRates()`. It covers
|
|
268
|
-
the US Treasury and
|
|
267
|
+
audits require — use `officialRates()`. It covers [122 central banks](https://allratestoday.com/central-bank-rates-api/institutions/) plus HMRC,
|
|
268
|
+
the US Treasury, Swiss BAZG and India's CBIC, and the latest table needs **no API key**:
|
|
269
269
|
|
|
270
270
|
```typescript
|
|
271
271
|
const client = new AllRatesToday(); // no key
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/sdk",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.10",
|
|
4
4
|
"description": "Exchange Rate API — Real-time mid-market currency exchange rates for Node.js and browsers. 160+ currencies, zero dependencies, free tier.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|