"Hey guys, I'm working on a Python script for auto-trading on a cryptocurrency exchange, but I'm struggling to get it to run efficiently. It's getting stuck in an infinite loop due to the API request limits, and I'm not sure how to optimize it. Has anyone else dealt with similar issues or have any advice on how to improve my script?"