Template for a Polymarket trading bot execution + monitoring layer (no strategy included).
Includes CLOB order utilities, position tracking (on-chain ERC1155 preferred), scheduled YES+NO merge, and a terminal TUI.
npm install
npm run dev -- --config config/bot.yamlLIVE mode:
- Set
mode: LIVEinconfig/bot.yaml - Copy
config/example.envto.envand setPOLY_PRIVATE_KEY=0x... - Run the same command again
config/bot.yaml: runtime configexample.env: env template (private key, RPC, optional CLOB API creds)
src/index.ts: main loop (market resolve, TUI, feeds, book cache, scheduled merge)src/execution/: execution layer (Executor)src/market/: market resolve + orderbook cachingsrc/price/: price feeds and fallback logicsrc/onchain/: on-chain positions + proxy wallet merge/redeemsrc/tui/: terminal UIsrc/tools/: CLI utilities