Twelvedata

v0.2.1
io.github.pipeworx-io/twelvedata Checked 1 day ago Published 27 days ago

Twelve Data MCP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

time_series

Twelve Data OHLC time series for a stock, forex, crypto, or ETF symbol. Requires symbol and interval (e.g. '1min', '1h', '1day'). Returns timestamped open/high/low/close + volume.

ParameterTypeDescription
interval *stringBar interval: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, or 1month.
symbol *stringTicker/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 Da…
end_datestringOptional end of range, "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS".
exchangestringOptional exchange filter (e.g. "NASDAQ", "NYSE", "Binance").
orderstringSort order: "asc" or "desc" (default desc, newest first).
outputsizenumberNumber of data points to return (1–5000, default 30).
start_datestringOptional start of range, "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS".
timezonestringOptional timezone, e.g. "America/New_York" or "UTC".

quote

Twelve Data real-time quote snapshot for a symbol: open, high, low, close, volume, 52-week range, exchange, currency. Use for a full current-day market snapshot.

ParameterTypeDescription
symbol *stringTicker/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 Da…
exchangestringOptional exchange filter (e.g. "NASDAQ", "NYSE", "Binance").
intervalstringBar interval: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, or 1month.
timezonestringOptional timezone, e.g. "America/New_York" or "UTC".

price

Twelve Data latest trade price for a single symbol (stock, forex, crypto, ETF). Returns a single numeric price field. Lightest endpoint for current-price lookups.

ParameterTypeDescription
symbol *stringTicker/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 Da…
exchangestringOptional exchange filter (e.g. "NASDAQ", "NYSE", "Binance").

eod

Twelve Data end-of-day closing quote for a symbol. Returns the last closing price, volume, and date. Use for daily settlement prices rather than intraday data.

ParameterTypeDescription
symbol *stringTicker/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 Da…
exchangestringOptional exchange filter (e.g. "NASDAQ", "NYSE", "Binance").

exchange_rate

Twelve 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.

ParameterTypeDescription
symbol *stringTicker/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 Da…
dpnumberDecimal places for the rate (0–11).
formatstringResponse format: "JSON" (default) or "CSV".
timezonestringOptional timezone, e.g. "America/New_York" or "UTC".

currency_conversion

Twelve 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.

ParameterTypeDescription
amount *numberAmount in the base currency to convert.
symbol *stringTicker/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 Da…
dpnumberDecimal places (0–11).
formatstringResponse format: "JSON" (default) or "CSV".

stocks

Twelve Data reference list of all supported stock symbols with exchange and country metadata. Use to discover or validate tickers before querying price endpoints.

ParameterTypeDescription
countrystringOptional country filter (e.g. "United States").
exchangestringOptional exchange filter (e.g. "NASDAQ", "NYSE", "Binance").
symbolstringOptional ticker filter (e.g. "AAPL").
typestringOptional instrument type filter (e.g. "Common Stock").

forex_pairs

Twelve Data reference list of all supported forex currency pairs (e.g. EUR/USD). Use to enumerate or validate pair symbols before querying exchange_rate or time_series.

ParameterTypeDescription
currency_basestringOptional base currency (e.g. "EUR").
currency_quotestringOptional quote currency (e.g. "USD").
symbolstringOptional pair filter (e.g. "EUR/USD").

cryptocurrencies

Twelve Data reference list of all supported cryptocurrency symbols with exchange metadata. Use to discover or validate crypto tickers before querying price endpoints.

ParameterTypeDescription
exchangestringOptional exchange filter (e.g. "NASDAQ", "NYSE", "Binance").
symbolstringOptional pair filter (e.g. "BTC/USD").

etfs

Twelve Data reference list of supported ETF symbols (64,000+ listings worldwide) with exchange and country metadata — paged, default 200 rows, `count` is the total matched. Filter by symbol (e.g. "SPY"), country or exchange. Use to discover or validate ETF tickers before querying price endpoints. A stock ticker (e.g. "AAPL") is not an ETF and returns an empty list with `empty_reason: wrong_instrument_class` — use the stocks tool for those.

ParameterTypeDescription
countrystringOptional country filter — full name or alpha code (e.g. "Japan", "Germany", "United States", "US").
exchangestringOptional exchange filter (e.g. "NASDAQ", "NYSE", "Binance").
mic_codestringOptional ISO 10383 market identifier code filter (e.g. "XNAS", "XLON").
outputsizenumberRows per page (default 200, max 5000). The unfiltered ETF list is 64,000+ rows, so narrow with symbol / country / exchange rather than raising this.
pagenumberPage of the reference list (default 1). `count` in the response is the TOTAL matched; `data` is this page.
symbolstringOptional ETF ticker filter (e.g. "SPY", "QQQ", "VTI").

