---
title: "Api Indicator History"
method: GET
path: "/api/indicator-history"
tags: ["Market Data"]
---

# Api Indicator History

`GET /api/indicator-history`

## Request

- Base URL: `https://www.oxfordledge.com` (the document declares no server; this is the origin it was published from)
- URL: `https://www.oxfordledge.com/api/indicator-history`
- Auth: none declared

Price/OHLC chart data for the Oxford Ledge web app's charts, with LTTB downsampling. Not available to API-key or SDK callers (410 Gone): Oxford Ledge shows vendor prices in its web app but does not redistribute them.

## Query parameters

- `symbol` string
- `period` string
- `points` string, nullable

## Response `200`

Successful Response

- IndicatorHistoryResponse: Price/OHLC chart data for a ticker or indicator symbol. Returned by GET /api/indicator-history. Uses LTTB downsampling when the raw point count exceeds the requested `points` target. F4 schema-tightening (2026-04-30): `symbol`, `period`, `prices`, `dates` REQUIRED. Both the 200 success path and the 500 fallback path include all four fields (the fallback returns empty `prices=[]` and `dates=[]` but the keys are always present). The 400 branch returns ErrorResponse via api_error(). Frontend chart-renderer (`bundle-core-views.js:_indChart`) reads `data.prices` and `data.dates` to drive the line/OHLC chart; `data.symbol` echoes the requested symbol for the panel header. Highest-traffic chart endpoint — every period change fires a request.
  - `symbol` string, required
  - `period` string, required
  - `prices` number[], required
  - `dates` string[], required
  - `volumes` integer[], nullable
  - `ohlc` OHLCBar[], nullable
    - `o` number, nullable
    - `h` number, nullable
    - `l` number, nullable
    - `c` number, nullable
  - `source` string, nullable
  - `total_points` integer, nullable
  - `downsampled` boolean, nullable
  - `error` string, nullable

## Other responses

- `410`: API-key and SDK callers: price data is not redistributed
- `422`: Validation Error

---

[API](https://skmtc.dev/oxfordledge/apis/oxford-ledge-api.md) · [All operations](https://skmtc.dev/oxfordledge/apis/oxford-ledge-api/llms.txt) · [OpenAPI document](https://skmtc.dev/oxfordledge/apis/oxford-ledge-api/revisions/e832a1260f0b?raw)
