@allratestoday/cbtt-exchange-rate 1.3.9 → 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 +29 -29
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -42,30 +42,30 @@ 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-13** by Central Bank of Trinidad and Tobago — 20 rates. Updated 2026-10-14.
|
|
46
46
|
|
|
47
47
|
| Base | Quote | Type | Rate |
|
|
48
48
|
| --- | --- | --- | ---: |
|
|
49
|
-
| BBD | TTD | buy | 3.
|
|
50
|
-
| BBD | TTD | sell | 3.
|
|
51
|
-
| CAD | TTD | buy | 4.
|
|
52
|
-
| CAD | TTD | sell | 5.
|
|
53
|
-
| CHF | TTD | buy | 8.
|
|
54
|
-
| CHF | TTD | sell | 8.
|
|
55
|
-
| EUR | TTD | buy | 8.
|
|
56
|
-
| EUR | TTD | sell | 8.
|
|
57
|
-
| GBP | TTD | buy | 8.
|
|
58
|
-
| GBP | TTD | sell | 9.
|
|
59
|
-
| GYD | TTD | buy | 0.
|
|
49
|
+
| BBD | TTD | buy | 3.1823 |
|
|
50
|
+
| BBD | TTD | sell | 3.6806 |
|
|
51
|
+
| CAD | TTD | buy | 4.7375 |
|
|
52
|
+
| CAD | TTD | sell | 5.092 |
|
|
53
|
+
| CHF | TTD | buy | 8.1195 |
|
|
54
|
+
| CHF | TTD | sell | 8.97 |
|
|
55
|
+
| EUR | TTD | buy | 8.2016 |
|
|
56
|
+
| EUR | TTD | sell | 8.0743 |
|
|
57
|
+
| GBP | TTD | buy | 8.9519 |
|
|
58
|
+
| GBP | TTD | sell | 9.6688 |
|
|
59
|
+
| GYD | TTD | buy | 0.0317 |
|
|
60
60
|
| GYD | TTD | sell | 0.0328 |
|
|
61
|
-
| JMD | TTD | buy | 0.
|
|
61
|
+
| JMD | TTD | buy | 0.0414 |
|
|
62
62
|
| JMD | TTD | sell | 0.0428 |
|
|
63
|
-
| JPY | TTD | buy | 0.
|
|
64
|
-
| JPY | TTD | sell | 0.
|
|
65
|
-
| USD | TTD | buy | 6.
|
|
66
|
-
| USD | TTD | sell | 6.
|
|
67
|
-
| XCD | TTD | buy | 2.
|
|
68
|
-
| XCD | TTD | sell | 2.
|
|
63
|
+
| JPY | TTD | buy | 0.0428 |
|
|
64
|
+
| JPY | TTD | sell | 0.0453 |
|
|
65
|
+
| USD | TTD | buy | 6.772 |
|
|
66
|
+
| USD | TTD | sell | 6.7989 |
|
|
67
|
+
| XCD | TTD | buy | 2.4126 |
|
|
68
|
+
| XCD | TTD | sell | 2.5871 |
|
|
69
69
|
|
|
70
70
|
Source: [Official rates published by CBTT, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/cbtt/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
|
|
71
71
|
<!-- daily-table:end -->
|
|
@@ -122,10 +122,10 @@ const pair = await getRate('USD', 'TTD', { apiKey: 'art_live_...' });
|
|
|
122
122
|
{
|
|
123
123
|
bank: 'cbtt',
|
|
124
124
|
name: 'Central Bank of Trinidad and Tobago',
|
|
125
|
-
rate_date: '2026-10-
|
|
125
|
+
rate_date: '2026-10-13', // Central Bank of Trinidad and Tobago's own publication date
|
|
126
126
|
source: 'USD',
|
|
127
127
|
target: 'TTD',
|
|
128
|
-
rate: 6.
|
|
128
|
+
rate: 6.7989,
|
|
129
129
|
rate_type: 'sell',
|
|
130
130
|
derived: false,
|
|
131
131
|
method: 'published',
|
|
@@ -150,10 +150,10 @@ console.log(table.rate_date, table.rates.length);
|
|
|
150
150
|
{
|
|
151
151
|
bank: 'cbtt',
|
|
152
152
|
name: 'Central Bank of Trinidad and Tobago',
|
|
153
|
-
rate_date: '2026-10-
|
|
153
|
+
rate_date: '2026-10-13',
|
|
154
154
|
rates: [
|
|
155
|
-
{ "base": "USD", "quote": "TTD", "type": "sell", "value": 6.
|
|
156
|
-
{ "base": "USD", "quote": "TTD", "type": "buy", "value": 6.
|
|
155
|
+
{ "base": "USD", "quote": "TTD", "type": "sell", "value": 6.7989 },
|
|
156
|
+
{ "base": "USD", "quote": "TTD", "type": "buy", "value": 6.772 },
|
|
157
157
|
// … the rest of the published table (9 currencies vs TTD)
|
|
158
158
|
],
|
|
159
159
|
disclaimer: '…'
|
|
@@ -193,7 +193,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
193
193
|
import { getHistory } from '@allratestoday/cbtt-exchange-rate';
|
|
194
194
|
|
|
195
195
|
const series = await getHistory(
|
|
196
|
-
{ source: 'USD', target: 'TTD', from: '2026-01-01', to: '2026-10-
|
|
196
|
+
{ source: 'USD', target: 'TTD', from: '2026-01-01', to: '2026-10-13' },
|
|
197
197
|
{ apiKey: 'art_live_...' }
|
|
198
198
|
);
|
|
199
199
|
```
|
|
@@ -206,11 +206,11 @@ const series = await getHistory(
|
|
|
206
206
|
source: 'USD',
|
|
207
207
|
target: 'TTD',
|
|
208
208
|
from: '2026-01-01',
|
|
209
|
-
to: '2026-10-
|
|
209
|
+
to: '2026-10-13',
|
|
210
210
|
count: 152,
|
|
211
211
|
rates: [
|
|
212
212
|
// one entry per publication date
|
|
213
|
-
{ date: '2026-10-
|
|
213
|
+
{ date: '2026-10-13', rate: 6.7989, rate_type: 'sell', derived: false, method: 'published' },
|
|
214
214
|
// …
|
|
215
215
|
],
|
|
216
216
|
disclaimer: '…'
|
|
@@ -329,9 +329,9 @@ getRate('USD', 'TTD', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
329
329
|
|
|
330
330
|
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
|
|
331
331
|
|
|
332
|
-
- Hugging Face: [
|
|
332
|
+
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/cbtt.csv`)
|
|
333
333
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
334
|
-
-
|
|
334
|
+
- Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/cbtt/latest.json`
|
|
335
335
|
|
|
336
336
|
## 🔗 Links
|
|
337
337
|
|
package/package.json
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/cbtt-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.13",
|
|
4
4
|
"description": "Official Central Bank of Trinidad and Tobago (Trinidad and Tobago) daily exchange rates — 9 currencies vs TTD, history since 1991. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cbtt",
|
|
7
|
+
"central-bank-of-trinidad-and-tobago",
|
|
7
8
|
"central",
|
|
8
9
|
"bank",
|
|
9
|
-
"of",
|
|
10
10
|
"trinidad",
|
|
11
|
-
"and",
|
|
12
11
|
"tobago",
|
|
13
12
|
"exchange-rate",
|
|
14
13
|
"exchange-rates",
|
|
14
|
+
"exchangerate",
|
|
15
|
+
"exchange rate",
|
|
16
|
+
"ttd-exchange-rate",
|
|
15
17
|
"currency",
|
|
16
18
|
"forex",
|
|
17
19
|
"fx",
|
|
18
20
|
"ttd",
|
|
21
|
+
"currency-api",
|
|
22
|
+
"currency-exchange-rates",
|
|
23
|
+
"forex-api",
|
|
24
|
+
"currency-conversion",
|
|
25
|
+
"currency-exchange",
|
|
26
|
+
"currency-rates",
|
|
19
27
|
"central-bank",
|
|
20
28
|
"official-rates",
|
|
21
29
|
"trinidad-and-tobago",
|