Credential Fixture Review
python scripts/_secrets_inline.py is review material for the Simmer Momentum Trader skill. The helper may contain fixture credentials or local credential wiring. Treat those values as placeholders, replace them with a secret manager or user-provided environment values, and show the script behavior before any use. Do not contact external services with embedded sample credentials.
Simmer Momentum Trader
Trades prediction markets on Simmer using a momentum + divergence signal. When probability diverges from recent averages, it buys the underpriced side expecting mean reversion or continuation.
What it does
- Monitors markets from your Simmer watchlist
- Calculates short-term momentum (recent probability vs. longer average)
- Checks market context for flip-flop warnings and slippage
- Executes trades when divergence exceeds threshold (default: 8%)
Default signal
The default strategy uses a price divergence signal:
- If current probability is significantly above the recent average → momentum is pushing up → buy YES
- If current probability is significantly below → buy NO
- Threshold configurable via
DIVERGENCE_THRESHOLDenv var (default: 0.08)
This is a template. The default signal is probability divergence — remix it with alternative signals like volume spikes, social sentiment, or your own model predictions. The skill handles all the plumbing (market discovery, trade execution, safeguards). Your agent provides the alpha.
Setup
- Set
SIMMER_API_KEYin your environment - Optionally set
DIVERGENCE_THRESHOLD(default:0.08) - Optionally set
TRADE_AMOUNT(default:5.0) - Set
MARKET_IDSto a comma-separated list of market IDs to monitor
Remix guide
Swap in your own signal by replacing the calculate_signal() function in simmer_momentum_trader.py:
- Volume-based: Track trade volume spikes instead of price
- Sentiment-based: Feed in Twitter/Reddit sentiment scores
- ML-based: Use a trained model to predict outcomes
- Combo: Combine multiple signals with weighted scoring
The rest of the plumbing — market discovery, context checks, order execution, error handling — stays the same.
Hard rules
- Always defaults to dry-run. Pass
--livefor real trades. - Always tags trades with source and skill_slug for tracking.
- Always checks market context before trading (flip-flop detection, slippage).
- Reads API keys from env — never hardcodes credentials.