Hero Wedge · Supporting Asset

Market Calibration
Agent

A market-facing proof that Core + Trust works.
Turn prediction-market probabilities into benchmarked, trust-aware signals.

Market Calibration Agent is a supporting asset and hero wedge for the Tollama stack. It combines market data, calibration scoring, and TSFM inference so teams can see when a market signal is reliable enough to inform research and risk workflows.

View on GitHub โ†— Explore Features โ†’
// What It Measures
Statistical calibration,
made actionable.

This wedge turns abstract market probabilities into benchmarkable trust signals. It is a concrete example of how Tollama Core evidence and Trust-style scoring meet in a real workflow.

Brier Proper scoring rule
ECE Expected Calibration Error
Log-Loss Probabilistic accuracy
Drift Probability deviation alerts
Trust Score Composite reliability signal
// Key Features
Core + Trust Applied
To Market Probabilities.
๐Ÿ”—
Multi-source Data Integration

Integrates REST APIs, WebSocket feeds, and subgraph queries from Polymarket to maintain a real-time, unified view of market data.

๐Ÿ“
Calibration Analysis Pipeline

Computes Brier score, log-loss, and Expected Calibration Error per market, then turns them into composite trust signals with postmortem-ready audit trails.

๐Ÿšจ
Configurable Alert Generation

YAML-defined alert rules trigger on probability deviation thresholds. Alert feeds are exposed as read-only API endpoints for downstream consumers.

๐Ÿง 
TSFM Inference with Safeguards

Shows how Tollama Core-style TSFM inference can sit inside a guarded market workflow with rate-limiting, response caching, and circuit breakers.

๐Ÿ–ฅ๏ธ
Streamlit Operational Dashboard

Real-time monitoring dashboard showing market summaries, Trust Score distributions, active alerts, and calibration postmortems โ€” designed for ops and quant teams.

๐Ÿ“ก
Read-only API Services

Exposes market summaries, alert feeds, and performance postmortems as structured, read-only endpoints. No write operations, so it stays safe as a research and risk wedge.

โš™๏ธ
YAML-based Configuration

Fully configurable via YAML โ€” alert thresholds, model settings, API targets, and caching behavior are all declared without code changes.

๐Ÿงฉ
Modular Architecture

Cleanly separated connectors, calibration pipelines, and API handlers. Add new market sources or scoring metrics without touching core logic.

Supporting Asset,
Production by Design.

Built with uv and a frozen lockfile for reproducible installs. The point is not another product line. It is a sharp, credible wedge for the Core + Trust story.

  • Python Primary runtime (95.6% of codebase)
  • uv Package manager with frozen lockfile
  • YAML Configuration โ€” alerts, models, API targets
  • Streamlit Operational monitoring dashboard
  • Polymarket APIs REST + WebSocket + subgraph
  • TSFM Time Series Foundation Model inference
json ยท /api/market/{id}/trust-score GET
// Market calibration result
{
  "market_id": "0x1a2b...",
  "question": "Will X happen by...",
  "current_probability": 0.74,
  "trust_score": 0.81,
  "metrics": {
    "brier_score": 0.142,
    "log_loss": 0.318,
    "ece": 0.047
  },
  "alerts": [],
  "tsfm_signal": {
    "forecast": [0.72, 0.75, 0.71],
    "cached": false
  }
}
// Target Users
Built For Early Users Who
Act On Market Signals.
๐Ÿ“Š
Quantitative Researchers

Use calibration metrics and TSFM signals to evaluate prediction market quality before incorporating them into models or strategies.

๐Ÿ›ก๏ธ
Operations Teams

Monitor real-time alert feeds and Trust Score distributions to catch signal degradation before it affects downstream decisions.

๐Ÿ”ง
Platform Engineers

Integrate the read-only endpoints into risk pipelines, dashboards, or agent workflows without turning the wedge into a separate platform.

๐Ÿงช
Model Teams

Access structured postmortem data and calibration history to evaluate how prediction markets perform across different market regimes.

// Get Started

Start With The Hero Wedge
For Trust-Aware Markets.

A supporting asset for teams that need to know when market probabilities are actionable.

View on GitHub โ†— โ† Back to Tollama AI