Forums

Pybit API

Hi, I'm trying to execute a trading bot on Bybit Testnet, but I receive the following error message:

'You have breached the ip rate limit. (ErrCode: 403) (ErrTime: 08:35:28).'

The same script works perfectly on my local machine. Is pybit API on the white list? Is the preceding error due to other issues? Thanks in advance for you help!

It sounds like the API you are trying to reach is imposing a IP-based rate limit, and either you are making too many calls to it and are hitting that limit, or someone else on the same machine inside PythonAnywhere is doing that. Unfortunately there's nothing we can do about that; broad IP-based rate limits (without limitations to restrict them to apply to accounts/API credentials separately) will generally cause problems when you're running code on a shared service like PythonAnywhere.