TO GET REAL TIME OPEN INTEREST AND LTP FOR OPTIONS CONTRACTS

arun8m
I am trying to get Open Interest and LTP of option contracts using
instruments = kite.instruments("NFO")
But there is OI field and LTP is zero for all contracts.
Kindly guide to get real time OI and LTP
  • Sravanthi_bh
    Please note that the instrument master file you are fetching is generated early in the morning after the BOD run and is not intended to serve as a real-time market data source. You may refer to the API documentation to fetch quotes.
  • arun8m
    def on_ticks(ws, ticks):

    logging.debug("Ticks: {}".format(ticks))
    def on_connect(ws, response):
    # Subscribe to a list of instrument_tokens (RELIANCE Futures)
    ws.subscribe([14721794])

    In the above code I am getting price and order related details. Kindly guide me how to get Open Chain details.
  • sujith
    Kite Connect doesn't offer option chain out of the box. You will have to create option chain at your end. You may refer to the library which might help you in that.
Sign In or Register to comment.