Skip to main content
Glama

Twelve Data MCP Server

Official
by twelvedata

GetCurrencyConversion

Retrieve real-time exchange rates and convert currency amounts for forex or cryptocurrency pairs using specific dates or timezones for accurate financial calculations.

Instructions

This API call returns real-time exchange rate and converted amount for currency pair. Works with forex and cryptocurrency.

Input Schema

NameRequiredDescriptionDefault
paramsYes

Input Schema (JSON Schema)

{ "$defs": { "GetCurrencyConversionRequest": { "description": "This API call returns real-time exchange rate and converted amount for currency pair. Works with forex and cryptocurrency.", "properties": { "amount": { "description": "Amount of base currency to be converted into quote currency. Supports values in the range from `0` and above", "examples": [ "100" ], "title": "Amount", "type": "number" }, "apikey": { "default": "demo", "description": "API key", "examples": [ "demo" ], "title": "Apikey", "type": "string" }, "date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "If not null, will use exchange rate from a specific date or time. Format `2006-01-02` or `2006-01-02 15:04:05`. Is set in the local exchange time zone, use timezone parameter to specify a specific time zone", "examples": [ "2006-01-02 15:04:05" ], "title": "Date" }, "delimiter": { "default": ";", "description": "Specify the delimiter used when downloading the `CSV` file. Default semicolon `;`", "title": "Delimiter", "type": "string" }, "dp": { "default": 5, "description": "The number of decimal places for the data", "title": "Dp", "type": "integer" }, "format": { "default": "JSON", "description": "Value can be `JSON` or `CSV`. Default `JSON`", "title": "Format", "type": "string" }, "symbol": { "description": "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", "examples": [ "EUR/USD" ], "title": "Symbol", "type": "string" }, "timezone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Timezone at which output datetime will be displayed. Supports:\n<ul>\n<li>1. <code>Exchange</code> for local exchange time</li>\n<li>2. <code>UTC</code> for datetime at universal UTC standard</li>\n<li>3. Timezone name according to the IANA Time Zone Database. E.g. <code>America/New_York</code>, <code>Asia/Singapore</code>. Full list of timezones can be found <a href=\"https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\" target=\"blank\">here</a>.</li>\n</ul>\n<i>Take note that the IANA Timezone name is case-sensitive</i>", "examples": [ "UTC" ], "title": "Timezone" } }, "required": [ "symbol", "amount" ], "title": "GetCurrencyConversionRequest", "type": "object" } }, "properties": { "params": { "$ref": "#/$defs/GetCurrencyConversionRequest" } }, "required": [ "params" ], "title": "GetCurrencyConversionArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/twelvedata/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server