@allratestoday/cbtt-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 +33 -29
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -37,32 +37,35 @@ 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/cbtt/)
|
|
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 Central Bank of Trinidad and Tobago โ 20 rates. Updated 2026-10-14.
|
|
44
46
|
|
|
45
47
|
| Base | Quote | Type | Rate |
|
|
46
48
|
| --- | --- | --- | ---: |
|
|
47
|
-
| BBD | TTD | buy |
|
|
48
|
-
| BBD | TTD | sell | 3.
|
|
49
|
-
| CAD | TTD | buy | 4.
|
|
50
|
-
| CAD | TTD | sell | 5.
|
|
51
|
-
| CHF | TTD | buy | 8.
|
|
52
|
-
|
|
|
53
|
-
| EUR | TTD |
|
|
54
|
-
|
|
|
55
|
-
| GBP | TTD |
|
|
56
|
-
|
|
|
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 |
|
|
57
60
|
| GYD | TTD | sell | 0.0328 |
|
|
58
|
-
| JMD | TTD | buy | 0.
|
|
61
|
+
| JMD | TTD | buy | 0.0414 |
|
|
59
62
|
| JMD | TTD | sell | 0.0428 |
|
|
60
|
-
| JPY | TTD | buy | 0.
|
|
61
|
-
| JPY | TTD | sell | 0.
|
|
62
|
-
| USD | TTD | buy | 6.
|
|
63
|
-
| USD | TTD | sell | 6.
|
|
64
|
-
| XCD | TTD | buy | 2.
|
|
65
|
-
| 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 |
|
|
66
69
|
|
|
67
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.
|
|
68
71
|
<!-- daily-table:end -->
|
|
@@ -119,10 +122,10 @@ const pair = await getRate('USD', 'TTD', { apiKey: 'art_live_...' });
|
|
|
119
122
|
{
|
|
120
123
|
bank: 'cbtt',
|
|
121
124
|
name: 'Central Bank of Trinidad and Tobago',
|
|
122
|
-
rate_date: '2026-10-
|
|
125
|
+
rate_date: '2026-10-13', // Central Bank of Trinidad and Tobago's own publication date
|
|
123
126
|
source: 'USD',
|
|
124
127
|
target: 'TTD',
|
|
125
|
-
rate: 6.
|
|
128
|
+
rate: 6.7989,
|
|
126
129
|
rate_type: 'sell',
|
|
127
130
|
derived: false,
|
|
128
131
|
method: 'published',
|
|
@@ -147,10 +150,10 @@ console.log(table.rate_date, table.rates.length);
|
|
|
147
150
|
{
|
|
148
151
|
bank: 'cbtt',
|
|
149
152
|
name: 'Central Bank of Trinidad and Tobago',
|
|
150
|
-
rate_date: '2026-10-
|
|
153
|
+
rate_date: '2026-10-13',
|
|
151
154
|
rates: [
|
|
152
|
-
{ "base": "USD", "quote": "TTD", "type": "sell", "value": 6.
|
|
153
|
-
{ "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 },
|
|
154
157
|
// โฆ the rest of the published table (9 currencies vs TTD)
|
|
155
158
|
],
|
|
156
159
|
disclaimer: 'โฆ'
|
|
@@ -190,7 +193,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
190
193
|
import { getHistory } from '@allratestoday/cbtt-exchange-rate';
|
|
191
194
|
|
|
192
195
|
const series = await getHistory(
|
|
193
|
-
{ source: 'USD', target: 'TTD', from: '2026-01-01', to: '2026-10-
|
|
196
|
+
{ source: 'USD', target: 'TTD', from: '2026-01-01', to: '2026-10-13' },
|
|
194
197
|
{ apiKey: 'art_live_...' }
|
|
195
198
|
);
|
|
196
199
|
```
|
|
@@ -203,11 +206,11 @@ const series = await getHistory(
|
|
|
203
206
|
source: 'USD',
|
|
204
207
|
target: 'TTD',
|
|
205
208
|
from: '2026-01-01',
|
|
206
|
-
to: '2026-10-
|
|
209
|
+
to: '2026-10-13',
|
|
207
210
|
count: 152,
|
|
208
211
|
rates: [
|
|
209
212
|
// one entry per publication date
|
|
210
|
-
{ date: '2026-10-
|
|
213
|
+
{ date: '2026-10-13', rate: 6.7989, rate_type: 'sell', derived: false, method: 'published' },
|
|
211
214
|
// โฆ
|
|
212
215
|
],
|
|
213
216
|
disclaimer: 'โฆ'
|
|
@@ -257,6 +260,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbtt/latest?format=xml&api_k
|
|
|
257
260
|
- 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
|
|
258
261
|
- 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('cbtt')` 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
|
|
259
262
|
- 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 cbtt ...` command
|
|
263
|
+
- 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`
|
|
260
264
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
261
265
|
|
|
262
266
|
## โ๏ธ Published vs derived rates
|
|
@@ -325,9 +329,9 @@ getRate('USD', 'TTD', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
325
329
|
|
|
326
330
|
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
|
|
327
331
|
|
|
328
|
-
- 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`)
|
|
329
333
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
330
|
-
-
|
|
334
|
+
- Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/cbtt/latest.json`
|
|
331
335
|
|
|
332
336
|
## ๐ Links
|
|
333
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",
|