Simple Moving Average (SMA)

GET
/v1/indicators/sma/{fxTicker}

Retrieve the Simple Moving Average (SMA) for a specified ticker over a defined time range. The SMA calculates the average price across a set number of periods, smoothing price fluctuations to reveal underlying trends and potential signals.

Use Cases: Trend analysis, trading signal generation (e.g., SMA crossovers), identifying support/resistance, and refining entry/exit timing.

Path Parameters
fxTicker
string
required
The ticker symbol for which to get simple moving average (SMA) 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.
adjusted
boolean
Whether or not the aggregates used to calculate the simple moving average are adjusted for splits. By default, aggregates are adjusted. Set this to false to get results that are NOT adjusted for splits.
window
integer
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.
series_type
enum (string)
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).
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?