Install
openclaw skills install openclaw-bot-prob-tradeAutonomous trading bot for Polymarket via prob.trade. Run strategies, manage risk, scan markets. Requires the probtrade skill for API access.
openclaw skills install openclaw-bot-prob-tradeAutonomous 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.
probtrade skill first (API key required){baseDir}/config.yaml to set your strategy and risk limitsdry_run: true — the bot will only log, not tradeStart 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
Run a single scan to see what the strategy would do, without placing orders.
python3 {baseDir}/scripts/bot.py scan
Check balance, positions, open orders, and risk state.
python3 {baseDir}/scripts/bot.py status
See all available strategies.
python3 {baseDir}/scripts/bot.py strategies
{baseDir}/lib/strategies/ (e.g. my_strategy.py)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
strategy: my_strategy in config.yamlpython3 {baseDir}/scripts/bot.py scan --strategy my_strategyThe bot enforces risk limits defined in config.yaml:
Override config values via env vars:
DRY_RUN=true — force dry run modeSTRATEGY=pair_arb — override strategyLOOP_INTERVAL=60 — override scan intervalPROBTRADE_SKILL_PATH=/path/to/probtrade/lib — custom path to probtrade skill libAll commands output structured data (JSON or formatted text) for easy parsing by AI agents.
brew install python@3