---
title: "Daily OHLCV price history (web app charts only)"
method: GET
path: "/api/price-history"
tags: ["Market Data"]
---

# Daily OHLCV price history (web app charts only)

`GET /api/price-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/price-history`
- Auth: none declared

Historical price 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

- `ticker` string, nullable: Ticker symbol
- `days` integer: Calendar days of history to return (1-10950, ~30yr)
- `points` integer: Max chart points after LTTB downsampling (3-10000)

## Response `200`

Successful Response

- PriceHistoryResponse: `GET /api/price-history` response. F4 schema-tightening (2026-04-30): `ticker` and `history` are REQUIRED. The handler echoes the requested ticker on every 200 path (success, fallback, exception) and `history` is always a list (possibly empty). 400 / 500 branches return ErrorResponse via the responses dict, so they don't conflict. Frontend chart-renderer reads both fields without null-checking; a missing field would NPE the chart panel.
  - `ticker` string, required
  - `history` PriceHistoryPoint[], required
    - `date` string, nullable
    - `open` number, nullable
    - `high` number, nullable
    - `low` number, nullable
    - `close` number, nullable
    - `volume` integer, nullable
  - `interval` string, nullable
  - `count` integer, nullable
  - `total_points` integer, nullable
  - `downsampled` boolean, nullable

## Other responses

- `400`: Bad Request
- `410`: API-key and SDK callers: price data is not redistributed
- `422`: Validation Error
- `500`: Internal Server 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)
