Skip to content

polydex4/High-Probability-Trading-Bot-Polymarket

Repository files navigation

Polymarket High Probability Trading Bot

Automated Polymarket trading with a real-time dashboard — scan live markets, dry-run with paper money, then switch to live bets when you're ready.

Dashboard demo


Strategy inspiration

This bot implements a high-probability + crypto compounding approach inspired by successful Polymarket traders. I studied and adapted patterns from these profiles:

Trader Profile
@spicybrwny polymarket.com/@spicybrwny
@abdoulay polymarket.com/@abdoulay
@sharky6999 polymarket.com/@sharky6999

These traders focus on high-probability outcomes near resolution — buying strong positions at $0.90–$0.97 and letting time + certainty work in their favor. This bot automates that workflow with configurable rules and a clean dashboard.


Why this bot?

Edge What it means for you
Fully customizable Price bands, position sizing, scan interval, assets, and strategy toggles — all from Settings
Built for profitability Two complementary strategies: High Probability (7–20 day events) + Crypto Compounding (BTC/ETH/SOL windows)
Easy to run Pure Next.js — one npm install, one .env, one npm run dev
Live market data in dry run Paper trades against real Polymarket prices — test before you risk capital
Live mode when ready Flip to Live in Settings; real CLOB orders when wallet credentials are configured
Real-time dashboard Portfolio, P&L, opportunities, and trade log streamed live via SSE

Trading modes

Mode Data Execution
Dry Run (default) Live Polymarket Gamma + CLOB prices Simulated paper trades — no wallet needed
Live Same live feed Real USDC bets via @polymarket/clob-client

Start in Dry Run to validate the strategy. Switch to Live only after you're satisfied with paper results and have funded your Polymarket wallet.


Quick start

1. Install dependencies

cd polymarket-late-certainty-trading-bot
npm install

2. Configure environment

cp .env.example .env

Edit .env:

# Default mode: dry_run (paper) or live (real bets)
TRADING_MODE=dry_run

# Starting paper balance for dry run
DEMO_BALANCE=10000

# Polymarket API (defaults are fine)
GAMMA_API_URL=https://gamma-api.polymarket.com
CLOB_API_URL=https://clob.polymarket.com

For live trading, uncomment and fill in:

PRIVATE_KEY=0x...
POLY_API_KEY=
POLY_API_SECRET=
POLY_API_PASSPHRASE=
POLYMARKET_FUNDER=0x...
SIGNATURE_TYPE=2

3. Run the dashboard

npm run dev

Open http://localhost:3000 → click Start Bot in the sidebar.


Dashboard

Page Description
Overview Portfolio, P&L, allocation, all opportunities
High Probability Event markets nearing resolution ($0.92–$0.97 band)
Crypto Compounding Live BTC / ETH / SOL up-down windows
Settings Trading mode, price bands, sizing, scan interval

Strategy defaults

High Probability

  • Price band: $0.92 – $0.97
  • Days to resolution: 7 – 20
  • Position size: 5% of cash per trade
  • Max positions: 8

Crypto Compounding

  • Price band: $0.90 – $0.99
  • Assets: BTC, ETH, SOL
  • Windows: 5m, 15m
  • Trade size: 2% of cash
  • Max concurrent: 6

All defaults are adjustable in the Settings UI without touching code.


Architecture

Single Next.js app — no separate backend:

Path Role
src/lib/bot/engine.ts Scan loop, paper/live execution, settlements
src/lib/bot/strategies/ High-probability & crypto-compounding scanners
src/lib/polymarket/gamma.ts Gamma + CLOB price API
src/lib/polymarket/clob-trading.ts Live order placement
src/app/api/bot/ REST + SSE stream for the dashboard

Disclaimer

Prediction market trading involves risk. This software is for educational purposes. Past performance — including that of referenced traders — does not guarantee future results. Never trade more than you can afford to lose.


☕ Buy me a coffee

If this bot helped you trade smarter or saved you time, consider sending a tip:

0x6C7AA7570493BE8877AC6EE6F14C2bEa7c5580DF

ETH / ERC-20 on Ethereum or Polygon. Any amount is appreciated.



Polymarket 高概率交易机器人

带实时仪表盘的 Polymarket 自动交易工具 — 扫描真实市场、纸面模拟测试,满意后再切换实盘下注。

仪表盘演示


策略灵感来源

本机器人实现 高概率 + 加密货币复利 策略,灵感来自 Polymarket 上的成功交易者。我研究并借鉴了以下账户的交易模式:

交易者 主页
@spicybrwny polymarket.com/@spicybrwny
@abdoulay polymarket.com/@abdoulay
@sharky6999 polymarket.com/@sharky6999

这些交易者专注于临近结算的高概率机会 — 在 $0.90–$0.97 区间买入强势方向,依靠时间与确定性获利。本机器人将这一流程自动化,并支持完全自定义规则。


核心优势

优势 说明
完全可定制 价格区间、仓位比例、扫描间隔、资产选择、策略开关 — 均在设置页调整
为盈利而设计 双策略:高概率(7–20 天事件)+ 加密货币复利(BTC/ETH/SOL 短窗口)
极易上手 纯 Next.js 项目 — npm install → 配置 .envnpm run dev
模拟盘使用真实行情 纸面交易对接 真实 Polymarket 价格 — 先测试再实盘
随时切换实盘 设置中开启 Live 模式,配置钱包后即可下真实 CLOB 订单
实时仪表盘 持仓、盈亏、机会列表、成交记录通过 SSE 实时推送

交易模式

模式 数据来源 执行方式
Dry Run(默认) 实时 Gamma + CLOB 价格 纸面模拟 — 无需钱包
Live(实盘) 相同实时数据 通过 CLOB 下真实 USDC 订单

建议先在 Dry Run 模式下验证策略,满意后再切换 Live 并确保 Polymarket 钱包已充值。


快速开始

1. 安装依赖

cd polymarket-late-certainty-trading-bot
npm install

2. 配置环境变量

cp .env.example .env

编辑 .env

TRADING_MODE=dry_run
DEMO_BALANCE=10000
GAMMA_API_URL=https://gamma-api.polymarket.com
CLOB_API_URL=https://clob.polymarket.com

实盘交易需取消注释并填写:

PRIVATE_KEY=0x...
POLY_API_KEY=
POLY_API_SECRET=
POLY_API_PASSPHRASE=
POLYMARKET_FUNDER=0x...
SIGNATURE_TYPE=2

3. 启动

npm run dev

打开 http://localhost:3000 → 点击侧边栏 Start Bot


仪表盘页面

页面 功能
Overview 总资产、盈亏、仓位分配、全部机会
High Probability 临近结算的事件市场
Crypto Compounding BTC / ETH / SOL 涨跌短窗口
Settings 交易模式、价格区间、仓位、扫描间隔

默认策略参数

高概率策略: $0.92–$0.97 · 结算前 7–20 天 · 单笔 5% 现金 · 最多 8 仓

加密货币复利: $0.90–$0.99 · BTC/ETH/SOL · 5/15 分钟窗口 · 单笔 2% · 最多 6 仓

所有参数可在设置页修改,无需改代码。


风险提示

预测市场交易存在风险。本软件仅供学习研究。Referenced 交易者的历史表现不代表未来收益。请勿投入无法承受损失的资金。


☕ 请我喝杯咖啡

如果这个机器人对你有帮助,欢迎打赏:

0x6C7AA7570493BE8877AC6EE6F14C2bEa7c5580DF

支持 Ethereum / Polygon 上的 ETH 或 ERC-20 代币。感谢支持!

About

polymarket high probability trading bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors