MrFadiAi/Polymarket-bot — reverse-engineered prompt
Reverse engineered prompt
Build me a TypeScript Polymarket trading bot with a simple local web dashboard. It should connect to a user’s Polymarket wallet using a private key from a .env file, start in dry run mode by default, and let the user switch between simulation and live trading only when they choose.
The bot should support four trading strategies, including arbitrage, dip arbitrage, and smart trader following, with the ability to turn strategies on and off from the dashboard. The dashboard should show live mode status, USDC and MATIC balances, session profit and loss, open positions, trade activity, and clear risk warnings.
Please add strong safety controls. I want daily, monthly, drawdown, and total loss limits, dynamic position sizing that gets smaller after losses, minimum trade sizing where needed, gas fee awareness, emergency stop, and a panic sell button. Make it beginner friendly with a sample env file, clear setup instructions, and safe defaults like dry run true and small capital.
Look up current Polymarket docs online if you need to.
Want more depth? Deep Reverse