Technical Indicators
Simple Moving Average (SMA)
Changed onSimple Moving Average over the close price. Optionally accepts a comma-separated list of time_period values (max 5) to compute multiple SMAs in one request — useful for plotting fast / slow MA overlays without parallel calls.
get/api/v1/indicators/sma
Request
- Base URL: https://sugra.ai
- URL: https://sugra.ai/api/v1/indicators/sma
- Auth: API key in header x-api-key
Query parameters
symbolstring required
Ticker symbol (case-insensitive).
Example:AAPL
time_periodstring required
Look-back period, integer (e.g. 14) or comma-separated list (e.g. 5,20,50, max 5).
Example:20
intervalstring
OHLC interval. One of ['15m', '1d', '1h', '1m', '1mo', '1wk', '2m', '30m', '3mo', '5d', '5m', '60m', '90m'].
Example:1d
rangestring nullable
Range string (1d,5d,1mo,3mo,6mo,1y,2y,5y,10y,ytd,max). Auto-selected per interval if omitted.
Example:1y
outputsizeinteger
Number of observations returned per period (1-5000).
Example:30
Response
Successful Response
Example response
{
"data": {
"symbol": "AAPL",
"indicator": "sma",
"interval": "1d",
"outputsize": 30,
"time_period": [
14
],
"source": "sugra_finance"
},
"meta": {
"endpoint": "/api/v1/fred/us/cpi",
"data_time": "2026-04-16T14:30:00Z",
"response_time": "2026-04-16T14:30:12Z",
"provider": "Sugra API v1.0.1",
"data_age_days": 8.532,
"source": "sugra_crypto",
"attribution": "Short interest and Reg SHO daily short volume data is owned by and sourced from FINRA (Financial Industry Regulatory Authority).",
"fallback_chain": [
"sugra_crypto",
"sugra_finance"
],
"stale_since": "2026-09-08T12:00:00Z",
"period": "2026-Q1",
"notes": "the UKMTO report behind these counts is dated 2026-08-21 and is 11 days old"
}
}Changes
- info
added the non-success response with the status
- info
- info
added the optional property
/to the response with the status
- info