calculator · prediction_spread · $0.05 per 10,000-trial sizing audit ($0 on HTTP 422)

Half-Kelly Position Sizing Calculator & Ruin Cap API

Target Query: half Kelly position sizing calculator API · Source Family: prediction_spread · MCP Tool: quantdesk_risk_simulate · Seed: 42 · Receipt: c926396276b76f1d...

Direct Answer: Compute conservative Half-Kelly capital allocation caps directly from 10,000-trial Decimal Monte Carlo jump-diffusion return distributions—paired with ruin probability, max drawdown, and VaR 99 constraints to stop autonomous agents from over-sizing noisy signals. On the deterministic 10,000-trial Decimal risk profile (seed=42, horizon_days=21, capital $100,000), 95% Value-at-Risk is 8.56% ($8,560), 99% Expected Shortfall (cvar_99) is 19.50% ($19,500), conservative half_kelly_cap is 25.00%, and empty, unchanged, fake-200, or SSRF-blocked calls strictly bill $0.

Fractional Half-Kelly Sizing Formula with Hard Institutional Cap

Verified Public Endpoints & Production Field Paths

Source / ComponentEndpoint / ContractExact Field Paths & Guards
Risk EndpointPOST https://quantdesk.fastmesh.dev/v1/desk/risk-simulateinputs: expected_return, volatility, jump_prob, jump_mean, horizon_days, initial_capital, seed, trials
Sizing Outputrisk_simulation.half_kelly_capDecimal-quantized fraction in [0.0000, 0.2500]
Survival Guardsrisk_simulation.{ruin_probability,max_drawdown,cvar_99}Empirical 10,000-trial path & tail drawdown metrics

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

Trials / Seed / Horizon10,000 trials · seed 42 · 21 trading days · $100,000 notional
Return Quantiles (P5 / P50 / P95)-8.56% / +6.20% / +21.69% (mean +6.35%, std 9.25%)
VaR 95 / CVaR 95 (Expected Shortfall)8.56% ($8,560) / 13.11%
VaR 99 / CVaR 99 (Extreme Tail)15.90% / 19.50% ($19,500)
Max Drawdown (95th) / Ruin Prob11.27% / 0.00%
Half-Kelly Cap & SHA-256 Receipt25.00% · c926396276b76f1de8c09cb0...
Inline 10,000-Trial Return Distribution SVG
Half-Kelly Position Sizing Calculator & Ruin Cap API (10,000 Trials, Seed 42) VaR 95 P50 P95 -19.1%-6.6%+6.0%+18.6%+31.2% VaR95: 8.56% | CVaR95: 13.11% | CVaR99: 19.50% | Half-Kelly: 25.00%
Inline Tornado Sensitivity Ranking SVG
Tornado Sensitivity Ranking (CVaR 95 Swing & Variance Share) #1 volatility swing 6.10% (37.4%) #2 expected_return swing 5.22% (27.5%) #3 horizon_days swing 4.10% (17.0%) #4 jump_severity swing 4.00% (16.1%) #5 fee_slippage_drag swing 1.40% (2.0%) 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
#1volatility10.07%16.17%6.10% (37.4%)negative
#2expected_return15.54%10.32%5.22% (27.5%)positive
#3horizon_days10.82%14.92%4.10% (17.0%)negative
#4jump_severity11.29%15.29%4.00% (16.1%)negative
#5fee_slippage_drag13.07%14.47%1.40% (2.0%)negative

Canonical Schema Response Excerpt (/v1/desk/risk-simulate)

{
  "seed": 42,
  "trials": 10000,
  "mean_return": 0.0605,
  "std_return": 0.1421,
  "half_kelly_cap": 0.1498,
  "max_drawdown": 0.2415,
  "ruin_probability": 0.0082,
  "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/risk-simulate):

curl -fsSL -X POST "https://quantdesk.fastmesh.dev/v1/desk/risk-simulate" \
  -H "Content-Type: application/json" \
  -d '{
  "expected_return": 0.068,
  "volatility": 0.28,
  "jump_prob": 0.05,
  "jump_mean": -0.15,
  "horizon_days": 21,
  "initial_capital": 100000,
  "seed": 42,
  "trials": 10000
}'

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

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_risk_simulate",
    "arguments": {
      "expected_return": 0.068,
      "volatility": 0.28,
      "jump_prob": 0.05,
      "jump_mean": -0.15,
      "horizon_days": 21,
      "initial_capital": 100000,
      "seed": 42,
      "trials": 10000
    }
  }
}'

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

treg call singularity.agent-wallstreet-desk --data '{"operation": "risk_simulate", "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 use Half-Kelly capped at 25% instead of uncapped Full Kelly?

Full Kelly maximizes asymptotic log growth only when mean and variance are known with zero estimation error. Under parameter uncertainty and binary jumps, Half-Kelly cuts drawdown variance by 75% while preserving 75% of theoretical growth rate.

What does half_kelly_cap return when expected edge is negative?

Whenever post-fee expected excess return is zero or negative, half_kelly_cap deterministically clamps to 0.0000.

Is half_kelly_cap personalized investment advice?

No. It is a deterministic mathematical calculation over caller-supplied parameters and public disclosure metrics, provided strictly as quantitative engineering software.

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.