Invalid API credentials

madhusudhan.maddula
Hi,

I'm getting Invalid API credentials error.

below is the url, I'm using...

https://api.kite.trade/instruments/historical/11821314/minute?from=2016-10-28&to=2016-10-28&api_key=ga2jr9cli46err9w&access_token=xxxxxxxxxxxxxxxxxxxxxx

I subscribed to both Kite connect api and historical api add on.

Please help me.
Tagged:
  • Kailash
    Hm, that should work. Could you send me a private message with your live access_token?
  • vishnus
    Hi Madhusudhan,

    I just tried with the same URL and it works fine for me. Can you regenerate access token and try again?
    PS: Access token has a validity of one day only.

    Thanks
  • madhusudhan.maddula
    Hi vishnus,

    I'm using secret key as access token, is it correct?
    If not, please tell me how to generate access token.

    Regards,
    Madhu
  • Kailash
    @madhusudhan.maddula That is not correct. Once you get the request_token, you have to exchange it for an access_token using your secret key and creating a checksum using SHA-256. Please read the documentation where this is explained in detail or look at the several other posts on the forum that discusses this.
Sign In or Register to comment.