OI in historical data?

tanmay
I am trying to get historical data with open interest.

records = kite.historical_data('10869762',a, current_date ,'minute', oi = 1)
Here 'a' an 'current_date' are variable.

It is output of OHLC & volume. But OI is not included in this.
  • sujith
    Can you paste the complete request and response here by running in debug mode?
  • tanmay


    Please have a look Sujith.
  • rakeshr
    @tanmay
    Missing oi field fix has been merged.You can update kiteconnect using pip by below command and then check the historical data field:
    pip install kiteconnect --upgrade
  • tanmay
    tanmay edited April 2020
    @rakeshr

    Still having the same issue and hence same output as above. Now my kite connect version is 3.8.2, is that correct ?
  • tanmay
    Please help me out
  • tanmay
    Is it some sort of bug or what ? Why i am not able to access OI ?
  • rakeshr
    @tanmay
    Can you uninstall the previous version of kiteconnect using pip uninstall kiteconnect and install updated version using pip install kiteconnect --upgrade?
    Updated version should resolve this.If still facing missing 'oi' field.
    Paste complete response of pip show kiteconnect hete.
  • tanmay
    still facing the issue.


  • rakeshr
    @tanmay
    Absolutely working fine for us. It seems some issue with your setup.
    Can you try fresh installing kiteconnect python client inside virtual env and then request historical data for OI?
Sign In or Register to comment.