ad6f143e43aa
Simple Moving Average (SMA)
Get the simple moving average (SMA) for a ticker symbol over a given time range.
Path parameters
The ticker symbol for which to get simple moving average (SMA) data.
Query parameters
Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.
The size of the aggregate time window.
The window size used to calculate the simple moving average (SMA). i.e. a window size of 10 with daily aggregates would result in a 10 day moving average.
The price in the aggregate which will be used to calculate the simple moving average. i.e. 'close' will result in using close prices to calculate the simple moving average (SMA).
Whether or not to include the aggregates used to calculate this indicator in the response.
The order in which to return the results, ordered by timestamp.
Limit the number of results returned, default is 10 and max is 5000
Range by timestamp.
Range by timestamp.
Range by timestamp.
Range by timestamp.
Response
Simple Moving Average (SMA) data for each period.