calculator · prediction_spread · $0.10 full brief ($0.05 harvest-only; $0 on unparseable/422)

Prediction Market Spread Risk Simulator (Polymarket CLOB vs Kalshi v2)

Target Query: prediction market spread risk simulator · Source Family: prediction_spread · MCP Tool: quantdesk_full_brief · Seed: 42 · Receipt: 625ccb0b572a4437...

Direct Answer: Quantify dual-side cross-venue prediction market arbitrage spreads between Polymarket Gamma/CLOB and Kalshi Trade API v2 after exact quadratic taker fees, order-book sort-trap corrections, settlement-date divergence guards, and 10,000-trial Monte Carlo tail risk. On the deterministic 10,000-trial Decimal risk profile (seed=42, horizon_days=14, capital $50,000), 95% Value-at-Risk is 2.71% ($1,355), 99% Expected Shortfall (cvar_99) is 19.75% ($9,875), conservative half_kelly_cap is 25.00%, and empty, unchanged, fake-200, or SSRF-blocked calls strictly bill $0.

Dual-Side Post-Fee Spread Edge & Settlement-Date Divergence Penalty

Verified Public Endpoints & Production Field Paths

Source / ComponentEndpoint / ContractExact Field Paths & Guards
Polymarket Gammahttps://gamma-api.polymarket.com/markets?active=true&closed=false&limit=5$[*].{conditionId,endDate,outcomes,outcomePrices,clobTokenIds,bestBid,bestAsk,feesEnabled}
Polymarket CLOB Bookhttps://clob.polymarket.com/book?token_id={clob_token_id}max($.bids[*].price), min($.asks[*].price), $.tick_size
Kalshi Events v2https://api.elections.kalshi.com/trade-api/v2/events?status=open&with_nested_markets=true&limit=5$.events[*].markets[*].{ticker,yes_bid_dollars,yes_ask_dollars,close_time,can_close_early}
Kalshi Orderbook FPhttps://api.elections.kalshi.com/trade-api/v2/markets/{ticker}/orderbook?depth=5$.orderbook_fp.{yes_dollars,no_dollars}

Deterministic 10,000-Trial Risk Profile (Pure Stdlib Decimal, Seed 42)

Trials / Seed / Horizon10,000 trials · seed 42 · 14 trading days · $50,000 notional
Return Quantiles (P5 / P50 / P95)-2.71% / +3.50% / +9.36% (mean +3.23%, std 4.48%)
VaR 95 / CVaR 95 (Expected Shortfall)2.71% ($1,355) / 9.24%
VaR 99 / CVaR 99 (Extreme Tail)15.77% / 19.75% ($9,875)
Max Drawdown (95th) / Ruin Prob3.86% / 0.00%
Half-Kelly Cap & SHA-256 Receipt25.00% · 625ccb0b572a4437d24226d0...
Inline 10,000-Trial Return Distribution SVG
Prediction Market Spread Risk Simulator (Polymarket... (10,000 Trials, Seed 42) VaR 95 P50 P95 -19.3%-11.3%-3.3%+4.7%+12.7% VaR95: 2.71% | CVaR95: 9.24% | CVaR99: 19.75% | Half-Kelly: 25.00%
Inline Tornado Sensitivity Ranking SVG
Tornado Sensitivity Ranking (CVaR 95 Swing & Variance Share) #1 jump_severity swing 5.98% (46.3%) #2 expected_return swing 5.93% (45.5%) #3 volatility swing 1.75% (4.0%) #4 fee_slippage_drag swing 1.40% (2.5%) #5 horizon_days swing 1.16% (1.7%) Amber: downside tail driver | Green: drift/edge driver (synchronized seed 42)

Ranked Tornado Sensitivity Drivers (Synchronized Seed 42)

RankRisk FactorLow CVaR 95High CVaR 95Swing (Variance Share)Direction
#1jump_severity6.42%12.40%5.98% (46.3%)negative
#2expected_return12.63%6.70%5.93% (45.5%)positive
#3volatility8.60%10.35%1.75% (4.0%)negative
#4fee_slippage_drag9.55%10.95%1.40% (2.5%)negative
#5horizon_days8.77%9.93%1.16% (1.7%)negative

Canonical Schema Response Excerpt (/v1/desk/full-brief)

{
  "ok": true,
  "source_type": "prediction_spread",
  "signal": {
    "entity_id": "SPREAD:macro_cpi_pair_2026",
    "event_kind": "dual_venue_net_spread",
    "factor_score": 0.72,
    "confidence": 0.91,
    "metrics": {
      "gross_edge_bps": 550.0,
      "net_edge_bps": 360.0,
      "settlement_gap_days": 0.0,
      "resolution_mismatch_risk": "LOW"
    }
  },
  "billed_micros": 100000
}

Incumbent Comparison vs. Agent-WallStreet-Desk

PlatformPricingAgent / MCP InterfaceCompliance & Billing Guardrails
Agent-WallStreet-Desk$99 / $299 / $999 prepaid ($0/mo) · $0.025–$0.10/callREST + OpenAPI 3.1 + JSON-RPC /mcp + treg hub100% legal public disclosures · $0 on empty/unchanged/fake-200/SSRF · SHA-256 receipt · Zero strategy resale
Bloomberg Terminal~$27,660–$32,000/yr per human seatSeat-locked desktop terminal; no Remote MCPStrict redistribution restrictions; no Polymarket/Kalshi cross-venue parser
LSEG / Biotech IP Suites$15,000–$50,000+/yr annual contractSiloed portals & enterprise sales cyclesOpaque scoring without raw source SHA-256 provenance
SEC Wrappers / Raw Scrapers$49–$2,000/mo fixed burn + proxy overagesSingle-source or raw HTML relay onlyBills compute even on fake-200 error HTML or unchanged snapshots

Call via REST API, Remote /mcp, or treg hub

1. REST API (POST /v1/desk/full-brief):

curl -fsSL -X POST "https://quantdesk.fastmesh.dev/v1/desk/full-brief" \
  -H "Content-Type: application/json" \
  -d '{
  "source_type": "prediction_spread",
  "raw_payload": {
    "market_id": "macro_cpi_pair_2026",
    "polymarket": {
      "yes_ask": "0.4650",
      "no_ask": "0.5450",
      "end_date": "2026-12-15T14:00:00Z",
      "taker_fee_bps": 0
    },
    "kalshi": {
      "ticker": "KXCPI-26DEC",
      "yes_ask_dollars": "0.5100",
      "no_ask_dollars": "0.4800",
      "close_time": "2026-12-15T14:00:00Z",
      "can_close_early": false
    }
  },
  "seed": 42,
  "trials": 10000,
  "horizon_days": 14,
  "initial_capital": 50000
}'

