Issue in Previous Working Day OHLC value

sachinstlko09
Using the following URL to get the OHLC value:

https://api.kite.trade/quote/ohlc?api_key=XXXXXX&access_token=XXXX&i=NSE:ICICIBANK

But it return wrong previous day OHLC value. Please any one correct it.
  • sujith
    Can you elaborate where it is going wrong?
  • sachinstlko09
    Today is 17 th nov, I want OHLC value of 16 th november 15:15 PM.
    For SBIN (NSE), It returns
    "open":345,"high":346.7,"low":340.1,"close":333.4

    When I referred the chart , the value of SBIN (NSE) at 16 th November 15:15 PM,
    "open":332.70,"high":334.10,"low":332.50,"close":333.95
  • sujith
    getOHLC will return day's data and not minutes candle data.
  • sachinstlko09
    I need exactly previous working day value at 15:15. Please guide me how can I use getOHLC function to get the desired data.
  • sujith
    Whatever value you get in getOHLC is correct, on charts 17th November 2017 candle will have today's close and since markets are not closed, it keeps updating to the last price of the instrument.

    In order to verify you need to look at 16th November 2017 candle and not 17th November candle.
Sign In or Register to comment.