@allratestoday/tcmb-exchange-rate 1.3.5 → 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.
Files changed (2) hide show
  1. package/README.md +70 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  [![license](https://img.shields.io/npm/l/@allratestoday%2Ftcmb-exchange-rate.svg)](https://github.com/AllRates-Today/tcmb-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/@allratestoday/tcmb-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
+ [![USD/TRY today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Ftcmb%3Fsource%3DUSD%26target%3DTRY&query=%24.rate&label=USD%2FTRY%20published%20by%20Central%20Bank%20of%20T%C3%BCrkiye&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/tcmb/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Ftcmb%3Fsource%3DUSD%26target%3DTRY&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](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,64 @@ 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
+ [![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.
43
+
44
+ <!-- daily-table:start -->
45
+ Published **2026-10-12** by Central Bank of Türkiye — 43 rates. Updated 2026-10-12.
46
+
47
+ | Base | Quote | Type | Rate |
48
+ | --- | --- | --- | ---: |
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 |
92
+
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.
94
+ <!-- daily-table:end -->
95
+
36
96
  ## 🔑 Get your API key
37
97
 
38
98
  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 +145,10 @@ const pair = await getRate('USD', 'TRY', { apiKey: 'art_live_...' });
85
145
  {
86
146
  bank: 'tcmb',
87
147
  name: 'Central Bank of Türkiye',
88
- rate_date: '2026-10-06', // Central Bank of Türkiye's own publication date
148
+ rate_date: '2026-10-12', // Central Bank of Türkiye's own publication date
89
149
  source: 'USD',
90
150
  target: 'TRY',
91
- rate: 49.1802,
151
+ rate: 49.3358,
92
152
  rate_type: 'sell',
93
153
  derived: false,
94
154
  method: 'published',
@@ -113,10 +173,10 @@ console.log(table.rate_date, table.rates.length);
113
173
  {
114
174
  bank: 'tcmb',
115
175
  name: 'Central Bank of Türkiye',
116
- rate_date: '2026-10-06',
176
+ rate_date: '2026-10-12',
117
177
  rates: [
118
- { "base": "USD", "quote": "TRY", "type": "sell", "value": 49.1802 },
119
- { "base": "USD", "quote": "TRY", "type": "buy", "value": 49.0918 },
178
+ { "base": "USD", "quote": "TRY", "type": "sell", "value": 49.3358 },
179
+ { "base": "USD", "quote": "TRY", "type": "buy", "value": 49.2471 },
120
180
  // … the rest of the published table (22 currencies vs TRY)
121
181
  ],
122
182
  disclaimer: '…'
@@ -156,7 +216,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
156
216
  import { getHistory } from '@allratestoday/tcmb-exchange-rate';
157
217
 
158
218
  const series = await getHistory(
159
- { source: 'USD', target: 'TRY', from: '2026-01-01', to: '2026-10-06' },
219
+ { source: 'USD', target: 'TRY', from: '2026-01-01', to: '2026-10-12' },
160
220
  { apiKey: 'art_live_...' }
161
221
  );
162
222
  ```
@@ -169,11 +229,11 @@ const series = await getHistory(
169
229
  source: 'USD',
170
230
  target: 'TRY',
171
231
  from: '2026-01-01',
172
- to: '2026-10-06',
232
+ to: '2026-10-12',
173
233
  count: 152,
174
234
  rates: [
175
235
  // one entry per publication date
176
- { date: '2026-10-06', rate: 49.1802, rate_type: 'sell', derived: false, method: 'published' },
236
+ { date: '2026-10-12', rate: 49.3358, rate_type: 'sell', derived: false, method: 'published' },
177
237
  // …
178
238
  ],
179
239
  disclaimer: '…'
@@ -222,6 +282,8 @@ curl "https://allratestoday.com/api/v1/central-bank/tcmb/latest?format=xml&api_k
222
282
 
223
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
224
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
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`
225
287
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
226
288
 
227
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.5",
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",