TopRank Skills

Home / Claw Skills / Bot / polymarket-bot
Official OpenClaw rules 56%

polymarket-bot

Polymarket 5-minute crypto UP/DOWN market automated trading bot. AI-powered prediction using Binance technical analysis (Position, Momentum, RSI, Volume), automated betting via Polymarket CLOB API with gnosis-safe wallet mode. Use when setting up automated crypto trading on Polymarket, monitoring 5-minute BTC/ETH markets, or managing prediction market positions.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

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

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

Overview

Skill Key
hanguang254/polymarket-5m-bot
Author
hanguang254
Source Repo
openclaw/skills
Version
-
Source Path
skills/hanguang254/polymarket-5m-bot
Latest Commit SHA
c40b749ceb8000c08bea43605dca0b23ce2b329e

Extracted Content

SKILL.md excerpt

# Polymarket Trading Bot

Automated trading bot for Polymarket 5-minute crypto UP/DOWN markets.

## Architecture

```
auto_bot_v2.py (Main Loop)
  → Detects new 5-min markets (BTC/ETH)
  → Fetches Price-To-Beat via Playwright
  → Triggers AI analysis 80-100s before close

ai_analyze_v2.py (Decision Engine)
  → Binance technical analysis
  → Confidence scoring (Position 50%, Momentum 30%, RSI 10%, Volume 10%)
  → Executes bets via Polymarket CLI

monitor_bets.py (Notifications)
  → Monitors logs/bets.jsonl
  → Sends Telegram notifications on new bets

trading_state.py (Risk Management)
  → Tracks wins/losses
  → Enforces cooldown after consecutive losses
```

## Setup

1. Install Polymarket CLI and configure wallet (gnosis-safe mode)
2. Install dependencies: `pip install requests playwright`
3. Configure Telegram bot token and chat ID in `monitor_bets.py`
4. Run: `python3 -u auto_bot_v2.py > logs/bot.log 2>&1 &`

## Strategy Parameters

Edit in `scripts/ai_analyze_v2.py`:

- **Confidence threshold**: ≥85% (line 63)
- **EV threshold**: >0.6 (line 64)
- **Max odds**: <0.85 (line 65)
- **Bet size**: Fixed 5 shares (Polymarket minimum)

## Key Files

- `scripts/auto_bot_v2.py` - Main monitoring loop
- `scripts/ai_analyze_v2.py` - AI decision engine with bet execution
- `scripts/monitor_bets.py` - Telegram notification script
- `scripts/trading_state.py` - Win/loss tracking and cooldown logic

## Important Notes

- 5-minute markets cannot be exited early (orderbook disappears after close)
- Bot uses Binance data; Polymarket resolves via Chainlink (potential discrepancy)
- Minimum order: 5 shares (Polymarket hard limit)
- Uses `--signature-type gnosis-safe` for all CLI commands

Related Claw Skills