
I open-sourced my entire SPY 0DTE options bot — code, strategy, the full manual, and a live dashboard so you don't have to take my word for anything
Some background first: I've spent 3+ years building and running automated futures strategies on the IBKR API, and honestly, none of this would exist without that scar tissue. Alpaca's options API is a different beast (in some ways easier, in some ways much weirder), but knowing what a live bot does to you at 3:25 PM on a bad day is transferable knowledge.
So — the whole thing is on GitHub now. Not a framework with the good parts removed — the actual entry logic I run every morning, all the parameters, the risk management, and the 22-page strategy manual with every session post-mortem, losing days included.
Code + manual: github.com/milgar7969/alpaca-options-framework
Live results: milgar7969.github.io/spy-0dte-dashboard — updates itself daily after the close, green or red
It's paper trading, last 30 days are green, May was rough, and the dashboard will tell on me either way.
Half the value is honestly the README and the pdf manual, which document every Alpaca options landmine I stepped on: bracket orders rejected, null Greeks on 0DTE, and cancelled buy orders that fill anyway (ask me how I know).
Credit where it's due: this is a human + AI collaboration. I built and run this with Claude (Anthropic's model) as my pair programmer — it wrote a lot of the code, caught bugs in the logs I'd have missed, and talked me out of some bad ideas.
The strategy calls, the market experience, and the stubbornness are mine. I'd rather be upfront about that than have the haters leave negative comments.
Clone it, break it, tell me what I did right and what I got wrong.
p.s. there are a lot of knowledge, from my years of experience I am sharing for free, so please be nice ;-)