CHANGING BACK TO OLDER VERSION

Tusshar18
HOW TO MOVE BACK TO OLDER VERSION OF API?
  • rakeshr
    Yes, you can install any specific version, depending on the language client lib. For python, you can check this.
    PS: We don't recommend having previous versions as many functionalities would be no more supported.
    Can you let us know the reason behind reverting back to an older version ?
  • Tusshar18
    The codes with the current version are not working
  • Tusshar18
    Should I update my python version?
    will it help in running my codes?
  • rakeshr
    The codes with the current version are not working
    Can you let us know, the exact error it's throwing? Maybe paste the complete error traceback here.
    Should I update my python version?
    Our python package supports the python version higher than 2.7. You can check the setup requirements here.
  • Tusshar18
    def candle_close(scrip_token, sl_time):
    global cookies, today
    url = 'https://kite.zerodha.com/oms/instruments/historical/'+ str(scrip_token) +'/minute?user_id=' + str(user_id) + '&oi=1&from=' + today + '&to=' + today + '&ciqrandom=1597949155770'
    headers = {
    'authorization': cookies
    }
    x = requests.get(url, headers=headers)
    for i in range(len(x.json()['data']['candles'])):
    if x.json()['data']['candles'][i][0][11:16] == sl_time:
    candle_minute_close = x.json()['data']['candles'][i][4]
    return candle_minute_close
  • Tusshar18
    Getting this for past 1 week, earlier the codes were running fine
  • sujith
    You need to subscribe for API. You can go through documentation here.
  • Tusshar18
    I already have, still its showing this
  • sujith
    You will have to use the proper endpoints as mentioned in the documentation.
Sign In or Register to comment.