← 返回
开发者工具 Key 中文

Openclaw Bot Prob Trade

Autonomous trading bot for Polymarket via prob.trade. Run strategies, manage risk, scan markets. Requires the probtrade skill for API access.
通过prob.trade为Polymarket打造的自动交易机器人,可运行策略、管理风险、扫描市场。需要probtrade技能获取API权限。
vlprosvirkin
开发者工具 clawhub v1.0.1 1 版本 100000 Key: 需要
★ 1
Stars
📥 1,138
下载
💾 12
安装
1
版本
#latest

概述

probtrade-bot — Autonomous Polymarket Trading Bot

Autonomous trading bot that uses the probtrade skill to trade on Polymarket via prob.trade. Includes built-in risk management, pluggable strategies, and dry-run mode.

Requires: The probtrade skill must be installed and configured with API keys.

Setup

  1. Install and configure the probtrade skill first (API key required)
  2. Edit {baseDir}/config.yaml to set your strategy and risk limits
  3. By default, dry_run: true — the bot will only log, not trade

Commands

Run Bot

Start the autonomous trading loop. Scans markets and places orders every cycle.

python3 {baseDir}/scripts/bot.py run

Override strategy:

python3 {baseDir}/scripts/bot.py run --strategy pair_arb

Scan Markets

Run a single scan to see what the strategy would do, without placing orders.

python3 {baseDir}/scripts/bot.py scan

Bot Status

Check balance, positions, open orders, and risk state.

python3 {baseDir}/scripts/bot.py status

List Strategies

See all available strategies.

python3 {baseDir}/scripts/bot.py strategies

Built-in Strategies

  • momentum — Contrarian momentum / mean reversion. Buys markets where YES price dropped significantly in 24h, betting on reversion.
  • pair_arb — Async pair cost arbitrage. Finds markets where YES + NO price < $0.95, buys the cheaper side for guaranteed profit on resolution.

Creating Your Own Strategy

  1. Create a file in {baseDir}/lib/strategies/ (e.g. my_strategy.py)
  2. Implement a class that extends Strategy:
from lib.strategy_base import Strategy, Signal, get_yes_price, get_price_change

class MyStrategy(Strategy):
    name = "my_strategy"

    def initialize(self, config):
        self.threshold = config.get("my_param", 0.15)

    def scan(self, markets, positions, balance):
        signals = []
        for m in markets:
            if should_buy(m):
                signals.append(Signal(
                    market=m["condition_id"],
                    side="BUY", outcome="Yes",
                    order_type="LIMIT", amount=5,
                    price=get_yes_price(m),
                    confidence=0.8,
                    reason="My reason"
                ))
        return signals
  1. Set strategy: my_strategy in config.yaml
  2. Test: python3 {baseDir}/scripts/bot.py scan --strategy my_strategy

Risk Management

The bot enforces risk limits defined in config.yaml:

  • max_position_size: Maximum USDC per single order
  • max_daily_spend: Total USDC allowed per day
  • max_open_positions: Maximum concurrent positions
  • max_drawdown_pct: Circuit breaker — halts all trading if portfolio drops by this %
  • max_consecutive_losses: Circuit breaker trigger after N losses in a row

Environment Variables

Override config values via env vars:

  • DRY_RUN=true — force dry run mode
  • STRATEGY=pair_arb — override strategy
  • LOOP_INTERVAL=60 — override scan interval
  • PROBTRADE_SKILL_PATH=/path/to/probtrade/lib — custom path to probtrade skill lib

Output

All commands output structured data (JSON or formatted text) for easy parsing by AI agents.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 05:40 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Openclaw Skill

vlprosvirkin
{"answer":"Polymarket预测市场:分析、交易、热门市场、价格变动、顶级交易者和市场搜索。由prob.trade提供支持。"}
★ 3 📥 926
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,777
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 67 📥 180,060