Fetch All time Low and High for a stock with date

I want to fetch All time low and all time high of a stock along with when did they hit that. I think there is OHLC but that needs a interval which will change from one stock to another.

Hi @SAHIL_31325664
You’re looking to identify the absolute lowest and highest price a stock has ever reached, along with the timestamps when those levels were hit right?

While the existing APIs (Get Historical Candle Data, Get Intra Day Candle Data, Get Market Quote Ohlc) primarily provide OHLC data at specific intervals, they don’t directly give you the absolute lowest or highest price across all time.

However, you can achieve this by combining the Get Historical Candle Data API. Here’s how you can approach it:

  1. Use Get Historical Candle Data with a wide range of intervals: You’ll need to use the Get Historical Candle Data API and specify a very wide range of timeframes – ideally, starting from the earliest available historical data for the stock. The default timeframes are:

    • 1-minute
    • 30-minute
    • Daily
    • Weekly
    • Monthly
  2. Iterate through the data: The API will return a series of OHLC candles. You’ll need to process this data to find the lowest and highest closing prices (close) across all the returned candles.

  3. Record Timestamps: Along with the lowest and highest prices, you’ll also want to record the timestamps (start_time) of when those levels were reached.