How can i get One day before market end time Close Price?

1krishnagupta
Hello,
I want one day before market closing time (15:29:59, or whatever it is) I want at that time close price. so which function should I use for fetching last day End Time Close Price?
Please Help me.
  • SRIJAN
    SRIJAN edited May 2022
    For just previous daily candle close price,fetch ohlc quote today and use the close value. For other days,or intraday data,use historical data api.
  • 1krishnagupta
    1krishnagupta edited May 2022
    @SRIJAN it can fetch last day Close? and for Different Different instrument tokens?
  • SRIJAN
    You have asked similar questions before.
    Spend some time reading the documentation:

    https://kite.trade/docs/connect/v3/
  • 1krishnagupta
    @SRIJAN I think you did not understand my question. I know, I asked before Historical Data Related question, but here my question is different, actually, I want to fetch the last day closing time price, so in historical data, I have to give it a data and time, but assume if last day was Sunday, so I have to calculate Friday date from Monday. then I'll input that into the historical input function which is very lengthy and might be I'll get errors many times. I want only the Last Trading Close Price, I don't care what was the market closing time if it was(15:29:59, 15:20:59) whatever it is. but I just get the Closing time Price. that's it.
  • SRIJAN
    SRIJAN edited May 2022
    You can use ohlc quote and get the close value from it for the previous day closing price, as told in the above comment.
    https://kite.trade/docs/connect/v3/market-quotes/#retrieving-ohlc-quotes
Sign In or Register to comment.