# Twelve Data

> Twelve Data provides a comprehensive financial data API offering real-time and historical market data for stocks, forex, cryptocurrencies, ETFs, and indic…

Twelve Data provides a comprehensive financial data API offering real-time and historical market data for stocks, forex, cryptocurrencies, ETFs, and indices.

This is a first-class FlyMyAI MCP. Agents **discover it automatically** via tool search and call the actions below on demand - you never wire it up by hand. See the [Composio catalog](https://docs.flymy.ai/mcp/composio.md) for how discovery works.

## Connect

**Twelve Data** authenticates with an API key. Generate the credential in your Twelve Data account, then paste it into FlyMyAI the first time an agent uses a Twelve Data action.

[Get your Twelve Data credential →](https://twelvedata.com/apikey)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `Twelve Data API Key` | Your personal API key for authenticating requests to the Twelve Data API. _(required)_ |

## Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

| Action | What it does | Required inputs |
| --- | --- | --- |
| `TWELVE_DATA_COMMODITIES_LIST` | Tool to retrieve a list of supported commodities. use when you need all available commodities after obtaining a valid api key. | - |
| `TWELVE_DATA_CRYPTOCURRENCIES` | Tool to list all supported cryptocurrencies. use when you need the complete set of crypto symbols. use after obtaining a valid api key. | `apikey` |
| `TWELVE_DATA_CURRENCY_CONVERSION` | Tool to convert an amount from one currency to another. use after confirming currency codes to retrieve real-time conversion. | `from_currency`, `to_currency`, `amount` |
| `TWELVE_DATA_DIVIDENDS` | Tool to retrieve dividend payout history for a specified symbol. use when you need historical dividends over multiple years. | `symbol` |
| `TWELVE_DATA_EARNINGS` | Tool to retrieve earnings data including eps estimates and actuals. use when you need detailed earnings history for a selected stock symbol. | `symbol` |
| `TWELVE_DATA_EPS_REVISIONS` | Tool to provide analysts’ revisions of a company’s future eps over the last week and month. use after confirming the stock symbol. | `symbol` |
| `TWELVE_DATA_EPS_TREND_ACTION` | Tool to retrieve historical eps trends for a specified company. use after selecting a stock symbol to view estimated vs actual eps and surprise indicators. returns a breakdown of eps actuals, estimates, differences, and surprise percentages. | `symbol` |
| `TWELVE_DATA_ETFS_DIRECTORY` | Tool to fetch a daily updated list of exchange-traded funds sorted by total assets. use when you need a directory of etfs by exchange or country. | - |
| `TWELVE_DATA_ETFS_FAMILY` | Tool to fetch a comprehensive list of etfs by family. use when you need to list etfs managed by a specific investment company. | - |
| `TWELVE_DATA_ETFS_TYPE` | Tool to retrieve etf categories by market, including types like 'equity precious metals'. use after confirming api key is set; no parameters are needed. | - |
| `TWELVE_DATA_EXCHANGES` | Tool to retrieve a list of supported exchanges. use when you need all available stock and forex exchanges. | - |
| `TWELVE_DATA_FOREX_PAIRS` | Tool to retrieve a list of all supported forex currency pairs. use when exploring available forex pairs before making other forex data requests. | - |
| `TWELVE_DATA_INDICES` | Tool to retrieve a list of market indices. use when you need to fetch available indices filtered by country. | - |
| `TWELVE_DATA_MUTUAL_FUNDS_FAMILY` | Tool to list all available mutual fund families. use when you need a comprehensive list of mutual fund families managed by investment companies after obtaining a valid api key. | - |
| `TWELVE_DATA_MUTUAL_FUNDS_LIST` | Tool to retrieve a daily updated list of mutual funds sorted by total assets. use when you need to enumerate available mutual funds for analysis. | - |
| `TWELVE_DATA_OPTIONS_CHAIN_ACTION` | Tool to retrieve the options chain for a given symbol and optional expiration date. use when you need detailed option contract data and greeks. omitting date returns all expirations. | `symbol` |
| `TWELVE_DATA_OPTIONS_EXPIRATION` | Tool to retrieve available option expiration dates. use when exploring available expiration dates for a given options symbol. | `symbol` |
| `TWELVE_DATA_QUOTE` | Tool to retrieve the latest market data for a specified symbol. use when you need a quick real-time quote after selecting a symbol. | `symbol` |
| `TWELVE_DATA_STOCKS_LIST` | Tool to retrieve a list of stocks. use when you need to fetch securities with optional filtering by exchange, country, type, or symbol. | - |
| `TWELVE_DATA_SYMBOL_SEARCH` | Tool to search for financial instruments by symbol or company name. use when you need to discover available symbols before making further data requests. | `symbol` |
| `TWELVE_DATA_TECHNICAL_INDICATORS` | Tool to fetch time-series data for a specific technical indicator. use when you have a symbol, interval, and indicator name. | `symbol`, `interval`, `indicator` |
| `TWELVE_DATA_TIME_SERIES` | Tool to retrieve historical and real-time time series data for a specified symbol. use when you need to fetch price data over a time range after selecting a symbol. | `symbol`, `interval` |

## Links

- [Twelve Data website](https://twelvedata.com/)
- [Get API key / credential](https://twelvedata.com/apikey)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
