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"
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "twelvedata_get_exchange_rate"
}
}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 |