Hey everyone, it's your friendly neighborhood dev-dad here. Mid-thirties, full-time engineer by day, battling AI trading bots by night (weekends, really).

Today, I want to share a subtle but potentially catastrophic bug I found in my bot. Seriously glad I caught this before deploying with real money. The symptom: Discord notifications for order fills just weren't arriving. The culprit: I forgot to load my .env variables consistently across multiple Python scripts.

This is a super common pitfall when you're linking several Python scripts in a personal project, and it can be a real headache.

What Happened: A "Silent Failure" Uncovered by a DRY_RUN

Last weekend, I was running my usual DRY_RUN tests for my FX bot. My bot's logic is split into two main parts: planner.py, which strategizes trades, and executor.py, which actually sends orders to the exchange.