Get Exchange Rate
twelvedata_get_exchange_rateGet the current exchange rate for any currency pair, including forex and precious metals. Returns the rate with a timestamp.
Instructions
Get the current exchange rate for a currency pair.
Args:
symbol (string): Currency pair (e.g., "EUR/USD", "XAU/USD")
response_format ('markdown' | 'json'): Output format
Returns: Current exchange rate with timestamp.
Examples:
"EUR/USD exchange rate" -> symbol: "EUR/USD"
"Gold rate" -> symbol: "XAU/USD"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Currency pair for exchange rate (e.g., EUR/USD, XAU/USD) | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for structured data | markdown |