latestOpenAPI 3.0.32026-08-101461131.1 MB

ad6f143e43aa

options:aggregates

Moving Average Convergence/Divergence (MACD)

Get moving average convergence/divergence (MACD) for a ticker symbol over a given time range.

get/v1/indicators/macd/{optionsTicker}

Path parameters

optionsTickerstring required

The ticker symbol for which to get MACD data.

Query parameters

timestampstring

Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.

timespan'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'

The size of the aggregate time window.

adjustedboolean

Whether or not the aggregates used to calculate the MACD are adjusted for splits. By default, aggregates are adjusted. Set this to false to get results that are NOT adjusted for splits.

short_windowinteger

The short window size used to calculate MACD data.

long_windowinteger

The long window size used to calculate MACD data.

signal_windowinteger

The window size used to calculate the MACD signal line.

series_type'open' | 'high' | 'low' | 'close'

The price in the aggregate which will be used to calculate the MACD. i.e. 'close' will result in using close prices to calculate the MACD.

expand_underlyingboolean

Whether or not to include the aggregates used to calculate this indicator in the response.

order'asc' | 'desc'

The order in which to return the results, ordered by timestamp.

limitinteger

Limit the number of results returned, default is 10 and max is 5000

timestamp.gtestring

Range by timestamp.

timestamp.gtstring

Range by timestamp.

timestamp.ltestring

Range by timestamp.

timestamp.ltstring

Range by timestamp.

Response

Moving Average Convergence/Divergence (MACD) data for each period.

next_urlstring

If present, this value can be used to fetch the next page of data.

request_idstring required

A request id assigned by the server.

statusstring required

The status of this request's response.