Exchange Rate
exchange_rateTwelve Data live forex exchange rate for a currency pair symbol (e.g. 'EUR/USD'). Optional dp (decimal places) and timezone. Returns rate, timestamp, and pair identifiers.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "EUR/USD"
},
"name": "exchange_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dp | No | Decimal places for the rate (0-11). | |
| format | No | Response format: "JSON" (default) or "CSV". | |
| symbol | Yes | Ticker/symbol. Stocks e.g. "AAPL", "MSFT"; forex "EUR/USD"; crypto "BTC/USD"; ETFs "SPY". Comma-separate for a batch (e.g. "AAPL,MSFT"). Market indices (SPX, N225, ...) need a Grow-or-higher Twelve Data key passed via _apiKey, the shared key cannot quote them. | |
| timezone | No | Optional timezone, e.g. "America/New_York" or "UTC". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | ||
| symbol | No | ||
| timestamp | No |