realfishsam/prediction-market-arbitrage-bot — reverse-engineered prompt

Reverse engineered prompt

Build me a simple JavaScript bot that watches the same prediction market on Polymarket and Kalshi and looks for synthetic arbitrage. I want it to compare matching outcomes even if the names are a little different, figure out whether buying YES on one side and NO on the other creates a profit, and then pick the best opportunity. It should poll every so often, show clear console logs about what it found, and support both a dry run mode and real trading mode.

Please make it easy to set up with a config file where I can paste the Polymarket event URL, the Kalshi market URL, the polling interval, minimum profit in cents, and whether I want YOLO or CONSERVATIVE sizing. If it is in conservative mode, use a fixed trade amount. If it is in YOLO mode, use available capital. I also want basic exit logic so it can close when the spread disappears or rotate into a better opportunity. Add an env template for API credentials. Look up current docs online if you need to.

Want more depth? Deep Reverse