---
title: "Beta vs Benchmark (BETA)"
method: GET
path: "/api/v1/indicators/beta"
tags: ["Technical Indicators"]
---

# Beta vs Benchmark (BETA)

`GET /api/v1/indicators/beta`

Rolling beta of `symbol` vs `benchmark` (default SPY). BETA = cov(sym_returns, bench_returns) / var(bench_returns). Beta=1 = moves with benchmark, >1 = amplifies, <1 = damps, negative = inverse. Computed on log returns over `time_period` bars.

## Query parameters

- `symbol` string, required
- `benchmark` string — Benchmark ticker; default SPY (S&P 500 ETF).
- `time_period` string, required
- `interval` string
- `range` string, nullable
- `outputsize` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `401` — Missing or invalid `x-api-key` header. JSON body with a stable `code` distinguishing `missing_api_key` (no header sent) from `invalid_api_key` (header sent, key not accepted); any other 401 source carries the generic `unauthorized` with its detail as `reason`. Plus `hint`. `plan` is always null on 401 - an unauthenticated request has no plan; quota exhaustion is 429, not 401.
- `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/d3e3d9c28132/schema)
