# Polygon

Polygon.io provides real-time and historical market data APIs for stocks, options, forex, and cryptocurrencies.

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

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

[Get your Polygon credential →](https://polygon.io/dashboard/keys)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `Polygon API Key` | Your Polygon.io API key, used to authorize every market data request. Sign in and copy it from Dashboard → API Keys: polygon.io/dashboard/keys _(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 |
| --- | --- | --- |
| `POLYGON_GET_ALL_TICKERS` | Tool to retrieve all ticker symbols across asset classes. use when you need to filter by market or exchange and paginate through results. | - |
| `POLYGON_GET_CRYPTO_INDICATOR_EMA` | Tool to retrieve exponential moving average (ema) for a cryptocurrency ticker. use when you need crypto ema data for analysis after selecting the time window. | `crypto_ticker`, `timespan`, `window`, `series_type` |
| `POLYGON_GET_CRYPTO_INDICATOR_MACD` | Tool to retrieve the macd (moving average convergence/divergence) for a crypto ticker. use when you need momentum analysis for a specific cryptocurrency after confirming ticker and parameters. | `ticker` |
| `POLYGON_GET_CRYPTO_INDICATOR_RSI` | Tool to retrieve the relative strength index (rsi) for a crypto ticker. use when you need momentum analysis for crypto assets after specifying ticker, timeframe, and optional parameters. | `ticker`, `timeframe` |
| `POLYGON_GET_CRYPTO_INDICATOR_SMA` | Tool to retrieve the simple moving average (sma) for a given crypto ticker. use when you need sma values for a crypto asset after confirming ticker, timespan, and window size. | `crypto_ticker`, `timespan`, `window` |
| `POLYGON_GET_CRYPTO_OPEN_CLOSE` | Tool to fetch daily open and close prices for a given crypto pair on a specified date. use after specifying both currency symbols and the date. | `base`, `quote`, `date` |
| `POLYGON_GET_CRYPTO_PREV_CLOSE` | Tool to retrieve previous day’s close for a crypto ticker. use when you need the last closing price of a cryptocurrency before analysis or trading. | `crypto_ticker` |
| `POLYGON_GET_DIVIDENDS` | Tool to retrieve dividend data for stocks. use when you need corporate dividend information for specific tickers. | - |
| `POLYGON_GET_MARKET_HOLIDAYS` | Tool to retrieve upcoming market holidays and half-day closures. use when you need to look up upcoming exchange holidays and early closures. | - |
| `POLYGON_GET_MARKET_STATUS` | Tool to retrieve current market status. use when you need to know if u.s. exchanges are open, closed, or on holiday. | - |
| `POLYGON_GET_NEWS` | Tool to retrieve recent news articles related to a ticker. use when you need to fetch financial news after identifying a ticker symbol. | - |
| `POLYGON_GET_REFERENCE_CONDITIONS` | Tool to retrieve market condition code mappings. use when you need definitions of trade or quote condition codes after confirming asset class and data type. | - |
| `POLYGON_GET_REFERENCE_EXCHANGES` | Tool to retrieve supported exchanges and their details. use when you need a list of exchanges filtered by asset class or locale. | - |
| `POLYGON_GET_SPLITS` | Tool to retrieve stock split events. use when you need corporate stock split data filtered by ticker or date range. example: "get splits for aapl between 2021-01-01 and 2021-12-31". | - |
| `POLYGON_GET_TECHNICAL_INDICATOR_EMA` | Tool to fetch exponential moving average (ema) for a given stock ticker. use when you need historical ema data after confirming ticker, timespan, and window size. | `ticker`, `timespan`, `window` |
| `POLYGON_GET_TECHNICAL_INDICATOR_SMA` | Tool to fetch simple moving average (sma) for a given stock ticker. use when you need historical sma data after confirming ticker, timespan, and window size. | `ticker`, `timespan`, `window` |
| `POLYGON_GET_TICKER_DETAILS` | Tool to retrieve detailed information for a ticker. use when you need an overview of a ticker including company info, market data, and identifiers. | `ticker` |
| `POLYGON_GET_TICKER_TYPES` | Tool to retrieve all ticker types supported by polygon.io. use after authenticating to explore ticker categories. | - |

## Links

- [Polygon website](https://polygon.io/)
- [Get API key / credential](https://polygon.io/dashboard/keys)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
