TopRank Skills

Home / Claw Skills / Automatisation du navigateur / Polymarket Trading Bot Skill
Official OpenClaw rules 36%

Polymarket Trading Bot Skill

Polymarket Trading Bot

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Polymarket Trading Bot Skill 技能。 若已安装,则直接安装 Polymarket Trading Bot Skill 技能。

Overview

Skill Key
hanguang254/polymarket-trading-bot-skill
Author
hanguang254
Source Repo
openclaw/skills
Version
-
Source Path
skills/hanguang254/polymarket-trading-bot-skill
Latest Commit SHA
668ee7bfe6147837d102081b10c6dd2c8a0db2d7

Extracted Content

SKILL.md excerpt

# Polymarket Trading Bot

AI-powered trading bot for Polymarket 5-minute BTC/ETH price prediction markets.

## Features

- **Accurate PTB Extraction**: Multi-layer fallback (API → HTML → Playwright → Binance)
- **Advanced AI Model**: Position + momentum + RSI + volume analysis
- **EV-Based Decisions**: Only bet when expected value > 0.05
- **Real-time Monitoring**: Auto-detect new markets and pre-fetch PTB
- **Risk Management**: Confidence threshold + odds filtering

## Quick Start

```bash
# Install dependencies
pip3 install playwright requests

# Install Playwright browser
playwright install chromium

# Run the bot
python3 auto_bot_v2.py
```

## How It Works

1. **Market Detection**: Polls Polymarket API every 2 seconds
2. **PTB Pre-fetch**: Gets Price to Beat when market appears (~10s)
3. **AI Analysis**: Triggers 40 seconds before market close
4. **Decision**: Outputs bet recommendation (betting disabled by default)

## AI Model

### Scoring System (0-100)

| Signal | Weight | Description |
|--------|--------|-------------|
| Position | 50% | Current price vs PTB (ATR-normalized) |
| Momentum | 30% | 3-min trend + 1-min micro momentum |
| RSI | 10% | Overbought/oversold correction |
| Volume | 10% | Volume confirmation |

### Betting Criteria

- Confidence ≥ 55%
- Expected Value > 0.05
- Target odds < 0.90

## Configuration

Edit `auto_bot_v2.py` to enable real betting:

```python
# Line ~155
execute_bet(slug, direction, 10)  # Uncomment to enable
```

## Files

- `auto_bot_v2.py` - Main bot script
- `ai_analyze_v2.py` - Decision engine
- `ai_trader/ai_model_v2.py` - Scoring model
- `ai_trader/playwright_ptb.py` - PTB extraction
- `logs/decisions_v2.jsonl` - Decision history

## Example Output

```
🆕 新市场: BTC | btc-updown-5m-1772806500
   结束: 14:20:00 UTC | 剩余: 296s
   📡 提前获取 PTB...
✅ PTB=68824.89 (Playwright, 14.2s)

============================================================
🔔 触发分析: BTC | btc-updown-5m-1772806500 | 剩余 39s
  💰 PTB: $68,82...

README excerpt

# Polymarket Trading Bot

AI-powered automated trading bot for Polymarket 5-minute BTC/ETH price prediction markets.

## Installation

```bash
pip3 install playwright requests
playwright install chromium
```

## Usage

```bash
python3 auto_bot_v2.py
```

## Features

- Multi-layer PTB extraction (Playwright + fallbacks)
- Advanced AI scoring model (position + momentum + RSI + volume)
- EV-based betting decisions
- Real-time market monitoring
- Decision logging

## Configuration

To enable real betting, edit `auto_bot_v2.py` line 155:

```python
execute_bet(slug, direction, 10)  # Uncomment this line
```

## Safety

Default mode is dry-run (no real bets). All decisions are logged to `logs/decisions_v2.jsonl`.

Related Claw Skills