---
title: "Simple Moving Average (SMA)"
method: GET
path: "/v1/indicators/sma/{indicesTicker}"
tags: ["indices:aggregates"]
---

# Simple Moving Average (SMA)

`GET /v1/indicators/sma/{indicesTicker}`

Get the simple moving average (SMA) for a ticker symbol over a given time range.

## Path parameters

- `indicesTicker` string, required

## Query parameters

- `timestamp` string
- `timespan` 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'
- `adjusted` boolean
- `window` integer
- `series_type` 'open' | 'high' | 'low' | 'close'
- `expand_underlying` boolean
- `order` 'asc' | 'desc'
- `limit` integer
- `timestamp.gte` string
- `timestamp.gt` string
- `timestamp.lte` string
- `timestamp.lt` string

## Response `200`

Simple Moving Average (SMA) data for each period.

- object
  - `next_url` string — If present, this value can be used to fetch the next page of data.
  - `request_id` string, required — A request id assigned by the server.
  - `results` object, required — The results of the SMA indicator calculation.
    - `underlying` object — The underlying aggregates used.
      - `aggregates` object[] — The array of aggregates used in the calculation of this indicator.
        - `c` number, float, required — The close price for the symbol in the given time period.
        - `h` number, float, required — The highest price for the symbol in the given time period.
        - `l` number, float, required — The lowest price for the symbol in the given time period.
        - `n` integer, required — The number of transactions in the aggregate window.
        - `o` number, float, required — The open price for the symbol in the given time period.
        - `otc` boolean — Whether or not this aggregate is for an OTC ticker. This field will be left off if false.
        - `t` number, float, required — The Unix Msec timestamp for the start of the aggregate window.
        - `v` number, float, required — The trading volume of the symbol in the given time period.
        - `vw` number, float, required — The volume weighted average price.
      - `url` string — The URL which can be used to request the underlying aggregates used in this request.
    - `values` object[] — Timestamp or indicator value.
      - `timestamp` integer — The Unix Msec timestamp from the last aggregate used in this calculation.
      - `value` number, float — The MACD line value, calculated as the difference between the short-term and long-term exponential moving averages (EMAs) based on the periods specified in the request parameters.
  - `status` string, required — The status of this request's response.

---

[API](https://skmtc.net/massive/apis/polygon-api.md) · [All operations](https://skmtc.net/massive/apis/polygon-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/massive/polygon-api/revisions/ad6f143e43aa/schema)
