fluodigital/polymarket-arb-bot — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a production ready Polymarket arbitrage bot that starts safely in paper trading mode and only goes live if I deliberately flip all required safety switches.

It should discover markets, pull real order books, validate the market data, detect possible arbitrage opportunities, and either simulate trades or place real orders depending on the mode. I want strong risk controls, exposure limits, emergency kill switches, and clear diagnostics so I can trust what it’s doing before risking money.

Please include a clean operator dashboard with live updates, equity chart, cashflow view, strategy signals, positions, order tape, alerts, and health status. Add debug pages or endpoints for execution mode, worker cycles, market data truth, book validation, ghost book issues, risk state, and dashboard integrity.

Use TypeScript, keep the setup simple with environment variables, database migrations, tests, linting, Docker support, and Fly.io deployment through GitHub Actions. Make the README explain how to run it locally, deploy it, stay in paper mode, and safely arm live mode. Look up current Polymarket CLOB docs if needed.

Want more depth? Deep Reverse