@allratestoday/cbtt-exchange-rate 1.3.9 → 1.3.14
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 +28 -30
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -42,30 +42,28 @@ 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-16** by Central Bank of Trinidad and Tobago — 18 rates. Updated 2026-10-16.
|
|
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
|
-
|
|
|
54
|
-
|
|
|
55
|
-
|
|
|
56
|
-
|
|
|
57
|
-
|
|
|
58
|
-
|
|
|
59
|
-
| GYD | TTD | buy | 0.0316 |
|
|
60
|
-
| GYD | TTD | sell | 0.0328 |
|
|
49
|
+
| BBD | TTD | buy | 3.3504 |
|
|
50
|
+
| BBD | TTD | sell | 3.7021 |
|
|
51
|
+
| CAD | TTD | buy | 4.7467 |
|
|
52
|
+
| CAD | TTD | sell | 5.3835 |
|
|
53
|
+
| EUR | TTD | buy | 8.3041 |
|
|
54
|
+
| EUR | TTD | sell | 8.9119 |
|
|
55
|
+
| GBP | TTD | buy | 8.9612 |
|
|
56
|
+
| GBP | TTD | sell | 9.616 |
|
|
57
|
+
| GYD | TTD | buy | 0.0315 |
|
|
58
|
+
| GYD | TTD | sell | 0.0326 |
|
|
61
59
|
| JMD | TTD | buy | 0.0412 |
|
|
62
|
-
| JMD | TTD | sell | 0.
|
|
60
|
+
| JMD | TTD | sell | 0.0427 |
|
|
63
61
|
| JPY | TTD | buy | 0.0425 |
|
|
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.
|
|
62
|
+
| JPY | TTD | sell | 0.0427 |
|
|
63
|
+
| USD | TTD | buy | 6.7312 |
|
|
64
|
+
| USD | TTD | sell | 6.7648 |
|
|
65
|
+
| XCD | TTD | buy | 2.4068 |
|
|
66
|
+
| XCD | TTD | sell | 2.5886 |
|
|
69
67
|
|
|
70
68
|
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
69
|
<!-- daily-table:end -->
|
|
@@ -122,10 +120,10 @@ const pair = await getRate('USD', 'TTD', { apiKey: 'art_live_...' });
|
|
|
122
120
|
{
|
|
123
121
|
bank: 'cbtt',
|
|
124
122
|
name: 'Central Bank of Trinidad and Tobago',
|
|
125
|
-
rate_date: '2026-10-
|
|
123
|
+
rate_date: '2026-10-13', // Central Bank of Trinidad and Tobago's own publication date
|
|
126
124
|
source: 'USD',
|
|
127
125
|
target: 'TTD',
|
|
128
|
-
rate: 6.
|
|
126
|
+
rate: 6.7989,
|
|
129
127
|
rate_type: 'sell',
|
|
130
128
|
derived: false,
|
|
131
129
|
method: 'published',
|
|
@@ -150,10 +148,10 @@ console.log(table.rate_date, table.rates.length);
|
|
|
150
148
|
{
|
|
151
149
|
bank: 'cbtt',
|
|
152
150
|
name: 'Central Bank of Trinidad and Tobago',
|
|
153
|
-
rate_date: '2026-10-
|
|
151
|
+
rate_date: '2026-10-13',
|
|
154
152
|
rates: [
|
|
155
|
-
{ "base": "USD", "quote": "TTD", "type": "sell", "value": 6.
|
|
156
|
-
{ "base": "USD", "quote": "TTD", "type": "buy", "value": 6.
|
|
153
|
+
{ "base": "USD", "quote": "TTD", "type": "sell", "value": 6.7989 },
|
|
154
|
+
{ "base": "USD", "quote": "TTD", "type": "buy", "value": 6.772 },
|
|
157
155
|
// … the rest of the published table (9 currencies vs TTD)
|
|
158
156
|
],
|
|
159
157
|
disclaimer: '…'
|
|
@@ -193,7 +191,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
193
191
|
import { getHistory } from '@allratestoday/cbtt-exchange-rate';
|
|
194
192
|
|
|
195
193
|
const series = await getHistory(
|
|
196
|
-
{ source: 'USD', target: 'TTD', from: '2026-01-01', to: '2026-10-
|
|
194
|
+
{ source: 'USD', target: 'TTD', from: '2026-01-01', to: '2026-10-13' },
|
|
197
195
|
{ apiKey: 'art_live_...' }
|
|
198
196
|
);
|
|
199
197
|
```
|
|
@@ -206,11 +204,11 @@ const series = await getHistory(
|
|
|
206
204
|
source: 'USD',
|
|
207
205
|
target: 'TTD',
|
|
208
206
|
from: '2026-01-01',
|
|
209
|
-
to: '2026-10-
|
|
207
|
+
to: '2026-10-13',
|
|
210
208
|
count: 152,
|
|
211
209
|
rates: [
|
|
212
210
|
// one entry per publication date
|
|
213
|
-
{ date: '2026-10-
|
|
211
|
+
{ date: '2026-10-13', rate: 6.7989, rate_type: 'sell', derived: false, method: 'published' },
|
|
214
212
|
// …
|
|
215
213
|
],
|
|
216
214
|
disclaimer: '…'
|
|
@@ -260,7 +258,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbtt/latest?format=xml&api_k
|
|
|
260
258
|
- 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
|
|
261
259
|
- 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
|
|
262
260
|
- 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
|
-
-
|
|
261
|
+
- Evaluating? 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 that covers the free-plan methods (latest table, pairs); dated tables and history need a [paid plan](https://allratestoday.com/pricing/). The MCP servers expose it as `request_trial_key`
|
|
264
262
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
265
263
|
|
|
266
264
|
## ⚖️ Published vs derived rates
|
|
@@ -329,9 +327,9 @@ getRate('USD', 'TTD', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
329
327
|
|
|
330
328
|
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
|
|
331
329
|
|
|
332
|
-
- Hugging Face: [
|
|
330
|
+
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/cbtt.csv`)
|
|
333
331
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
334
|
-
-
|
|
332
|
+
- Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/cbtt/latest.json`
|
|
335
333
|
|
|
336
334
|
## 🔗 Links
|
|
337
335
|
|
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.14",
|
|
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",
|