how_to · clinical_trials · $0.025 on material status change ($0 on unchanged polls)

ClinicalTrials.gov v2 Biotech Catalyst Webhook API (Phase 3 Alerts)

Target Query: ClinicalTrials biotech catalyst webhook API · Source Family: clinical_trials · MCP Tool: quantdesk_watch_diff · Seed: 42 · Receipt: f8faf7b48e63ce4d...

Direct Answer: Monitor NIH ClinicalTrials.gov API v2 Industry Phase 3 completions, terminations, hasResults flips, and whyStopped safety disclosures using compact field projections (1.9 KB / 0.8s) and HMAC-SHA256 X-QuantDesk-Signature webhooks that bill strictly $0 whenever a trial remains unchanged. On the deterministic 10,000-trial Decimal risk profile (seed=42, horizon_days=21, capital $100,000), 95% Value-at-Risk is 16.69% ($16,690), 99% Expected Shortfall (cvar_99) is 31.16% ($31,160), conservative half_kelly_cap is 25.00%, and empty, unchanged, fake-200, or SSRF-blocked calls strictly bill $0.

Phase-Weighted Clinical Trial Catalyst Transition Score

Verified Public Endpoints & Production Field Paths

Source / ComponentEndpoint / ContractExact Field Paths & Guards
v2 Phase 3 Searchhttps://clinicaltrials.gov/api/v2/studies?filter.overallStatus=COMPLETED,TERMINATED,ACTIVE_NOT_RECRUITING&fields=NCTId,OverallStatus,Phase,HasResults,WhyStopped$.studies[*].protocolSection.{identificationModule.nctId,statusModule.overallStatus}
v2 Single Studyhttps://clinicaltrials.gov/api/v2/studies/NCT04280705$.protocolSection.designModule.{phases,enrollmentInfo.count}, $.hasResults
Sponsor Alignment$.protocolSection.sponsorCollaboratorsModule.leadSponsorleadSponsor.name + leadSponsor.class ('INDUSTRY' vs 'NIH')

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)-16.69% / +6.44% / +30.78% (mean +6.79%, std 14.39%)
VaR 95 / CVaR 95 (Expected Shortfall)16.69% ($16,690) / 22.80%
VaR 99 / CVaR 99 (Extreme Tail)26.65% / 31.16% ($31,160)
Max Drawdown (95th) / Ruin Prob20.33% / 0.09%
Half-Kelly Cap & SHA-256 Receipt25.00% · f8faf7b48e63ce4d0837bde7...
Inline 10,000-Trial Return Distribution SVG
ClinicalTrials.gov v2 Biotech Catalyst Webhook API... (10,000 Trials, Seed 42) VaR 95 P50 P95 -30.9%-11.6%+7.7%+27.0%+46.3% VaR95: 16.69% | CVaR95: 22.80% | CVaR99: 31.16% | Half-Kelly: 25.00%
Inline Tornado Sensitivity Ranking SVG
Tornado Sensitivity Ranking (CVaR 95 Swing & Variance Share) #1 jump_severity swing 8.20% (40.9%) #2 volatility swing 7.11% (30.7%) #3 horizon_days swing 4.81% (14.0%) #4 expected_return swing 4.65% (13.1%) #5 fee_slippage_drag swing 1.40% (1.2%) 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_severity18.99%27.19%8.20% (40.9%)negative
#2volatility19.31%26.42%7.11% (30.7%)negative
#3horizon_days20.09%24.90%4.81% (14.0%)negative
#4expected_return24.83%20.18%4.65% (13.1%)positive
#5fee_slippage_drag22.64%24.04%1.40% (1.2%)negative

Canonical Schema Response Excerpt (/v1/desk/watch-diff)

{
  "watch_id": "ctgov_NCT03937154",
  "source_type": "clinical_trials",
  "changed": true,
  "change_reason": "status_transition:ACTIVE_NOT_RECRUITING->COMPLETED;hasResults:false->true",
  "webhook_emitted": true,
  "webhook": {
    "headers": {
      "X-QuantDesk-Signature": "sha256=9c4e..."
    }
  },
  "billed_micros": 25000
}

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/watch-diff):

curl -fsSL -X POST "https://quantdesk.fastmesh.dev/v1/desk/watch-diff" \
  -H "Content-Type: application/json" \
  -d '{
  "watch_id": "ctgov_NCT03937154",
  "source_type": "clinical_trials",
  "raw_payload": {
    "protocolSection": {
      "identificationModule": {
        "nctId": "NCT03937154",
        "briefTitle": "Phase 3 Romiplostim NSCLC/Breast/Ovarian Trial"
      },
      "statusModule": {
        "overallStatus": "COMPLETED",
        "primaryCompletionDateStruct": {
          "date": "2026-10-19"
        }
      },
      "sponsorCollaboratorsModule": {
        "leadSponsor": {
          "name": "Amgen",
          "class": "INDUSTRY"
        }
      },
      "designModule": {
        "phases": [
          "PHASE3"
        ],
        "enrollmentInfo": {
          "count": 145
        }
      }
    },
    "hasResults": true
  }
}'

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

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_watch_diff",
    "arguments": {
      "watch_id": "ctgov_NCT03937154",
      "source_type": "clinical_trials",
      "raw_payload": {
        "protocolSection": {
          "identificationModule": {
            "nctId": "NCT03937154",
            "briefTitle": "Phase 3 Romiplostim NSCLC/Breast/Ovarian Trial"
          },
          "statusModule": {
            "overallStatus": "COMPLETED",
            "primaryCompletionDateStruct": {
              "date": "2026-10-19"
            }
          },
          "sponsorCollaboratorsModule": {
            "leadSponsor": {
              "name": "Amgen",
              "class": "INDUSTRY"
            }
          },
          "designModule": {
            "phases": [
              "PHASE3"
            ],
            "enrollmentInfo": {
              "count": 145
            }
          }
        },
        "hasResults": true
      }
    }
  }
}'

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

treg call singularity.agent-wallstreet-desk --data '{"operation": "watch_diff", "source_type": "clinical_trials", "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 unprojected ClinicalTrials.gov v2 queries time out in agent pipelines?

Omitting the fields= parameter returns massive multi-hundred-kilobyte protocol and results blobs (739 KB / 20s for just 3 studies). Passing compact field projections shrinks the exact same scan to 1.9 KB in ~0.8s.

Am I charged if a monitored NCT trial has not changed since the last check?

No. Stage 3 watch-diff compares canonical SHA-256 hashes in SQLite and strictly sets billed_micros = 0 and webhook_emitted = false when no material status, results, or timeline change occurred.

How do I authenticate incoming ClinicalTrials webhook alerts?

Verify the X-QuantDesk-Signature header (sha256=<hex>) via constant-time HMAC-SHA256 over the raw JSON request body using your configured webhook secret.

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.