Historical Data
Note
The BASE URL, Endpoint, and Payload JSON key values are case-sensitive. Please use the format which we have given in the documentation.
- Only Day and Minute data will be available. Other resolutions can be calculated on their own, based user preferences using these resolutions.
- Historical data API will be available from 5:30 PM (evening) to 8 AM (Next day morning) on weekdays (Monday to Friday). Historical data will not be available during market hours
- Historical data API will be available fully during weekends and holidays.
- For NSE segment, 2 years of historical data will be provided.
- For NFO, CDS and MCX segments, current expiry data will be provided.
- BSE, BCD and BFO Chart data will be added later.
| Method | API's |
|---|---|
| Post | {{BASE_URL}}/open-api/od/ChartAPIService/api/chart/history |
Request Structure
EQUITY & DERIVATIVES
{
"token": "212",
"resolution": "D",
"from": "1786602600000",
"to": "1786948200000",
"exchange": "NSE"
}
INDICES
{
"token": "26000",
"resolution": "D",
"from": "1786602600000",
"to": "1786948200000",
"exchange": "NSE::index"
}
Input Structure
| Field | TYPE | Description |
|---|---|---|
| token | String | Get the tokens from Contract master files or API |
| resolution | String | Resolutions should be 1 (One minute data) or D (Day Data) |
| from | String | From Time in milliseconds. It's UNIX timestamp in IST. Users can get the dates converted into UNIX timestamp using any online resources like currentmillis.com. For language-specific implementations like JavaScript, Python, Java, etc., check currentmillis.com/#methods |
| to | String | To Time in Milliseconds. Same as above |
| exchange | String | Exchange segment. Part of contract master file. Right now, only NSE, NFO, CDS, and MCX are supported |
Response Structure
{
"stat": "Ok",
"result": [
{
"volume": 0.0,
"high": 23727.45,
"low": 23675.25,
"time": "2026-05-19 09:15:59",
"close": 23715.65,
"open": 23675.3
},
{
"volume": 0.0,
"high": 23727.95,
"low": 23693.6,
"time": "2026-05-19 09:16:59",
"close": 23727.4,
"open": 23716.9
},
{
"volume": 0.0,
"high": 23734.3,
"low": 23698.3,
"time": "2026-05-19 09:17:59",
"close": 23731.5,
"open": 23723.4
}
]
}
Success Response¶
| Field | TYPE | Description |
|---|---|---|
| stat | String | Ok |
| result | String | JSON Array Containing JSON Object key value pairs of open, high, low, close, volume, and time. Open: Open price High: High price Low: Low price Close: Close price Volume: Trade volume Time: Data captured time (YYYY-MM-DD HH:MM:SS) |
Error Response¶
| Field | TYPE | Description |
|---|---|---|
| stat | String | Not_Ok |
| emsg | String | Data not available at market time. Please try after market hours or Session Expired |