How do I fix a sniper bot that stops executing after a few trades?
Been banging my head against the wall with this little sniper bot I built. It runs fine at first, nails a few trades, then just… chills. No errors, no logs, nothing—like it decided to take a lunch break and never came back. I’m not sure if it’s a memory leak, some timeout I forgot about, or maybe I’m just missing something obvious. I’ve tweaked settings, restarted it a million times, even swapped networks. Same deal every time. Kinda driving me nuts at this point. Anyone else run into this or have ideas on what I should dig into next?
If it stops silently, start by adding detailed logging around trade execution and API responses — most “no error” issues are actually unhandled exceptions or rate-limit blocks. Check for API timeouts, nonce errors, memory usage spikes, and whether your bot is hitting exchange rate limits after a few trades. Also verify any async loops or WebSocket connections aren’t quietly disconnecting without a reconnect handler.
Could be a stuck async call or your listener hitting a silent failure. I had something similar where the bot just froze mid-run because a non-critical socket timeout wasn’t handled. Might also be garbage collection kicking in weirdly if you're holding too many references. If you haven’t already, check out a telegram trading bot article I found—it helped me spot config quirks and pointed me to better event handling tricks.