@allratestoday/tcmb-exchange-rate 1.3.4 → 1.3.7
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 +67 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
[](https://github.com/AllRates-Today/tcmb-exchange-rate/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/@allratestoday/tcmb-exchange-rate)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://allratestoday.com/central-bank-rates-api/tcmb/)
|
|
8
|
+
[](https://allratestoday.com/central-bank-rates-api/tcmb/)
|
|
7
9
|
|
|
8
10
|
**Official Central Bank of Türkiye (Türkiye) daily exchange rates for Node.js and TypeScript. The published central bank rates behind tax filings, customs valuations, audits, and compliant invoicing — not market estimates, but the numbers Central Bank of Türkiye itself prints, every business day.**
|
|
9
11
|
|
|
@@ -33,6 +35,62 @@ console.log(r.rate_date, r.rates.length); // the central bank's latest published
|
|
|
33
35
|
|
|
34
36
|
The open endpoint serves the *latest* table only and asks for a visible attribution link. The client below uses the keyed API, which adds point-in-time tables, history, and CSV/XML/Excel output.
|
|
35
37
|
|
|
38
|
+
## 📈 Latest published table
|
|
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.
|
|
41
|
+
|
|
42
|
+
<!-- daily-table:start -->
|
|
43
|
+
Published **2026-10-08** by Central Bank of Türkiye — 43 rates. Updated 2026-10-08.
|
|
44
|
+
|
|
45
|
+
| Base | Quote | Type | Rate |
|
|
46
|
+
| --- | --- | --- | ---: |
|
|
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 |
|
|
90
|
+
|
|
91
|
+
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
|
+
<!-- daily-table:end -->
|
|
93
|
+
|
|
36
94
|
## 🔑 Get your API key
|
|
37
95
|
|
|
38
96
|
Get a free API key at [allratestoday.com/register](https://allratestoday.com/register) — no credit card required. Latest rates are on every plan, including free.
|
|
@@ -85,10 +143,10 @@ const pair = await getRate('USD', 'TRY', { apiKey: 'art_live_...' });
|
|
|
85
143
|
{
|
|
86
144
|
bank: 'tcmb',
|
|
87
145
|
name: 'Central Bank of Türkiye',
|
|
88
|
-
rate_date: '2026-
|
|
146
|
+
rate_date: '2026-10-08', // Central Bank of Türkiye's own publication date
|
|
89
147
|
source: 'USD',
|
|
90
148
|
target: 'TRY',
|
|
91
|
-
rate:
|
|
149
|
+
rate: 49.2152,
|
|
92
150
|
rate_type: 'sell',
|
|
93
151
|
derived: false,
|
|
94
152
|
method: 'published',
|
|
@@ -113,10 +171,10 @@ console.log(table.rate_date, table.rates.length);
|
|
|
113
171
|
{
|
|
114
172
|
bank: 'tcmb',
|
|
115
173
|
name: 'Central Bank of Türkiye',
|
|
116
|
-
rate_date: '2026-
|
|
174
|
+
rate_date: '2026-10-08',
|
|
117
175
|
rates: [
|
|
118
|
-
{ "base": "USD", "quote": "TRY", "type": "sell", "value":
|
|
119
|
-
{ "base": "USD", "quote": "TRY", "type": "buy", "value":
|
|
176
|
+
{ "base": "USD", "quote": "TRY", "type": "sell", "value": 49.2152 },
|
|
177
|
+
{ "base": "USD", "quote": "TRY", "type": "buy", "value": 49.1267 },
|
|
120
178
|
// … the rest of the published table (22 currencies vs TRY)
|
|
121
179
|
],
|
|
122
180
|
disclaimer: '…'
|
|
@@ -156,7 +214,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
156
214
|
import { getHistory } from '@allratestoday/tcmb-exchange-rate';
|
|
157
215
|
|
|
158
216
|
const series = await getHistory(
|
|
159
|
-
{ source: 'USD', target: 'TRY', from: '2026-01-01', to: '2026-
|
|
217
|
+
{ source: 'USD', target: 'TRY', from: '2026-01-01', to: '2026-10-08' },
|
|
160
218
|
{ apiKey: 'art_live_...' }
|
|
161
219
|
);
|
|
162
220
|
```
|
|
@@ -169,11 +227,11 @@ const series = await getHistory(
|
|
|
169
227
|
source: 'USD',
|
|
170
228
|
target: 'TRY',
|
|
171
229
|
from: '2026-01-01',
|
|
172
|
-
to: '2026-
|
|
230
|
+
to: '2026-10-08',
|
|
173
231
|
count: 152,
|
|
174
232
|
rates: [
|
|
175
233
|
// one entry per publication date
|
|
176
|
-
{ date: '2026-
|
|
234
|
+
{ date: '2026-10-08', rate: 49.2152, rate_type: 'sell', derived: false, method: 'published' },
|
|
177
235
|
// …
|
|
178
236
|
],
|
|
179
237
|
disclaimer: '…'
|
|
@@ -222,6 +280,7 @@ curl "https://allratestoday.com/api/v1/central-bank/tcmb/latest?format=xml&api_k
|
|
|
222
280
|
|
|
223
281
|
- 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
|
|
224
282
|
- 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
|
+
- 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
|
|
225
284
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
226
285
|
|
|
227
286
|
## ⚖️ 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.7",
|
|
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",
|