calculator · prediction_spread · $0.05 per verified spread ($0.025 watch-diff on >=25 bps edge shift)

Polymarket CLOB & Kalshi Orderbook_FP Net Fee Calculator API

Target Query: Polymarket CLOB Kalshi orderbook fee calculator API · Source Family: prediction_spread · MCP Tool: quantdesk_harvest_signal · Seed: 42 · Receipt: 90bf738466370c5b...

Direct Answer: Parse live Polymarket CLOB order-book ladders alongside Kalshi 2026 fixed-point orderbook_fp bid stacks—computing exact implied asks, quadratic taker fees, executable depth, and post-fee net spread basis points in Decimal precision. On the deterministic 10,000-trial Decimal risk profile (seed=42, horizon_days=14, capital $50,000), 95% Value-at-Risk is 2.57% ($1,285), 99% Expected Shortfall (cvar_99) is 14.93% ($7,465), conservative half_kelly_cap is 25.00%, and empty, unchanged, fake-200, or SSRF-blocked calls strictly bill $0.

Implied Ask Inversion & Quadratic Venue Fee Drag

Verified Public Endpoints & Production Field Paths

Source / ComponentEndpoint / ContractExact Field Paths & Guards
Polymarket CLOBhttps://clob.polymarket.com/book?token_id={id}bids[*].{price,size}, asks[*].{price,size}, tick_size, min_order_size
Polymarket Mid/Spreadhttps://clob.polymarket.com/midpoint & /spread$.mid, $.spread
Kalshi Orderbook FPhttps://api.elections.kalshi.com/trade-api/v2/markets/KXELONMARS-99/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.57% / +2.46% / +7.23% (mean +2.33%, std 3.46%)
VaR 95 / CVaR 95 (Expected Shortfall)2.57% ($1,285) / 6.42%
VaR 99 / CVaR 99 (Extreme Tail)10.50% / 14.93% ($7,465)
Max Drawdown (95th) / Ruin Prob3.48% / 0.00%
Half-Kelly Cap & SHA-256 Receipt25.00% · 90bf738466370c5bf0727efb...
Inline 10,000-Trial Return Distribution SVG
Polymarket CLOB & Kalshi Orderbook_FP Net Fee... (10,000 Trials, Seed 42) VaR 95 P50 P95 -13.9%-7.9%-1.9%+4.1%+10.0% VaR95: 2.57% | CVaR95: 6.42% | CVaR99: 14.93% | Half-Kelly: 25.00%
Inline Tornado Sensitivity Ranking SVG
Tornado Sensitivity Ranking (CVaR 95 Swing & Variance Share) #1 expected_return swing 5.21% (62.8%) #2 jump_severity swing 2.95% (20.2%) #3 volatility swing 1.93% (8.6%) #4 fee_slippage_drag swing 1.40% (4.5%) #5 horizon_days swing 1.27% (3.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
#1expected_return8.38%3.18%5.21% (62.8%)positive
#2jump_severity4.58%7.53%2.95% (20.2%)negative
#3volatility5.09%7.02%1.93% (8.6%)negative
#4fee_slippage_drag6.14%7.54%1.40% (4.5%)negative
#5horizon_days5.29%6.56%1.27% (3.7%)negative

Canonical Schema Response Excerpt (/v1/desk/harvest-signal)

{
  "ok": true,
  "source_type": "prediction_spread",
  "event_kind": "orderbook_net_spread",
  "factor_score": 0.44,
  "metrics": {
    "poly_best_ask": "0.4550",
    "kalshi_implied_no_ask": "0.5000",
    "kalshi_fee_usd": "0.0200",
    "net_edge_bps": 250.0
  },
  "billed_micros": 50000
}

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/harvest-signal):

curl -fsSL -X POST "https://quantdesk.fastmesh.dev/v1/desk/harvest-signal" \
  -H "Content-Type: application/json" \
  -d '{
  "source_type": "prediction_spread",
  "raw_payload": {
    "market_id": "kalshi_poly_book_01",
    "polymarket_book": {
      "bids": [
        {
          "price": "0.001",
          "size": "188198.84"
        },
        {
          "price": "0.440",
          "size": "2500.00"
        }
      ],
      "asks": [
        {
          "price": "0.999",
          "size": "500000.00"
        },
        {
          "price": "0.455",
          "size": "1800.00"
        }
      ]
    },
    "kalshi_orderbook_fp": {
      "yes_dollars": [
        [
          "0.4800",
          "900.00"
        ],
        [
          "0.5000",
          "420.00"
        ]
      ],
      "no_dollars": [
        [
          "0.4900",
          "850.00"
        ],
        [
          "0.5100",
          "310.00"
        ]
      ]
    }
  }
}'

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

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_harvest_signal",
    "arguments": {
      "source_type": "prediction_spread",
      "raw_payload": {
        "market_id": "kalshi_poly_book_01",
        "polymarket_book": {
          "bids": [
            {
              "price": "0.001",
              "size": "188198.84"
            },
            {
              "price": "0.440",
              "size": "2500.00"
            }
          ],
          "asks": [
            {
              "price": "0.999",
              "size": "500000.00"
            },
            {
              "price": "0.455",
              "size": "1800.00"
            }
          ]
        },
        "kalshi_orderbook_fp": {
          "yes_dollars": [
            [
              "0.4800",
              "900.00"
            ],
            [
              "0.5000",
              "420.00"
            ]
          ],
          "no_dollars": [
            [
              "0.4900",
              "850.00"
            ],
            [
              "0.5100",
              "310.00"
            ]
          ]
        }
      }
    }
  }
}'

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

treg call singularity.agent-wallstreet-desk --data '{"operation": "harvest_signal", "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 does Kalshi's orderbook_fp only contain bid arrays?

Because YES + NO = $1.00 on a binary contract, a bid for NO at $0.51 is economically identical to an offer (ask) for YES at $0.49. Our parser derives implied asks automatically via Decimal('1.0000') - max(opposite_bids).

How do I avoid zero-quote Kalshi parlay markets when scanning?

Querying /events?status=open&with_nested_markets=true and filtering out mve_collection_ticker excludes empty multi-leg parlay stubs.

Does this API execute orders on Polymarket or Kalshi?

No. Agent-WallStreet-Desk is strictly a read-only quantitative market-data and risk modeling tool with zero brokerage, trade execution, or custody.

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.