Response [403] Error on requests.get to get historical data

mkhushwali
mkhushwali edited March 2018 in Python client
This is the code I used:

import requests
response = requests.get("https://api.kite.trade/instruments/historical/5633/minute?from=2017-12-28&to=2018-01-01&api_key=xxx&access_token=xxxx")
print (response)





  • mkhushwali
    now,its showing [200] as output of print (response)
  • sujith
    @mkhushwali,
    It seems like you have not subscribed to historical data. You can go to developers console and subscribe to the same. Please don't post your api key and other session tokens on public threads. You can private message if you are posting session tokens.
  • mkhushwali
    mkhushwali edited March 2018
    I have subscribed to historical data. Result is 'Response [200]' only.
  • sujith
    You need to re-login after you subscribe to the historical data.
  • mkhushwali
    I have done that several times. Still same result.Its been 7 days since subscription I am getting worried now.
  • sujith
    Can you private message your api_key?
  • sujith
    Make sure you are using Kite Connect 3 APIs? Are you using pykiteconnect?
Sign In or Register to comment.