A simple probability-threshold trading skill for prediction markets. Trades when market prices diverge from your configured probability threshold by a minimum edge amount.
> This is a template. The default signal is a fixed probability threshold — remix it with your own model predictions, external data feeds, or custom signals. The skill handles all the plumbing (market discovery, trade execution, safeguards). Your agent provides the alpha.
Configure via environment variables:
THRESHOLD_PROBABILITY: Your probability estimate (0.0-1.0). Default: 0.70TRADE_SIDE: Which side to trade ("YES" or "NO"). Default: "YES"SIMMER_VENUE: Trading venue ("sim" for paper, "polymarket" for real). Default: "sim"SIMMER_MIN_EV: Minimum edge to trade (0.0-1.0). Default: 0.03 (3%)SIMMER_KELLY_MULTIPLIER: Kelly fraction (0.0-1.0). Default: 0.25MAX_POSITION_SIZE: Maximum position size in USD. Default: 100.0Install the skill:
npx clawhub@latest install threshold-trader
Set your credentials and configuration:
export SIMMER_API_KEY="your-api-key-here"
export THRESHOLD_PROBABILITY="0.65"
export TRADE_SIDE="YES"
export SIMMER_VENUE="sim" # or "polymarket" for real money
Run manually:
python threshold_trader.py
Or let the automaton run it every 15 minutes (configured in clawhub.json).
The core logic is in should_trade() — swap the fixed threshold for:
THRESHOLD_PROBABILITY with model predictionsThe skill handles position sizing, safety checks, execution, and redemption. You focus on the signal.
--livePaper trade YES when probability is above 70%:
export THRESHOLD_PROBABILITY="0.70"
export TRADE_SIDE="YES"
python threshold_trader.py
Real money trade NO when probability is below 30%:
export THRESHOLD_PROBABILITY="0.30"
export TRADE_SIDE="NO"
export SIMMER_VENUE="polymarket"
python threshold_trader.py --live
simmer-sdk >= 1.0.0SIMMER_API_KEY from simmer.markets/dashboardname: threshold-trader
description: Simple probability-threshold trading skill. Trades when market prices diverge from your configured threshold. Remixable template for custom signals.
metadata:
author: "Simmer Community"
version: "1.0.0"
displayName: "Threshold Trader"
difficulty: "beginner"
共 1 个版本