polymarket-arbitrage (Merton jump-diffusion)
github.com/nalimmm/polymarket-arbitragePython bot that prices Polymarket hourly BTC Up/Down markets as digital options using Merton jump-diffusion and EWMA volatility, trading edges with quarter Kelly.
Digital-option pricing (Merton jump-diffusion, EWMA vol with MLE-fit lambda), trade edges vs ask surviving a +/-20% vol stress, quarter-Kelly sizing
At 43KB this is the smallest repo worth flagging in the batch, but it punches above its weight methodologically. It prices Polymarket hourly BTC Up/Down markets as digital options, which is the correct framing: an Up/Down binary is essentially a digital call/put on the underlying, so fair value depends on the risk-neutral probability of finishing above/below the strike. The twist is that instead of plain Black-Scholes it uses Merton jump-diffusion (which captures crypto's fat tails and gap risk better than lognormal assumptions) and EWMA volatility with an MLE-fitted jump intensity lambda. Edges are only taken if they survive a +/-20% volatility stress test, and sizing is quarter Kelly — both signs of a developer who understands that overconfident sizing is how paper edges become real losses. There are 21 unit tests, paper trading only, and no live execution, which lowers risk for anyone cloning it. No malware indicators: tiny file, no clone fingerprint, clean account, coherent description. The weakness is scale — 43KB means limited market coverage, no portfolio construction, and you'd need to build your own execution and monitoring layer. Who should use it: quant-learners and researchers who want a clean, well-tested reference for digital-option pricing on prediction markets and a disciplined edge/trade-filter pattern to adapt. Not a ready-to-deploy system. Verdict: worth cloning as a study and foundation piece.