# Exchange rate The exchange rate endpoint provides real-time exchange rates for specified currency pairs, including both forex and cryptocurrency. It returns the current exchange rate value between two currencies, allowing users to quickly access up-to-date conversion rates for financial transactions or market analysis. **API credits cost:** `1` per symbol ## Parameters - `symbol` (string, required) The currency pair you want to request can be either forex or cryptocurrency. Slash(`/`) delimiter is used. E.g. `EUR/USD` or `BTC/ETH` will be correct - `date` (string, optional) If not null, will use exchange rate from a specific date or time. Format `2006-01-02` or `2006-01-02T15:04:05`. Is set in the local exchange time zone, use timezone parameter to specify a specific time zone - `format` (string, optional) Value can be `JSON` or `CSV`. Default `JSON` - `delimiter` (string, optional) Specify the delimiter used when downloading the `CSV` file. Default semicolon `;` - `dp` (integer, optional) The number of decimal places for the data - `timezone` (string, optional) Timezone at which output datetime will be displayed. Supports: 1. Exchange for local exchange time 2. UTC for datetime at universal UTC standard 3. Timezone name according to the IANA Time Zone Database. E.g. America/New_York, Asia/Singapore. Full list of timezones can be found here. Take note that the IANA Timezone name is case-sensitive ## Response - `` (object) - `symbol` (string) Requested currency symbol - `rate` (number) Real-time exchange rate for the corresponding symbol - `timestamp` (integer) Unix timestamp of the rate ## Example Request ```bash curl "https://api.twelvedata.com/exchange_rate?symbol=EUR/USD&apikey=demo" ``` ## Example Response ```json { "symbol": "USD/JPY", "rate": 105.12, "timestamp": 1602714051 } ```