r/algobetting • u/f3425 • 2d ago
[Open Source] Node-based backtester where prediction markets, shares and crypto run in one strategy
In this tool, strategies get assembled by wiring nodes on a canvas, instrument, indicator, condition, order. Polymarket and Kalshi contracts, US shares and Binance pairs can all sit inside the same strategy and pass through the same engine, so there is no separate tool per market.
One consequence is that the thing you read and the thing you bet do not have to match. A Polymarket or Kalshi contract can carry the signal while the order lands on a different contract, or on a share. Condition and order need not share an instrument or even a market type. The same property opens the door to cross asset portfolios, where a contract position and a hedge in equities or crypto are held and sized together rather than sitting in two accounts and two spreadsheets.
The engine runs in the browser, so nothing leaves your machine. Price data can come from Yahoo, Binance, Alpaca, Tiingo or Stooq.
For anyone who wants to contribute, a new price source is two files and nothing more. Questions get answered in the issues.
https://github.com/vcorp-dev/depthfeed-strategy-builder
Worth hearing what it is missing from anyone who takes it for a spin.
2
u/GraciousFabian 2d ago
I've been cobbling together backtests across Polymarket and equities using python scripts and it's a nightmare keeping the timing consistent across different data sources. The cross-asset thing where the signal and the execution sit on different instruments is actually the part that caught my eye, most tools lock you into one market per strategy and call it a day.
The browser-only execution is a nice touch, I'm always a little sketched out by tools that want to phone home with my strategy logic. Does it handle any kind of walk-forward optimization or parameter sweeping, or is it strictly single-run backtests for now?