Moving Average Convergence/Divergence (MACD)

GET
/v1/indicators/macd/{cryptoTicker}

Retrieve the Moving Average Convergence/Divergence (MACD) for a specified ticker over a defined time range. MACD is a momentum indicator derived from two moving averages, helping to identify trend strength, direction, and potential trading signals.

Use Cases: Momentum analysis, signal generation (crossover events), spotting overbought/oversold conditions, and confirming trend directions.

Path Parameters
cryptoTicker
string
required
The ticker symbol for which to get MACD data.
Query Parameters
timestamp
string
Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.
timespan
enum (string)
The size of the aggregate time window.
short_window
integer
The short window size used to calculate MACD data.
long_window
integer
The long window size used to calculate MACD data.
signal_window
integer
The window size used to calculate the MACD signal line.
series_type
enum (string)
The price in the aggregate which will be used to calculate MACD data. i.e. 'close' will result in using close prices to calculate the MACD.
expand_underlying
boolean
Whether or not to include the aggregates used to calculate this indicator in the response.
order
enum (string)
The order in which to return the results, ordered by timestamp.
limit
integer
Limit the number of results returned, default is 10 and max is 5000
Response Attributes
next_url
string
optional
If present, this value can be used to fetch the next page of data.
request_id
string
optional
A request id assigned by the server.
results
object
optional
underlying
object
optional
values
array (object)
optional
status
string
optional
The status of this request's response.
Code Examples
Query URL
GET
Log in or Sign up to Polygon to run a query. It's free.
Scroll to see updated query response
Response Object
Did you find this page helpful?
Do you still need help with something?