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.
Endpoint Details
HTTP Method
GET
Path
/v1/indicators/sma/{ticker}
Version
v1
Minimum Plan
free
Path Parameters
Parameter
Required
Description
Example
ticker
Required
The stock ticker symbol (e.g., AAPL, MSFT)
AAPL
Query Parameters
Parameter
Type
Required
Description
api_key
string
Required
Your API key for authentication
timestamp
string
Optional
Query by timestamp (YYYY-MM-DD or millisecond timestamp)
timespan
string
Optional
Size of the aggregate time window (minute, hour, day, week, month, quarter, year)
adjusted
boolean
Optional
Whether aggregates are adjusted for splits (default: true)
window
integer
Optional
Window size for the indicator calculation
series_type
string
Optional
Price type to use (close, open, high, low)
limit
integer
Optional
Maximum number of results (default: 10, max: 5000)