ShinyaTomitsuka/arbitrage-trading-bot — reverse-engineered prompt
Reverse engineered prompt
Build me a TypeScript trading bot for Polymarket crypto Up or Down prediction markets. I want it to run from the command line, use my private key and funded wallet from an env file, connect to the live Polymarket order book, find the current BTC, ETH, SOL, or XRP market for the time window I choose, then keep checking prices about once per second.
It should use a simple config file where I can choose the coin, market length, trade size, retry count, and which strategy to run. Include one mode that only exits existing positions, and another mode that can enter a side, exit based on price movement or time, and optionally swap to the opposite side in an emergency.
Please make it show clear live logs with the active market, prices, balance, current position, and whether an order is running. This is for real trading, not paper trading, so handle errors carefully and don’t print secrets. Look up current Polymarket docs online if needed.
Want more depth? Deep Reverse