Getting Started with Zerodha

2
982

2 COMMENTS

  1. I get this error when I try to login using the above programme:
    when I try to use the URL as mentioned below
    data = kite.generate_session(((str(input(“https://www.XXXXXXX.in/index.php/kite/?action=login&status=success&request_token=NYmgTiezCYw4epV4P0Vl5zjuOlbTnvIQ”)).split(“request_token=”)[1]).split(“&action”))[0],api_secret)

    IndexError: list index out of range

    When I enter the Request Token instead of URL like this:
    data = kite.generate_session(“NYmgTiezCYw4epV4P0Vl5zjuOlbTnvIQ”,api_secret)

    It works fine:

  2. Yes, you’re right.

    Basically the goal is to get the request token from the website. What is implied here is to create a PHP and dig that part out. I will be more elaborate once I improvise it 🙂

LEAVE A REPLY

Please enter your comment!
Please enter your name here