---
title: "Historical prices"
method: GET
path: "/equity/{symbol}/prices"
tags: ["Equities"]
---

# Historical prices

`GET /equity/{symbol}/prices`

Get OHLCV time intervals for a symbol in a specified window. The range can be specified by start and end UNIX timestamps, The interval can be specified using:
- `z`, which can be `d` for day, `h` for hour, `m` for minute, or `s` for second.
- `n`, which is the length of the interval.

For example, to fetch 5 second intervals, you would set `z` to `s` and `n` to `5`. To fetch 15 minute intervals, you would set `z` to `m` and `n` to `15`.

## Path parameters

- `symbol` string, nullable, required

## Query parameters

- `start` integer, nullable — The start timestamp for the chart window. This should be a UNIX timestamp.
- `end` integer, nullable — The start timestamp for the chart window. This should be a UNIX timestamp.
- `z` string, nullable — The interval of the chart window. Can be d, h, m, or s for day, hour, minute, second.
- `n` integer, nullable — The number of intervals to fetch.

## Response `200`

Successful Response

- ResponseModelListTimeInterval
  - `data` TimeInterval[], nullable
    - `date` integer, required — The closing timestamp (*in milliseconds*) of the interval.
    - `open` number, required — The opening price for the interval.
    - `high` number, required — The highest price for the interval.
    - `low` number, required — The lowest price for the interval.
    - `close` number, required — The closing price for the interval.
    - `volume` integer, required — The trading volume for the interval.
  - `message` string, nullable — A message with the response status.
  - `info` union — Additional information or metadata about the response. Varies by response type.
    - object
    - string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/dataglade/apis/dataglade-api.md) · [All operations](https://skmtc.dev/dataglade/apis/dataglade-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dataglade/dataglade-api/revisions/de5c0ca32353/schema)
