Rechercher

PythonReactSEOPDF
OpenClaw

Polymarket Trading Bot Skill

Polymarket Trading Bot

hanguang2540 installations selon la source☆ 0 Étoiles du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install hanguang254/polymarket-trading-bot-skill

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

Instructions

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

# 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:

# 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...

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/hanguang254/polymarket-trading-bot-skill
Version
—
Commit
668ee7bfe6147837d102081b10c6dd2c8a0db2d7
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

README

Polymarket Trading Bot

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

Installation

pip3 install playwright requests
playwright install chromium

Usage

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:

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.

Contenu extrait

SKILL.md
# 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
# 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`.

Skills associés

OpenClaw

openbotx

openbotx

An open-source platform for orchestrating AI agents — secure, simple, and built for everyone. Multi-agent, real-time task board, web control panel, skills system, browser automation, multi-provider, scheduler,...

OpenClaw

zsxq-digest

sealiu1997

OpenClaw skill for 知识星球 / ZSXQ digests with token-first auth and browser recovery.

OpenClaw

browser-use-skill

abczsl520

🌐 OpenClaw skill for Browser-Use — AI-powered browser automation for complex multi-step workflows (login, form filling, scraping, posting)