2020-10-16 09:51:58,766 - ERROR - get_positions():258- Too many requests

XS8910
2020-10-16 09:51:58,766 - ERROR - zerodha_util.py:get_positions():258- Too many requests
  • rakeshr
    @XS8910
    Which API request is throwing 429(too many requests)? Complete Position fetch, others
    Can you paste the complete stack trace here?
  • XS8910
    its working now.....not sure why there was a issue
  • rakeshr
    We don't have any get_positions method in our python client. To fetch complete positions, you need to use positions() method, check the documentation here.
    Also, it's throwing None, not 429 as mentioned above. None might be because of no positions.
  • XS8910
    ok now...Thanks

    File "", line 1, in
    print(kite.positions())

    AttributeError: 'NoneType' object has no attribute 'positions'
  • rakeshr
    AttributeError: 'NoneType' object has no attribute 'positions'
    You don't seem to be assigning kite variable before calling it for kite.positions(). You can check an basic python example here and also have look at FAQs.
  • XS8910
    Thank you
This discussion has been closed.