Getting "close" Exception for historical data

soham
Hello all,
I have been using the Python client for last 2 months now.
As of 11:15 pm on 4th January 2018, all my programs are getting a "close" exception for all stock historical data.

I'm also getting a "['high' 'low' 'close'] not in index" Exception for some Historical data.
I've tried getting the access_token again and restarting the machine also.

Is anyone else facing this?
  • soham
    *As of 1:15 pm on 4th January 2018
  • sujith
    Hi,
    Can you give us error message of the response and the params you are sending?
  • soham
    Hi Sujith,
    I'm using the code below:

    from_date = "2017-11-29"
    to_date = "2018-01-04"
    interval = "day"

    def get_historical_data(instrument_token, timeinterval=interval, fromdate=from_date, todate=to_date):
    return kite.historical(instrument_token, fromdate, todate, timeinterval)

    I'm getting the instrument tokens from a csv file containing instrument tokens and corresponding instrument names.
    the exception i'm getting is 'close' for all instruments.


  • tonystark
    Try removing that try-catch block and use the debugger to figure out where exactly this exception happens. Also 'close' doesn't seem to be a proper exception message, it must be some custom error message.
  • rohit
    Facing the same problem here at 1:03 PM today - where I got an InputException. Not able to exactly zero down on the stock exactly right now. If it happens again, will try and figure out what raised it.
Sign In or Register to comment.