Skip to content

Historical Data

This API gives you historical candle data for the desired scrip across segments & exchange. This data is presented in the form of a candle and gives you timestamp, open, high, low, close & volume.

Method Api Detail
POST /charts/history Get OHLC for daily candle

Daily Historical Data

Retrieve OHLC & Volume of daily candle for desired instrument. The data for any scrip is available back upto the date of its inception.

Request Structure

{
    "symbol": "13"
    "resolution": "1D"
    "from": "1667606400"
    "to": "1707350400"
    "exchange": "NSE"
    "user": "<User_ID>""
    "countback": "329"
}

Parameters

Field Field Type Description
symbol string Symbol of the instrument.
resolution string Resolution of the data.
from string Start timestamp of the desired range.
to string End timestamp of the desired range.
exchange string Name of the exchange where the symbol is traded.
user string Identifier of the user making the request.
countback string Number of data points to retrieve.

Response Structure

{
    "c": [

        20598.6,

        21018.45,

        21163.45,

        21257.9,

        21256.1,

        21299.95

    ],

    "s": "ok",

    "t": [

        1701388800,

        1701648000,

        1701734400,

        1701820800,

        1701907200,

        1701993600

    ],

    "v": [

        20679.59,

        43753.73,

        42901.32,

        37985.45,

        25371.45,

        35994.24

    ],

    "nextTime": 0,

    "h": [

        20637.2,

        21045.9,

        21180.0,

        21273.75,

        21270.0,

        21330.0,
    ],

    "l": [

        20430.45,

        20835.8,

        21023.1,

        21170.0,

        21176.95,

        21182.0,

    ],

    "iv": 0.0,

    "o": [

        20479.85,

        20851.1,

        21084.5,

        21233.15,

        21250.0,

gi
        21264.05,
    ]
}

Parameters

Field Type Description
c List Closing prices
s String Status indicator
t List Timestamps
v List Volumes
h List High values
l List Low values
iv Float Initial value
o List Opening prices

Intraday Historical Data

Retrieve OHLC & Volume of 1 minute candle for desired instrument for current day. This data available for all segments including futures & options.

1m Chart

Response Structure

{
    "c": [
        888.1,
        894.2,
        891.1,
        893.0,
        893.5,
        893.1,
        898.0,
        895.3,
        896.5,
        897.0,
           ],
    "s": "ok",
    "t": [
        1707809459,
        1707809759,
        1707809939,
        1707810479,
        1707810539,
        1707810839,
        1707811139,
        1707812579,
        1707813239,
        1707814319,

    ],
    "v": [
        1.0,
        1.0,
        1.0,
        2.0,
        1.0,
        2.0,
        1.0,
        1.0,
        1.0,
        5.0,
        1.0,
        4.0,
        16.0,
        ],
    "h": [
        888.1,
        894.2,
        891.1,
        893.0,
        893.5,
        893.8,
        898.0,
        895.3,
        896.5,
        897.0,
        897.0,
        895.5,
        897.5,
        898.5,
         ],
    "l": [
        888.1,
        894.2,
        891.1,
        893.0,
        893.5,
        893.1,
        898.0,
        895.3,
        896.5,
        897.0,
        897.0,
            ],
    "iv": 0.0,
    "o": [
        888.1,
        894.2,
        891.1,
        893.0,
        893.5,
        893.8,
        898.0,
        895.3,
        896.5,
        897.0,
        897.0,
        895.5,
            ]
}

Parameters

Field Type Description
c List Closing prices
s String Status indicator
t List Timestamps
v List Volumes
h List High values
l List Low values
iv Float Initial value
o List Opening prices