@allratestoday/sdk 1.4.9 → 1.4.11
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 +4 -3
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/package.json +4 -4
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
|
|
@@ -547,6 +547,7 @@ The same rates are available to coding agents and LLM tools without a second int
|
|
|
547
547
|
- [Register (Free)](https://allratestoday.com/register)
|
|
548
548
|
- [Dashboard](https://allratestoday.com/profile)
|
|
549
549
|
- [Status](https://allratestoday.com/status)
|
|
550
|
+
- [Postman collection](https://allratestoday.com/postman/)
|
|
550
551
|
- [GitHub](https://github.com/AllRates-Today/exchange-rates-api)
|
|
551
552
|
|
|
552
553
|
## 📜 License
|
package/dist/index.d.mts
CHANGED
|
@@ -310,4 +310,5 @@ declare class AllRatesToday {
|
|
|
310
310
|
convert(from: string, to: string, amount: number, options?: ConvertOptions): Promise<ConvertResponse>;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
export { AllRatesToday, AllRatesTodayError,
|
|
313
|
+
export { AllRatesToday, AllRatesTodayError, AllRatesToday as default };
|
|
314
|
+
export type { AllRatesTodayOptions, AuthRateResponse, ConvertOptions, ConvertResponse, ForDateOptions, ForDateResponse, HistoricalRateResponse, LatestOptions, LatestResponse, OfficialRateAttribution, OfficialRateEntry, OfficialRateOptions, OfficialRatesResponse, OfficialSource, OfficialSourcesResponse, RateResponse, RequestOptions, SymbolsResponse, TimeSeriesOptions, TimeSeriesResponse };
|
package/dist/index.d.ts
CHANGED
|
@@ -310,4 +310,5 @@ declare class AllRatesToday {
|
|
|
310
310
|
convert(from: string, to: string, amount: number, options?: ConvertOptions): Promise<ConvertResponse>;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
export { AllRatesToday, AllRatesTodayError,
|
|
313
|
+
export { AllRatesToday, AllRatesTodayError, AllRatesToday as default };
|
|
314
|
+
export type { AllRatesTodayOptions, AuthRateResponse, ConvertOptions, ConvertResponse, ForDateOptions, ForDateResponse, HistoricalRateResponse, LatestOptions, LatestResponse, OfficialRateAttribution, OfficialRateEntry, OfficialRateOptions, OfficialRatesResponse, OfficialSource, OfficialSourcesResponse, RateResponse, RequestOptions, SymbolsResponse, TimeSeriesOptions, TimeSeriesResponse };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/sdk",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.11",
|
|
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",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"directory": "sdks/javascript"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@vitest/coverage-v8": "^
|
|
54
|
-
"tsup": "^
|
|
53
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
54
|
+
"tsup": "^9.0.0",
|
|
55
55
|
"typescript": "^5.0.0",
|
|
56
|
-
"vitest": "^
|
|
56
|
+
"vitest": "^5.0.5"
|
|
57
57
|
},
|
|
58
58
|
"bugs": "https://github.com/AllRates-Today/exchange-rates-api/issues",
|
|
59
59
|
"engines": {
|