When you send /research, Polytragent makes 8–12 predictions. Each one is instantly logged to predictions.json with: market ID, AI forecast %, Polymarket price at prediction time, Manifold price, confidence level, recommendation, reasoning snippet, and timestamp. This is the permanent record. Every trade is tracked.
Every prediction goes to predictions.json. Cannot be deleted or edited. This is the source of truth for learning and accountability.
Not just the prediction—the market state at that moment. Price, volume, liquidity. This context helps the AI learn why it was right or wrong.
A 1–2 sentence summary of why the AI made this specific prediction. Invaluable for post-mortem analysis.
The background resolver is a cron job that runs every 6 hours. It queries Polymarket's API for all resolved markets. For each resolved market, it finds matching predictions in predictions.json. It records the outcome: CORRECT or WRONG. It calculates hypothetical P&L. It updates the AI's accuracy metrics. The loop never stops. The AI gets smarter every day.
Cron job runs every 6 hours (00:00, 06:00, 12:00, 18:00 UTC). Non-blocking—doesn't interrupt user queries.
GET /markets?status=resolved. Fetch all newly resolved markets and their outcomes (YES or NO).
For each resolved market, search predictions.json for matching market_id. If found, compare AI's forecast to outcome.
If AI said YES and market resolved YES = CORRECT. If opposite = WRONG. No partial credit.
If correct: add (final_price - prediction_price) × confidence_weight to P&L. If wrong: subtract loss.
Recalculate overall win rate, topic-specific accuracy, calibration biases. Store in predictions.json metadata.
Next /research command: Claude Sonnet sees new metrics and adjusts future predictions accordingly.
Polytragent logs everything and improves continuously. Your winning system starts with perfect tracking.
Start tracking — $79.99/mo →Risk Disclaimer: Prediction market trading involves significant financial risk. AI-powered research does not guarantee profits. Past performance is not indicative of future results. Polytragent is a research tool, not a financial advisor. Only trade capital you can afford to lose. This website does not constitute financial advice.