@allratestoday/tcmb-exchange-rate 1.3.7 → 1.3.9
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 +56 -53
- package/package.json +1 -1
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
|
-
|
|
40
|
+
[](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-
|
|
45
|
+
Published **2026-10-12** by Central Bank of Türkiye — 43 rates. Updated 2026-10-12.
|
|
44
46
|
|
|
45
47
|
| Base | Quote | Type | Rate |
|
|
46
48
|
| --- | --- | --- | ---: |
|
|
47
|
-
| AED | TRY | buy | 13.
|
|
48
|
-
| AED | TRY | sell | 13.
|
|
49
|
-
| AUD | TRY | buy | 34.
|
|
50
|
-
| AUD | TRY | sell | 34.
|
|
51
|
-
| AZN | TRY | buy | 28.
|
|
52
|
-
| AZN | TRY | sell | 29.
|
|
53
|
-
| CAD | TRY | buy | 34.
|
|
54
|
-
| CAD | TRY | sell | 34.
|
|
55
|
-
| CHF | TRY | buy |
|
|
56
|
-
| CHF | TRY | sell | 59.
|
|
57
|
-
| CNY | TRY | buy | 7.
|
|
58
|
-
| CNY | TRY | sell | 7.
|
|
59
|
-
| DKK | TRY | buy | 7.
|
|
60
|
-
| DKK | TRY | sell | 7.
|
|
61
|
-
| EUR | TRY | buy |
|
|
62
|
-
| EUR | TRY | sell | 55.
|
|
63
|
-
| GBP | TRY | buy |
|
|
64
|
-
| GBP | TRY | sell | 65.
|
|
65
|
-
| JPY | TRY | buy | 0.
|
|
66
|
-
| JPY | TRY | sell | 0.
|
|
67
|
-
| KRW | TRY | buy | 0.
|
|
68
|
-
| KRW | TRY | sell | 0.
|
|
69
|
-
| KWD | TRY | buy | 158.
|
|
70
|
-
| KWD | TRY | sell | 160.
|
|
71
|
-
| KZT | TRY | buy | 0.
|
|
72
|
-
| KZT | TRY | sell | 0.
|
|
73
|
-
| NOK | TRY | buy | 5.
|
|
74
|
-
| NOK | TRY | sell | 5.
|
|
75
|
-
| PKR | TRY | buy | 0.
|
|
76
|
-
| PKR | TRY | sell | 0.
|
|
77
|
-
| QAR | TRY | buy | 13.
|
|
78
|
-
| QAR | TRY | sell | 13.
|
|
79
|
-
| RON | TRY | buy | 10.
|
|
80
|
-
| RON | TRY | sell | 10.
|
|
81
|
-
| RUB | TRY | buy | 0.
|
|
82
|
-
| RUB | TRY | sell | 0.
|
|
83
|
-
| SAR | TRY | buy | 13.
|
|
84
|
-
| SAR | TRY | sell | 13.
|
|
85
|
-
| SEK | TRY | buy | 4.
|
|
86
|
-
| SEK | TRY | sell | 4.
|
|
87
|
-
| USD | TRY | buy | 49.
|
|
88
|
-
| USD | TRY | sell | 49.
|
|
89
|
-
| XDR | TRY | buy | 66.
|
|
49
|
+
| AED | TRY | buy | 13.3334 |
|
|
50
|
+
| AED | TRY | sell | 13.5079 |
|
|
51
|
+
| AUD | TRY | buy | 34.2625 |
|
|
52
|
+
| AUD | TRY | sell | 34.4859 |
|
|
53
|
+
| AZN | TRY | buy | 28.8065 |
|
|
54
|
+
| AZN | TRY | sell | 29.1834 |
|
|
55
|
+
| CAD | TRY | buy | 34.4876 |
|
|
56
|
+
| CAD | TRY | sell | 34.6432 |
|
|
57
|
+
| CHF | TRY | buy | 59.0307 |
|
|
58
|
+
| CHF | TRY | sell | 59.4097 |
|
|
59
|
+
| CNY | TRY | buy | 7.317 |
|
|
60
|
+
| CNY | TRY | sell | 7.4128 |
|
|
61
|
+
| DKK | TRY | buy | 7.3611 |
|
|
62
|
+
| DKK | TRY | sell | 7.3972 |
|
|
63
|
+
| EUR | TRY | buy | 55.1075 |
|
|
64
|
+
| EUR | TRY | sell | 55.2068 |
|
|
65
|
+
| GBP | TRY | buy | 65.0881 |
|
|
66
|
+
| GBP | TRY | sell | 65.4274 |
|
|
67
|
+
| JPY | TRY | buy | 0.30994 |
|
|
68
|
+
| JPY | TRY | sell | 0.311992 |
|
|
69
|
+
| KRW | TRY | buy | 0.03675 |
|
|
70
|
+
| KRW | TRY | sell | 0.03723 |
|
|
71
|
+
| KWD | TRY | buy | 158.9195 |
|
|
72
|
+
| KWD | TRY | sell | 160.999 |
|
|
73
|
+
| KZT | TRY | buy | 0.10839 |
|
|
74
|
+
| KZT | TRY | sell | 0.10981 |
|
|
75
|
+
| NOK | TRY | buy | 5.1323 |
|
|
76
|
+
| NOK | TRY | sell | 5.1668 |
|
|
77
|
+
| PKR | TRY | buy | 0.17687 |
|
|
78
|
+
| PKR | TRY | sell | 0.17918 |
|
|
79
|
+
| QAR | TRY | buy | 13.4344 |
|
|
80
|
+
| QAR | TRY | sell | 13.6102 |
|
|
81
|
+
| RON | TRY | buy | 10.2681 |
|
|
82
|
+
| RON | TRY | sell | 10.4024 |
|
|
83
|
+
| RUB | TRY | buy | 0.58243 |
|
|
84
|
+
| RUB | TRY | sell | 0.59005 |
|
|
85
|
+
| SAR | TRY | buy | 13.1124 |
|
|
86
|
+
| SAR | TRY | sell | 13.136 |
|
|
87
|
+
| SEK | TRY | buy | 4.8971 |
|
|
88
|
+
| SEK | TRY | sell | 4.9478 |
|
|
89
|
+
| USD | TRY | buy | 49.2471 |
|
|
90
|
+
| USD | TRY | sell | 49.3358 |
|
|
91
|
+
| XDR | TRY | buy | 66.6708 |
|
|
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-
|
|
148
|
+
rate_date: '2026-10-12', // Central Bank of Türkiye's own publication date
|
|
147
149
|
source: 'USD',
|
|
148
150
|
target: 'TRY',
|
|
149
|
-
rate: 49.
|
|
151
|
+
rate: 49.3358,
|
|
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-
|
|
176
|
+
rate_date: '2026-10-12',
|
|
175
177
|
rates: [
|
|
176
|
-
{ "base": "USD", "quote": "TRY", "type": "sell", "value": 49.
|
|
177
|
-
{ "base": "USD", "quote": "TRY", "type": "buy", "value": 49.
|
|
178
|
+
{ "base": "USD", "quote": "TRY", "type": "sell", "value": 49.3358 },
|
|
179
|
+
{ "base": "USD", "quote": "TRY", "type": "buy", "value": 49.2471 },
|
|
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-
|
|
219
|
+
{ source: 'USD', target: 'TRY', from: '2026-01-01', to: '2026-10-12' },
|
|
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-
|
|
232
|
+
to: '2026-10-12',
|
|
231
233
|
count: 152,
|
|
232
234
|
rates: [
|
|
233
235
|
// one entry per publication date
|
|
234
|
-
{ date: '2026-10-
|
|
236
|
+
{ date: '2026-10-12', rate: 49.3358, 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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/tcmb-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
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",
|