Option Close data wrong

rksingh
Hi,
Please see below 'close' data for NIFTY17DEC10300CE. Why its wrong.
How to get correct close data

kite.quote('NFO','NIFTY17DEC10300CE')['ohlc']
Out[53]: {'close': 142.6, 'high': 136.0, 'low': 112.2, 'open': 135.0}
  • sujith
    It seems fine. Can you let us know what is the issue here?
  • rksingh
    How can 'close' value high than 'high' value. Is this previous day's close value ? if yes, how to get current close value...When I ran this query, current close was 120
  • sujith
    This API call will return day's OHLC and not a minute or hour OHLC. Close price is the previous close price.

    If you want close for a particular interval then you need to listen to ticks and generate candles at your end.
Sign In or Register to comment.