2. Remote JSON-RPC 2.0 MCP Server (POST /mcp -> quantdesk_full_brief):

curl -fsSL -X POST "https://quantdesk.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "quantdesk_full_brief",
    "arguments": {
      "source_type": "prediction_spread",
      "raw_payload": {
        "market_id": "macro_cpi_pair_2026",
        "polymarket": {
          "yes_ask": "0.4650",
          "no_ask": "0.5450",
          "end_date": "2026-12-15T14:00:00Z",
          "taker_fee_bps": 0
        },
        "kalshi": {
          "ticker": "KXCPI-26DEC",
          "yes_ask_dollars": "0.5100",
          "no_ask_dollars": "0.4800",
          "close_time": "2026-12-15T14:00:00Z",
          "can_close_early": false
        }
      },
      "seed": 42,
      "trials": 10000,
      "horizon_days": 14,
      "initial_capital": 50000
    }
  }
}'

3. Zero-Commission treg hub CLI (singularity.agent-wallstreet-desk):

treg call singularity.agent-wallstreet-desk --data '{"operation": "full_brief", "source_type": "prediction_spread", "seed": 42, "trials": 10000}'

Test Live Public Disclosures & 10,000-Trial Risk in 5 Seconds

Zero signup required in the interactive workbench. Fund never-expiring Creem prepaid credits ($99 Starter / $299 Pro Desk / $999 Institutional Feed) only when automating production agent pipelines.

Frequently Asked Questions

Why do naive Polymarket CLOB parsers misread top-of-book prices?

Polymarket's /book endpoint returns bids ascending (starting around 0.001) and asks descending (starting around 0.999). Taking index [0] produces bogus 99.8-cent spreads. Agent-WallStreet-Desk always computes max(bids) and min(asks) in Decimal.

How is Kalshi's taker fee modeled in the net spread calculation?

We deduct exact Kalshi quadratic taker fees per contract, ceil_cent(0.07 * p * (1 - p)), plus Polymarket takerBaseFee when feesEnabled is true, before computing net_edge_bps.

What does the settlement-date divergence risk guard catch?

Two markets covering similar headlines can have different cutoff dates or early-close rules. Any settlement gap > 3 days or differing can_close_early flag raises resolution_mismatch_risk='HIGH' and discounts signal confidence.

Related Quantitative Desk Guides

Quantitative Engineering & Compliance Boundary: Agent-WallStreet-Desk is a deterministic quantitative public-disclosure extraction and Monte Carlo risk modeling engineering tool only. It is NOT investment advice under the U.S. Investment Advisers Act of 1940, NOT a broker-dealer, and provides ZERO asset management, trade execution, or custody. 100% legal public regulatory disclosures and public market data only (zero MNPI, zero paywall bypass). Strictly $0 billed on empty, unchanged, fake-200, SSRF-blocked, or HTTP 422 responses. Zero client trading strategy, portfolio holdings, or watchlist retention or resale (zero_resale_policy: true). Support: support@fastmesh.dev.