Currency Conversion
currency_conversionTwelve Data real-time currency conversion: pass a forex pair symbol (e.g. 'EUR/USD') and an amount to get the converted value at the current exchange rate.
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": {
"amount": 100,
"symbol": "EUR/USD"
},
"name": "currency_conversion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dp | No | Decimal places (0-11). | |
| amount | Yes | Amount in the base currency to convert. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | ||
| amount | No | ||
| symbol | No | ||
| timestamp | No |