get_fx_rate
Retrieve the official TCMB indicative exchange rate for a currency against the Turkish lira on a given date, with no API key. If no bulletin exists, returns status and nearest earlier bulletin date.
Instructions
Official TCMB indicative exchange rate of a currency against the Turkish lira (TRY per 1 unit) for a date. Works without any API key.
TCMB publishes one bulletin per business day around 15:30 Istanbul time. If no bulletin exists for the date (weekend, holiday, not yet published), status is 'not_published' and no rate is returned; 'nearest_earlier_bulletin' names the closest earlier date with a bulletin, which you may query explicitly. Never present that date's rate as the requested date's rate. Cite the returned citation (bulletin URL and number).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Bulletin date (YYYY-MM-DD). Omit for the latest bulletin. | |
| currency | Yes | ISO code, e.g. 'USD', 'EUR', 'GBP', 'JPY', 'XDR'. | |
| rate_type | No | Which rate goes into 'value'. All four are in 'quote'. | forex_buying |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| quote | No | ||
| value | Yes | The requested rate_type, per 1 unit, in TRY. | |
| status | Yes | ||
| citations | Yes | ||
| rate_type | Yes | ||
| bulletin_no | No | ||
| bulletin_date | Yes | Date of the bulletin the rates come from. Equals requested_date when status=ok. | |
| requested_date | Yes | None means 'latest bulletin'. | |
| available_currencies | No | ||
| nearest_earlier_bulletin | No | Only for status=not_published: the closest earlier date that has a bulletin. Its rates are NOT the requested date's rates. |