Historical Data Fetch During market open

Hi,

If the market is open, can i use the historical API for fetching data for current day?

for example, if today is 29th Dec and the market is open. If i give the api a From date as 29 Dec and To date as 29 Dec. Symbol as Nifty Index, Resolution as 5min, and run the script at 1pm. Will the historical API fetch me data for the current date from 9:15 to 1pm ?

Hey @anil.tcq2yay5,

Yes, you can fetch intraday historical data of current date.

i tried doing so with the historical API when the market was open for the current day. The api did not give any results. Can you an example

Let’s say you want to fetch M&M intraday data up to 1:00 PM on the current trading day (e.g., 29th Dec 2025).

You can pass the from and to dates as 29th Dec 2025. The API will return data up to the latest available timestamp, i.e., till 1:00 PM (or the time of the request).

Example payload:

data = {
    "symbol": "NSE:M&M-EQ",
    "resolution": "60",
    "date_format": "1",
    "range_from": "2025-12-29",
    "range_to": "2025-12-29",
    "cont_flag": "1",
    "oi_flag": "1"
}

Thank you. that works.