Döviz Kuru (TCMB)
get_fxRetrieves daily TCMB buying or selling rates for major currencies against the Turkish lira for a specified date range.
Instructions
TCMB'nin gösterge niteliğindeki günlük döviz alış/satış kurlarını döndürür (1 birim yabancı para = X TL).
Ne zaman kullanılır:
"Dolar/Euro kuru bugün/şu tarihte neydi", "son 1 yılda dolar nasıl değişti" gibi sorularda.
Kur SEVİYESİ (TL) gerekir; yüzde değişim gerekiyorsa observations'tan hesaplayın ya da compare_indicators kullanın.
Parametreler:
pair: USD | EUR | GBP | CHF | CAD | AUD | SAR | DKK | SEK | NOK
side: 'alis' | 'satis' (vars. 'satis')
period: { start, end } (YYYY | YYYY-MM | YYYY-MM-DD)
Dönüş: ortak şema — series, label, unit ("TL (1 karşılığı)"), basis ("nominal"), observations[{date,value}], source, fetchedAt. Notlar: Hafta sonu/tatil günlerinde değer null olabilir. Veri yoksa uydurmaz; not alanında belirtir.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | Yes | Currency against TRY. One of: USD, EUR, GBP, CHF, CAD, AUD, SAR, DKK, SEK, NOK. | |
| side | No | 'alis' = TCMB buying rate, 'satis' = TCMB selling rate (default). | satis |
| period | Yes | Inclusive date range to query. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Methodology, caveats, or verification warnings, when relevant. | |
| unit | Yes | Unit of the values, e.g. '%', 'TL', 'endeks (2003=100)'. | |
| basis | Yes | What the numbers represent: 'nominal' | 'reel' | 'düzey' | 'yıllık % değişim' | ... | |
| label | Yes | Human-readable Turkish name of the series. | |
| series | Yes | EVDS series code that produced these observations (e.g. 'TP.DK.USD.A.YTL'). | |
| source | Yes | Always 'TCMB EVDS'. | |
| fetchedAt | Yes | ISO-8601 timestamp of when the data was fetched. | |
| observations | Yes | The time series, oldest to newest. |