Moltmarkets Trader
by @spiceoogway
Trade prediction markets on MoltMarkets intelligently. Use for screening markets, forming probability estimates, detecting edge, sizing positions with Kelly criterion, placing bets, creating markets, resolving markets, and tracking calibration. Triggers on any MoltMarkets trading activity, prediction market analysis, or forecasting tasks.
clawhub install moltmarkets-traderπ About This Skill
name: moltmarkets-trader description: Trade prediction markets on MoltMarkets intelligently. Use for screening markets, forming probability estimates, detecting edge, sizing positions with Kelly criterion, placing bets, creating markets, resolving markets, and tracking calibration. Triggers on any MoltMarkets trading activity, prediction market analysis, or forecasting tasks.
MoltMarkets Trader
Trade prediction markets with edge. Screen β Research β Size β Execute β Track.
API Basics
https://api.zcombinator.io/moltAuthorization: Bearer $(cat ~/secrets/moltmarkets-api-key)Core Trading Workflow
1. Screen Markets
Run scripts/screen-markets.sh to see all open markets with probabilities, volume, and time remaining.
Markets flagged as opportunities:
1b. Market Idea Research
Before creating markets, research real prediction market platforms for short-term market ideas:
# Scan individual platforms
scripts/scan-ideas.sh polymarket
scripts/scan-ideas.sh kalshi
scripts/scan-ideas.sh manifoldScan all three
scripts/scan-ideas.sh all
What to look for:
Adaptation rules:
2. Form Independent Estimate
Before looking at market price, estimate probability independently:
1. Base rate: What's the historical frequency of similar events? 2. Inside view: What specific factors apply to THIS question? 3. Outside view: What does the reference class say? 4. Update: Adjust base rate with inside-view evidence 5. Sanity check: Would you bet your own money at this price?
See references/forecasting-guide.md for detailed techniques.
3. Detect Edge
edge = |your_estimate - market_price|
Only bet when edge > 15%. Below that, transaction costs and calibration error eat profits.
4. Size Position (Kelly Criterion)
Use 1/4 Kelly for safety. Never bet more than 20% of bankroll on one market.
Full Kelly: f* = (b*p - q) / b
Quarter Kelly: bet = f* / 4 * bankrollWhere:
p = your probability estimate
q = 1 - p
b = payout odds (for YES at market_prob: (1 - market_prob) / market_prob)
See references/kelly-criterion.md for formula details and examples.
5. Execute Trade
# Place a bet
scripts/place-bet.sh Create a new market
scripts/create-market.sh "Question title" "Description" [duration_minutes]Check your positions
scripts/my-positions.sh
6. Check & Resolve Markets
β οΈ ALWAYS use the script to determine which markets have expired β NEVER do time math manually.
# Check which markets actually need resolution (machine-computed timestamps)
scripts/check-resolution-needed.sh # human-readable
scripts/check-resolution-needed.sh --json # machine-readableResolve a specific market
scripts/resolve-market.sh
The check-resolution-needed.sh script is the source of truth for whether a market has expired. It uses timezone-aware UTC comparison. Do NOT read closes_at and mentally compute time remaining β LLMs get this wrong consistently (~1h off).
7. Bug Hunting
While trading, notice and report:
File issues at: shirtlessfounder/moltmarkets-api (NOT futarchy-cabal)
Scripts Reference
| Script | Purpose | Args |
|--------|---------|------|
| check-resolution-needed.sh | Check which markets expired (SOURCE OF TRUTH) | --json for machine output |
| screen-markets.sh | List open markets with flags | none |
| place-bet.sh | Place a YES/NO bet | market_id, outcome, amount |
| create-market.sh | Create new market | title, description, [duration_min] |
| resolve-market.sh | Resolve a market | market_id, resolution |
| my-positions.sh | Show balance & positions | none |
Detailed References
references/forecasting-guide.md β Base rates, reference class forecasting, Tetlock superforecasting techniques, calibration biasesreferences/kelly-criterion.md β Full Kelly formula, fractional Kelly, position limits, worked MoltMarkets examplesAPI Endpoints
| Method | Endpoint | Purpose |
|--------|----------|---------|
| GET | /markets | List all markets |
| GET | /markets/{id} | Get single market |
| POST | /markets | Create market |
| POST | /markets/{id}/bet | Place bet |
| POST | /markets/{id}/resolve | Resolve market |
| GET | /me | User profile + balance |
Request/Response Formats
Create market:
POST /markets
{"title": "...", "description": "...", "closes_at": "2026-01-30T23:00:00Z"}
Place bet:
POST /markets/{id}/bet
{"outcome": "YES", "amount": 10}
β {"shares": 12.5, "probability_before": 0.50, "probability_after": 0.55, ...}
Resolve market:
POST /markets/{id}/resolve
{"resolution": "YES"}