@allratestoday/tcmb-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.
Files changed (2) hide show
  1. package/README.md +58 -55
  2. package/package.json +12 -4
package/README.md CHANGED
@@ -37,56 +37,58 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
37
37
 
38
38
  ## 📈 Latest published table
39
39
 
40
- Today's full Central Bank of Türkiye table, straight from the central bank's latest publication. On GitHub it is refreshed by [a daily Action](.github/workflows/daily-table.yml) that reads the keyless endpoint above and commits only when the central bank publishes a new table; the copy on npm is as of the package's publish date.
40
+ [![Latest Central Bank of Türkiye table](https://allratestoday.com/api/open/central-bank/tcmb/table.svg)](https://allratestoday.com/central-bank-rates-api/tcmb/)
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-08** by Central Bank of Türkiye — 43 rates. Updated 2026-10-08.
45
+ Published **2026-10-14** by Central Bank of Türkiye — 43 rates. Updated 2026-10-14.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
47
- | AED | TRY | buy | 13.3012 |
48
- | AED | TRY | sell | 13.4752 |
49
- | AUD | TRY | buy | 34.0558 |
50
- | AUD | TRY | sell | 34.2779 |
51
- | AZN | TRY | buy | 28.7361 |
52
- | AZN | TRY | sell | 29.1121 |
53
- | CAD | TRY | buy | 34.4032 |
54
- | CAD | TRY | sell | 34.5583 |
55
- | CHF | TRY | buy | 58.8005 |
56
- | CHF | TRY | sell | 59.178 |
57
- | CNY | TRY | buy | 7.2889 |
58
- | CNY | TRY | sell | 7.3843 |
59
- | DKK | TRY | buy | 7.3415 |
60
- | DKK | TRY | sell | 7.3775 |
61
- | EUR | TRY | buy | 54.9548 |
62
- | EUR | TRY | sell | 55.0538 |
63
- | GBP | TRY | buy | 64.7214 |
64
- | GBP | TRY | sell | 65.0588 |
65
- | JPY | TRY | buy | 0.309711 |
66
- | JPY | TRY | sell | 0.311762 |
67
- | KRW | TRY | buy | 0.03637 |
68
- | KRW | TRY | sell | 0.03685 |
69
- | KWD | TRY | buy | 158.5311 |
70
- | KWD | TRY | sell | 160.6055 |
71
- | KZT | TRY | buy | 0.10878 |
72
- | KZT | TRY | sell | 0.1102 |
73
- | NOK | TRY | buy | 5.1183 |
74
- | NOK | TRY | sell | 5.1527 |
75
- | PKR | TRY | buy | 0.17641 |
76
- | PKR | TRY | sell | 0.17871 |
77
- | QAR | TRY | buy | 13.4016 |
78
- | QAR | TRY | sell | 13.5769 |
79
- | RON | TRY | buy | 10.2165 |
80
- | RON | TRY | sell | 10.3502 |
81
- | RUB | TRY | buy | 0.57125 |
82
- | RUB | TRY | sell | 0.57873 |
83
- | SAR | TRY | buy | 13.0856 |
84
- | SAR | TRY | sell | 13.1091 |
85
- | SEK | TRY | buy | 4.8854 |
86
- | SEK | TRY | sell | 4.936 |
87
- | USD | TRY | buy | 49.1267 |
88
- | USD | TRY | sell | 49.2152 |
89
- | XDR | TRY | buy | 66.4801 |
49
+ | AED | TRY | buy | 13.3485 |
50
+ | AED | TRY | sell | 13.5232 |
51
+ | AUD | TRY | buy | 34.4686 |
52
+ | AUD | TRY | sell | 34.6933 |
53
+ | AZN | TRY | buy | 28.8398 |
54
+ | AZN | TRY | sell | 29.2172 |
55
+ | CAD | TRY | buy | 34.6413 |
56
+ | CAD | TRY | sell | 34.7976 |
57
+ | CHF | TRY | buy | 59.0399 |
58
+ | CHF | TRY | sell | 59.419 |
59
+ | CNY | TRY | buy | 7.3255 |
60
+ | CNY | TRY | sell | 7.4213 |
61
+ | DKK | TRY | buy | 7.3734 |
62
+ | DKK | TRY | sell | 7.4096 |
63
+ | EUR | TRY | buy | 55.2033 |
64
+ | EUR | TRY | sell | 55.3027 |
65
+ | GBP | TRY | buy | 65.291 |
66
+ | GBP | TRY | sell | 65.6314 |
67
+ | JPY | TRY | buy | 0.310528 |
68
+ | JPY | TRY | sell | 0.312585 |
69
+ | KRW | TRY | buy | 0.0367 |
70
+ | KRW | TRY | sell | 0.03718 |
71
+ | KWD | TRY | buy | 159.1034 |
72
+ | KWD | TRY | sell | 161.1853 |
73
+ | KZT | TRY | buy | 0.10884 |
74
+ | KZT | TRY | sell | 0.11026 |
75
+ | NOK | TRY | buy | 5.1814 |
76
+ | NOK | TRY | sell | 5.2162 |
77
+ | PKR | TRY | buy | 0.17708 |
78
+ | PKR | TRY | sell | 0.17939 |
79
+ | QAR | TRY | buy | 13.4509 |
80
+ | QAR | TRY | sell | 13.6269 |
81
+ | RON | TRY | buy | 10.2756 |
82
+ | RON | TRY | sell | 10.4101 |
83
+ | RUB | TRY | buy | 0.58364 |
84
+ | RUB | TRY | sell | 0.59128 |
85
+ | SAR | TRY | buy | 13.1302 |
86
+ | SAR | TRY | sell | 13.1539 |
87
+ | SEK | TRY | buy | 4.9282 |
88
+ | SEK | TRY | sell | 4.9792 |
89
+ | USD | TRY | buy | 49.3041 |
90
+ | USD | TRY | sell | 49.3929 |
91
+ | XDR | TRY | buy | 66.7733 |
90
92
 
91
93
  Source: [Official rates published by TCMB, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/tcmb/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
92
94
  <!-- daily-table:end -->
@@ -143,10 +145,10 @@ const pair = await getRate('USD', 'TRY', { apiKey: 'art_live_...' });
143
145
  {
144
146
  bank: 'tcmb',
145
147
  name: 'Central Bank of Türkiye',
146
- rate_date: '2026-10-08', // Central Bank of Türkiye's own publication date
148
+ rate_date: '2026-10-13', // Central Bank of Türkiye's own publication date
147
149
  source: 'USD',
148
150
  target: 'TRY',
149
- rate: 49.2152,
151
+ rate: 49.3681,
150
152
  rate_type: 'sell',
151
153
  derived: false,
152
154
  method: 'published',
@@ -171,10 +173,10 @@ console.log(table.rate_date, table.rates.length);
171
173
  {
172
174
  bank: 'tcmb',
173
175
  name: 'Central Bank of Türkiye',
174
- rate_date: '2026-10-08',
176
+ rate_date: '2026-10-13',
175
177
  rates: [
176
- { "base": "USD", "quote": "TRY", "type": "sell", "value": 49.2152 },
177
- { "base": "USD", "quote": "TRY", "type": "buy", "value": 49.1267 },
178
+ { "base": "USD", "quote": "TRY", "type": "sell", "value": 49.3681 },
179
+ { "base": "USD", "quote": "TRY", "type": "buy", "value": 49.2794 },
178
180
  // … the rest of the published table (22 currencies vs TRY)
179
181
  ],
180
182
  disclaimer: '…'
@@ -214,7 +216,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
214
216
  import { getHistory } from '@allratestoday/tcmb-exchange-rate';
215
217
 
216
218
  const series = await getHistory(
217
- { source: 'USD', target: 'TRY', from: '2026-01-01', to: '2026-10-08' },
219
+ { source: 'USD', target: 'TRY', from: '2026-01-01', to: '2026-10-13' },
218
220
  { apiKey: 'art_live_...' }
219
221
  );
220
222
  ```
@@ -227,11 +229,11 @@ const series = await getHistory(
227
229
  source: 'USD',
228
230
  target: 'TRY',
229
231
  from: '2026-01-01',
230
- to: '2026-10-08',
232
+ to: '2026-10-13',
231
233
  count: 152,
232
234
  rates: [
233
235
  // one entry per publication date
234
- { date: '2026-10-08', rate: 49.2152, rate_type: 'sell', derived: false, method: 'published' },
236
+ { date: '2026-10-13', rate: 49.3681, rate_type: 'sell', derived: false, method: 'published' },
235
237
  // …
236
238
  ],
237
239
  disclaimer: '…'
@@ -281,6 +283,7 @@ curl "https://allratestoday.com/api/v1/central-bank/tcmb/latest?format=xml&api_k
281
283
  - 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
282
284
  - 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('tcmb')` 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
283
285
  - 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 tcmb ...` command
286
+ - 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`
284
287
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
285
288
 
286
289
  ## ⚖️ Published vs derived rates
@@ -349,9 +352,9 @@ getRate('USD', 'TRY', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
349
352
 
350
353
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
351
354
 
352
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/tcmb.csv`)
355
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/tcmb.csv`)
353
356
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
354
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/tcmb/latest.json`
357
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/tcmb/latest.json`
355
358
 
356
359
  ## 🔗 Links
357
360
 
package/package.json CHANGED
@@ -1,22 +1,30 @@
1
1
  {
2
2
  "name": "@allratestoday/tcmb-exchange-rate",
3
- "version": "1.3.7",
3
+ "version": "1.3.13",
4
4
  "description": "Official Central Bank of Türkiye (Türkiye) daily exchange rates — 22 currencies vs TRY, history since 2020. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "tcmb",
7
+ "central-bank-of-turkiye",
7
8
  "central",
8
9
  "bank",
9
- "of",
10
- "türkiye",
10
+ "turkiye",
11
11
  "exchange-rate",
12
12
  "exchange-rates",
13
+ "exchangerate",
14
+ "exchange rate",
15
+ "try-exchange-rate",
13
16
  "currency",
14
17
  "forex",
15
18
  "fx",
16
19
  "try",
20
+ "currency-api",
21
+ "currency-exchange-rates",
22
+ "forex-api",
23
+ "currency-conversion",
24
+ "currency-exchange",
25
+ "currency-rates",
17
26
  "central-bank",
18
27
  "official-rates",
19
- "türkiye",
20
28
  "api",
21
29
  "typescript"
22
30
  ],