---
title: "Get Historical Prices"
method: GET
path: "/price/historical-prices"
---

# Get Historical Prices

`GET /price/historical-prices`

Get historical prices for a given symbol and date period. Uses prices access token.

Multiple compression levels can be specified namely 1MIN | 5MIN | 30MIN | 1HOUR | DAILY | WEEKLY | MONTHLY | RANGE.

RANGE gives a single OHLC price record for the entire date range.

When compression is 1MIN,5MIN,30MIN,1HOUR the close price for the last compression interval may not be a complete interval. The close price will be the price known at the end of incomplete last interval.
_Example:_ If 15 MIN compression is chosen if current clock time is 15:06:43 then for the last interval 15:00 to 15:15 the close price returned will be as of 15:06:43.

###### Effect of Compression
If compression is 5MIN, the date period is broken up into 5 minute intervals and open, high, low, close prices are provided corresponding to the 5 minute intervals.

###### History availability for different compression levels
1MIN,5MIN,30MIN,1HOUR - Data upto last 60 calendar days will be available.
DAILY,WEEKLY,MONTHLY,RANGE - Data upto last 3 years will be available.

_Note:_ All prices are 15 minutes delayed as compared to market time. It has an effect for compression levels less than DAILY.

## Query parameters

- `symbol` string, required
- `startDate` string, date, required
- `endDate` string, date, required
- `compression` '1MIN' | '5MIN' | '30MIN' | '1HOUR' | 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'RANGE'

## Headers

- `Authorization` string

## Response `200`

200

- object
  - `code` integer
  - `message` string
  - `data` object[]
    - `symbol` string
    - `compression` string
    - `dataStartDate` string
    - `dataEndDate` string
    - `priceRecordHeader` string[]
    - `priceHistory` string[]

## Other responses

- `401` — 401

---

[API](https://skmtc.net/stockal/apis/uat-client-api-v2.md) · [All operations](https://skmtc.net/stockal/apis/uat-client-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stockal/uat-client-api-v2/versions/08e36bbbd3be/schema)
