---
title: "Technical indicators"
method: GET
path: "/api/v2/quotes/{symbol}/technical-analysis"
tags: ["Finance"]
---

# Technical indicators

`GET /api/v2/quotes/{symbol}/technical-analysis`

Classical technical indicators computed from the symbol's daily OHLCV history: SMA (20/50/200), EMA (12/26), MACD (12-26-9), RSI (14), Bollinger Bands (20, 2), Stochastic Oscillator (14/3), ATR (14), and OBV. All values reference the most recent bar. Two plain-English signals are derived: RSI regime (overbought/oversold/neutral) and trend (bullish if SMA-50 is above SMA-200, bearish otherwise). Uses a 1-year daily history window by default (250+ bars).

## Path parameters

- `symbol` string, required — Security ticker symbol.

## Response `200`

Technical indicators and rule-based signals on the most recent bar.

- EnvelopeTechnicalAnalysisResponseV2
  - `data` TechnicalAnalysisResponseV2, required
    - `symbol` string, required — Security ticker symbol.
    - `as_of` string, nullable — Timestamp of the last bar used (ISO 8601).
    - `bars_analyzed` integer, required — Number of OHLCV bars used in the computation.
    - `close` number, nullable — Last close price.
    - `moving_averages` MovingAveragesV2, required
      - `sma_20` number, nullable — Simple moving average over 20 bars.
      - `sma_50` number, nullable — Simple moving average over 50 bars (null if insufficient history).
      - `sma_200` number, nullable — Simple moving average over 200 bars (null if insufficient history).
      - `ema_12` number, nullable — Exponential moving average with span 12.
      - `ema_26` number, nullable — Exponential moving average with span 26.
    - `macd` MacdV2, required
      - `line` number, nullable — MACD line (EMA-12 minus EMA-26).
      - `signal` number, nullable — Signal line (EMA-9 of MACD line).
      - `histogram` number, nullable — MACD histogram (line minus signal).
    - `rsi_14` number, nullable — Relative Strength Index (14-period) on the last bar, 0-100 scale.
    - `bollinger_bands` BollingerBandsV2, required
      - `upper` number, nullable — Upper band (SMA-20 + 2 standard deviations).
      - `middle` number, nullable — Middle band (SMA-20).
      - `lower` number, nullable — Lower band (SMA-20 - 2 standard deviations).
    - `stochastic_14_3` StochasticV2, required
      - `k` number, nullable — Fast %K stochastic oscillator (14-period).
      - `d` number, nullable — %D line (3-period SMA of %K).
    - `atr_14` number, nullable — Average True Range over 14 bars.
    - `obv` number, nullable — On-Balance Volume cumulative through the last bar.
    - `signals` TechnicalSignalsV2, required
      - `rsi` string, nullable — RSI regime: overbought (>=70), oversold (<=30), or neutral.
      - `trend_50_over_200` string, nullable — Golden/death cross regime: bullish if SMA-50 > SMA-200, bearish otherwise.
  - `meta` SugraMeta, required — Metadata attached to every /api/v1/* response envelope.
    - `endpoint` string, required — Requested endpoint path.
    - `data_time` string, required — ISO 8601 UTC timestamp of the source data, not of the request.
    - `response_time` string, required — ISO 8601 UTC timestamp when this response was produced.
    - `provider` string, required — API name and version.
    - `source` string, nullable — Identifier of the primary upstream source used for this response.
    - `attribution` string, nullable — Human-readable attribution mandated by an upstream source (e.g. a securities regulator or self-regulatory organization). Present only on responses whose source requires the owner and source to be clearly identified. Do not remove or alter it when using the response.
    - `fallback_used` boolean, nullable — True when the primary source failed and a fallback produced the data.
    - `fallback_chain` string[], nullable — Ordered list of sources attempted, in the order they were tried.
    - `cached` boolean, nullable — True when this response was served from the internal cache.
    - `stale` boolean, nullable — True when the cached response was returned after the upstream rate-limited or errored. Clients can use this to detect degraded data.

## Other responses

- `401` — Missing or invalid `x-api-key` header.
- `422` — Validation Error
- `429` — Daily rate limit exceeded. Check `X-RateLimit-Reset` for the next window.
- `503` — Upstream source is temporarily unavailable. Retry after a short delay.

---

[API](https://skmtc.net/sugra/apis/sugra-api.md) · [All operations](https://skmtc.net/sugra/apis/sugra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sugra/sugra-api/versions/4e2740743eb4/schema)
