Polygon

Learn how to use Polygon with Composio

Overview

Enum

POLYGON

Description

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

Authentication Details

Actions

Tool to retrieve all ticker symbols across asset classes. use when you need to filter by market or exchange and paginate through results.

Action Parameters

active
booleanDefaults to True
cursor
string
exchange
string
limit
integerDefaults to 10
market
string
order
stringDefaults to asc
search
string
sort
string
ticker
string

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

adjusted
booleanDefaults to True
crypto_ticker
stringRequired
expand_underlying
boolean
limit
integerDefaults to 50
order
stringDefaults to desc
series_type
stringRequired
timespan
stringRequired
window
integerRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

adjusted
booleanDefaults to True
expand_underlying
boolean
limit
integerDefaults to 50
order
stringDefaults to desc
series_type
stringDefaults to close
ticker
stringRequired
timespan
stringDefaults to day
window_long
integerDefaults to 26
window_short
integerDefaults to 12
window_signal
integerDefaults to 9

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

adjusted
booleanDefaults to True
limit
integerDefaults to 100
order
stringDefaults to desc
series_type
stringDefaults to close
ticker
stringRequired
timeframe
stringRequired
timestamp
string
window
integerDefaults to 14

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

adjusted
booleanDefaults to True
crypto_ticker
stringRequired
expand_underlying
boolean
limit
integerDefaults to 5000
order
stringDefaults to desc
series_type
stringDefaults to close
timespan
stringRequired
window
integerRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

base
stringRequired
date
stringRequired
quote
stringRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

adjusted
booleanDefaults to True
crypto_ticker
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to retrieve dividend data for stocks. use when you need corporate dividend information for specific tickers.

Action Parameters

cash_amount
number
declaration_date
string
dividend_type
string
ex_dividend_date
string
frequency
string
limit
integer
order
string
payment_date
string
record_date
string
skip
integer
sort
string
ticker
string

Action Response

data
object
error
string
successful
boolean
Tool to retrieve upcoming market holidays and half-day closures. use when you need to look up upcoming exchange holidays and early closures.

Action Parameters

Action Response

data
array
error
string
successful
boolean
Tool to retrieve current market status. use when you need to know if u.s. exchanges are open, closed, or on holiday.

Action Parameters

Action Response

data
object
error
string
successful
boolean
Tool to retrieve recent news articles related to a ticker. use when you need to fetch financial news after identifying a ticker symbol.

Action Parameters

cursor
string
limit
integer
order
string
published_utc.gte
string
published_utc.lte
string
sort
string
ticker
string

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

asset_class
string
data_type
string
id
string

Action Response

data
object
error
string
successful
boolean
Tool to retrieve supported exchanges and their details. use when you need a list of exchanges filtered by asset class or locale.

Action Parameters

asset_class
string
locale
string

Action Response

data
object
error
string
successful
boolean
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".

Action Parameters

execution_date.gte
string
execution_date.lte
string
limit
integer
order
string
sort
string
ticker
string

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

adjusted
booleanDefaults to True
expand_underlying
boolean
limit
integerDefaults to 50
order
stringDefaults to desc
series_type
stringDefaults to close
ticker
stringRequired
timespan
stringRequired
window
integerRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

adjusted
booleanDefaults to True
expand_underlying
boolean
limit
integerDefaults to 50
order
stringDefaults to desc
series_type
stringDefaults to close
ticker
stringRequired
timespan
stringRequired
window
integerRequired

Action Response

data
object
error
string
successful
boolean
Tool to retrieve detailed information for a ticker. use when you need an overview of a ticker including company info, market data, and identifiers.

Action Parameters

date
ticker
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to retrieve all ticker types supported by polygon.io. use after authenticating to explore ticker categories.

Action Parameters

asset_class
string
limit
integer
offset
integer
type
string

Action Response

data
object
error
string
successful
boolean