indices

Twelve Data reference list of supported market index symbols with exchange metadata — about 1,300 NON-US indices (e.g. N225 Nikkei 225, 000001 SSE Composite, NSEI Nifty 50), paged, default 200 rows. Filter by country (e.g. "Japan", "India", "China"), exchange or symbol. US indices (SPX, DJI, IXIC, NDX, VIX) are NOT in Twelve Data's reference list and quoting them requires a Grow-or-higher Twelve Data key via _apiKey — a US filter here returns that refusal, not an empty list. Use to discover or validate index tickers before querying time_series.

ParameterTypeDescription
countrystringOptional country filter, full name or alpha code (e.g. "Japan", "India", "China", "Germany"). "United States" returns a plan refusal, not rows.
exchangestringOptional exchange filter (e.g. "NASDAQ", "NYSE", "Binance").
mic_codestringOptional ISO 10383 market identifier code filter (e.g. "XNAS", "XLON").
outputsizenumberRows per page (default 200, max 5000). The unfiltered ETF list is 64,000+ rows, so narrow with symbol / country / exchange rather than raising this.
pagenumberPage of the reference list (default 1). `count` in the response is the TOTAL matched; `data` is this page.
symbolstringOptional index symbol filter (e.g. "N225", "NSEI", "000001"). US symbols such as SPX/DJI/IXIC are not in this list — see the tool description.

earnings

Twelve Data earnings history and upcoming earnings dates for a stock symbol: EPS estimate, EPS actual, surprise percentage, and report date per quarter.

ParameterTypeDescription
symbol *stringTicker/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 Da…
end_datestringOptional end of range, "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS".
exchangestringOptional exchange filter (e.g. "NASDAQ", "NYSE", "Binance").
start_datestringOptional start of range, "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS".

earnings_calendar

Twelve Data broad earnings calendar — upcoming and recent earnings announcements across all covered symbols. Returns symbol, date, EPS estimate, and time of day (before/after market).

ParameterTypeDescription
end_datestringOptional end of range, "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS".
start_datestringOptional start of range, "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS".

dividends

Twelve Data historical dividends for a stock / ETF symbol: ex-date, amount, frequency. Use for income analysis and dividend-capture strategies on Twelve-Data-covered symbols.

ParameterTypeDescription
symbol *stringTicker/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 Da…
end_datestringOptional end of range, "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS".
exchangestringOptional exchange filter (e.g. "NASDAQ", "NYSE", "Binance").
start_datestringOptional start of range, "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS".

splits

Twelve Data historical stock splits for a symbol: ratio, date. Use to adjust historical Twelve Data prices across split events.

ParameterTypeDescription
symbol *stringTicker/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 Da…
end_datestringOptional end of range, "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS".
exchangestringOptional exchange filter (e.g. "NASDAQ", "NYSE", "Binance").
start_datestringOptional start of range, "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS".

profile

Twelve Data company profile for a stock symbol: name, sector, industry, employees, CEO, description, website, address, and exchange listing details.

ParameterTypeDescription
symbol *stringTicker/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 Da…
exchangestringOptional exchange filter (e.g. "NASDAQ", "NYSE", "Binance").

technical_indicator

Compute a technical indicator time series for a stock/forex/crypto symbol via Twelve Data — RSI, SMA, EMA, MACD, Bollinger Bands (bbands), ADX, ATR, Stochastic, CCI, and more. PREFER for "RSI(14) of AAPL", "50-day and 200-day SMA of TSLA", "MACD for BTC/USD", "Bollinger Bands of SPY". This is the right tool for ANY "RSI / SMA / EMA / MACD / moving average / technical indicator for <ticker>" question. Computes ONE indicator per call: if several are requested (e.g. "RSI and the 50-day and 200-day SMA"), call this once per indicator starting with the first — do NOT decline just because multip…

ParameterTypeDescription
indicator *stringIndicator (lowercase): rsi, sma, ema, wma, dema, tema, macd, bbands, stoch, stochrsi, adx, atr, natr, cci, mom, roc, willr, obv, ad, vwap, aroon, mfi, sar, trix, ppo, kama.
interval *stringBar interval: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, or 1month.
symbol *stringTicker/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 Da…
outputsizenumberNumber of data points to return (1–5000, default 30).
series_typestringPrice series the indicator is computed on: close (default), open, high, low.
time_periodnumberLook-back period in bars (e.g. 14 for RSI, 50 or 200 for SMA, 20 for bbands). Default varies by indicator.