{"openapi": "3.1.0", "info": {"title": "Antigravity x402 v2 & MCP Agent Gateway", "version": "1.0.0", "description": "21 deterministic x402 v2 APIs for OFAC sanctions, token risk verdicts, Polymarket/Kalshi arb, portfolio VaR/Sharpe hedging, SEC Form 4/8-K/Form D, B2B email & LEI KYB, OSV/CISA supply-chain, ClinicalTrials/USASpending, UK property, and wind EYA/LCOE finance on Base & Polygon USDC.", "x-guidance": "Call POST /v1/email-b2b-verify ($0.004) for MX/SPF/DMARC & disposable email checks, POST /v1/package-supply-chain-audit ($0.005) for OSV.dev + EPSS + CISA KEV dependency gating, POST /v1/prediction-arb-pulse ($0.008) for Polymarket vs Kalshi implied odds & arbitrage, POST /v1/portfolio-tail-risk ($0.010) for Decimal VaR/CVaR, Deflated Sharpe & BTC beta hedge, POST /v1/sec-insider-8k-alpha ($0.010) for SEC Form 4 insider filings & 8-K catalysts, and POST /v1/biotech-gov-catalysts ($0.008) for ClinicalTrials.gov & USASpending awards, alongside sanctions-screen, token-risk-verdict, crypto-derivatives-pulse, uk-property-risk, gleif-lei-verify, and 10 security/regulatory/wind endpoints. Unpaid calls return HTTP 402 on Base & Polygon USDC.", "contact": {"name": "Antigravity Forge Operations", "email": "ops@antigravity-forge.io"}}, "servers": [{"url": "https://antigravity-x402-gateway.onrender.com"}], "externalDocs": {"url": "https://antigravity-x402-gateway.onrender.com/docs", "description": "x402 v2 & Streamable-HTTP MCP Developer Integration Guide"}, "paths": {"/v1/code-guard-scan": {"post": {"operationId": "scanAgentPayloadSecurity", "summary": "Deterministic AST & prompt-injection security scanner for agent outputs and code diffs", "description": "Scans untrusted agent tool outputs, prompts, or code patches for prompt-injection overrides, Unicode bidi trojans (CVE-2021-42574), leaked private keys, unsafe deserialization, shell injection, and exfiltration sinks in under 20 ms.", "tags": ["security", "prompt-injection", "ast", "verification"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.003000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["content"], "properties": {"content": {"type": "string", "description": "Code snippet, git diff, or untrusted agent tool output text to scan (up to 120,000 chars)."}, "language": {"type": "string", "description": "Optional language hint: 'auto' (default), 'python', or 'text'."}}}, "example": {"content": "def add(a: int, b: int) -> int:\n    return a + b\n", "language": "python"}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"verdict": "CLEAN", "safe_to_execute": true, "risk_score": 0, "safety_score": 100, "findings_count": 0, "ast_analyzed": true, "character_length": 49, "findings": []}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/security-posture": {"post": {"operationId": "auditDomainSecurityPosture", "summary": "Passive 4-pillar TLS, OWASP HTTP header, DNS SPF/DMARC/CAA, and RFC 9116 security.txt audit", "description": "Performs a 100% passive, non-intrusive security posture audit of any public domain across TLS 1.2/1.3 & X.509 hygiene (25 pts), OWASP HTTP headers (40 pts), DoH SPF/DMARC/CAA (30 pts), and RFC 9116 /.well-known/security.txt (5 pts), returning a 0-100 score, A+..F grade, and fixes.", "tags": ["security", "tls", "owasp", "dns", "compliance"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.005000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["domain"], "properties": {"domain": {"type": "string", "description": "Public domain or hostname to audit passively (e.g., 'cloudflare.com')."}}}, "example": {"domain": "cloudflare.com"}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"domain": "cloudflare.com", "apex_domain": "cloudflare.com", "score": 100, "max_score": 100, "grade": "A+", "remediations": []}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/wind-lcoe": {"post": {"operationId": "computeWindLcoeAndEya", "summary": "Weibull P50/P75/P90 Wind Energy Yield Assessment (EYA) & exact-Decimal LCOE/IRR/DSCR calculator", "description": "Computes IEC-grounded Weibull P50/P75/P90 net annual energy production (MWh) with RSS uncertainty and exact Decimal project finance metrics (Total CAPEX, LCOE $/MWh, NPV, Project IRR %, Min P90 DSCR).", "tags": ["finance", "energy", "wind", "lcoe", "calculator"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.005000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["capacity_mw"], "properties": {"capacity_mw": {"type": ["string", "number"], "description": "Installed wind farm nameplate capacity in MW (0.5 to 5000)."}, "mean_wind_speed_ms": {"type": ["string", "number"], "description": "Hub-height annual mean wind speed in m/s (default '7.8')."}, "weibull_k": {"type": ["string", "number"], "description": "Weibull shape parameter k between 1.2 and 4.0 (default '2.1')."}, "capex_usd_per_kw": {"type": ["string", "number"], "description": "Total installed CAPEX in USD per kW (default '1350')."}, "opex_usd_per_kw_yr": {"type": ["string", "number"], "description": "Annual O&M OPEX in USD per kW-year (default '36')."}, "discount_rate_pct": {"type": ["string", "number"], "description": "Nominal WACC / discount rate percentage (default '8.0')."}, "ppa_price_usd_per_mwh": {"type": ["string", "number"], "description": "Power Purchase Agreement tariff in USD per MWh (default '78.0')."}, "wake_loss_pct": {"type": ["string", "number"], "description": "Array wake loss percentage between 0 and 30 (default '7.5')."}, "project_years": {"type": "integer", "description": "Operating project lifetime in years between 5 and 35 (default 20)."}}}, "example": {"capacity_mw": "50", "mean_wind_speed_ms": "7.8", "weibull_k": "2.1", "capex_usd_per_kw": "1350", "opex_usd_per_kw_yr": "36", "discount_rate_pct": "8.0", "ppa_price_usd_per_mwh": "78.0", "wake_loss_pct": "7.5", "project_years": 20}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"capacity_mw": "50", "eya": {"aep_p50_mwh": "161245.20", "aep_p90_mwh": "143680.10"}, "finance_usd": {"lcoe_usd_per_mwh": "53.78", "project_irr_pct": "12.40", "min_dscr_p90": "1.38"}}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/sec-form-d-leads": {"post": {"operationId": "fetchSecFormDStartupLeads", "summary": "Live SEC EDGAR Form D private startup funding & executive roster intelligence", "description": "Queries official SEC EDGAR EFTS Form D filings from the past 120 days and parses XML primary documents to return exact Decimal USD offering amounts, amounts sold, states, and executive rosters.", "tags": ["sec", "edgar", "startups", "funding", "leads"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.010000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["query"], "properties": {"query": {"type": "string", "description": "Keyword or company query for SEC EDGAR Form D search (e.g., 'AI', 'robotics', 'biotech')."}, "limit": {"type": "integer", "description": "Maximum number of parsed Form D filings to return (1 to 5, default 3)."}}}, "example": {"query": "AI", "limit": 3}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"query": "AI", "count": 1, "filings": [{"accession_number": "0002166434-26-000001", "entity_name": "Example AI Corp", "total_amount_sold_usd": "1500000"}]}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/substack-intel": {"post": {"operationId": "analyzeSubstackNewsletter", "summary": "Substack newsletter engagement metrics, publishing cadence, and sponsor domain detector", "description": "Analyzes any public Substack newsletter or custom-domain Substack publication to extract recent posts, publishing cadence (posts/week), average likes/comments/restacks, outbound links, and probable sponsor/advertiser domains.", "tags": ["substack", "newsletter", "sponsors", "marketing", "intelligence"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.005000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["publication"], "properties": {"publication": {"type": "string", "description": "Substack subdomain, handle, or custom domain URL (e.g., 'importai.substack.com')."}, "max_posts": {"type": "integer", "description": "Maximum number of recent archive posts to analyze (1 to 12, default 5)."}}}, "example": {"publication": "importai.substack.com", "max_posts": 5}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"publication_host": "importai.substack.com", "posts_analyzed": 5, "estimated_posts_per_week": 1.02, "avg_reactions_per_post": 54.4, "sponsor_candidate_domains": []}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/fdic-bank-health": {"post": {"operationId": "fetchFdicBankHealth", "summary": "Official FDIC BankFind US bank balance-sheet, deposits, equity ratio, and ROA/ROE snapshot", "description": "Queries official FDIC BankFind Suite institutions data to return active US bank total assets, total deposits, equity capital, exact Decimal equity-to-assets ratio, ROA %, ROE %, and CERT ID.", "tags": ["fdic", "banking", "finance", "solvency", "compliance"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.005000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["query"], "properties": {"query": {"type": "string", "description": "Active FDIC-insured institution name keyword (e.g., 'JPMorgan', 'Citibank', 'Silicon')."}, "limit": {"type": "integer", "description": "Maximum number of matching FDIC institutions to return (1 to 10, default 3)."}}}, "example": {"query": "JPMorgan", "limit": 3}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"query": "JPMorgan", "count": 1, "institutions": [{"name": "JPMorgan Chase Bank, National Association", "fdic_cert": 628, "equity_to_assets_pct": "9.42"}]}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/openfda-recalls": {"post": {"operationId": "fetchOpenFdaRecalls", "summary": "Live US FDA openFDA food, drug, and medical device enforcement recall intelligence", "description": "Queries official US FDA openFDA enforcement feeds across food, drug, or medical device recalls, returning recall numbers, Class I/II/III severity, recalling firms, product descriptions, and reasons.", "tags": ["fda", "recalls", "healthcare", "food-safety", "regulatory"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.005000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["category"], "properties": {"category": {"type": "string", "description": "FDA enforcement category: 'food', 'drug', or 'device'."}, "query": {"type": "string", "description": "Optional keyword filter across recall reason and product description (e.g., 'allergen', 'listeria')."}, "limit": {"type": "integer", "description": "Maximum number of recall records to return (1 to 10, default 5)."}}}, "example": {"category": "food", "query": "allergen", "limit": 4}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"category": "food", "count": 4, "recalls": [{"recall_number": "F-0101-2026", "classification": "Class I"}]}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/cisa-kev-check": {"post": {"operationId": "checkCisaKevExploits", "summary": "Live CISA Known Exploited Vulnerabilities (KEV) active-exploitation & ransomware lookup", "description": "Checks any CVE identifier or vendor/product keyword against the live CISA Known Exploited Vulnerabilities (KEV) catalog, returning active exploitation status, ransomware usage, due dates, and CWEs.", "tags": ["cisa", "cve", "kev", "vulnerabilities", "cybersecurity"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.004000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["query"], "properties": {"query": {"type": "string", "description": "Exact CVE ID (e.g., 'CVE-2024-21762') or vendor/product keyword (e.g., 'Fortinet', 'Ivanti')."}, "limit": {"type": "integer", "description": "Maximum matching KEV entries to return (1 to 15, default 5)."}}}, "example": {"query": "Fortinet", "limit": 5}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"query": "Fortinet", "actively_exploited": true, "matched_count": 5}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/rdap-domain-recon": {"post": {"operationId": "reconRdapDomain", "summary": "Authoritative IANA RDAP domain registrar, creation/expiry dates, DNSSEC, and nameserver recon", "description": "Queries authoritative IANA RDAP registries for any public domain to extract registrar identity, registration and expiration timestamps, EPP status flags, DNSSEC delegation status, and nameservers.", "tags": ["rdap", "whois", "domain", "dnssec", "recon"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.004000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["domain"], "properties": {"domain": {"type": "string", "description": "Public domain name to query via IANA RDAP (e.g., 'cloudflare.com')."}}}, "example": {"domain": "cloudflare.com"}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"domain": "cloudflare.com", "dnssec_signed": true, "nameservers": ["ns3.cloudflare.com", "ns4.cloudflare.com"]}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/wind-live-eya": {"post": {"operationId": "assessLiveWindEya", "summary": "Live Open-Meteo 100m wind telemetry + IEC 61400-12 hub-height Weibull EYA & Decimal LCOE", "description": "Fetches live hourly 100m wind speed, temperature, and pressure for any global (latitude, longitude), applies IEC 61400-12 shear & air-density scaling to hub height, fits Weibull k, and computes P50/P90 AEP & LCOE.", "tags": ["wind", "open-meteo", "energy", "weibull", "lcoe"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.008000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["latitude", "longitude"], "properties": {"latitude": {"type": "number", "description": "Site WGS84 latitude between -90 and 90 (e.g., 10.60)."}, "longitude": {"type": "number", "description": "Site WGS84 longitude between -180 and 180 (e.g., 106.85)."}, "hub_height_m": {"type": "number", "description": "Turbine hub height in meters between 40 and 220 (default 120)."}, "capacity_mw": {"type": ["string", "number"], "description": "Planned wind farm nameplate capacity in MW (default '50')."}, "ppa_price_usd_per_mwh": {"type": ["string", "number"], "description": "Power Purchase Agreement tariff in USD per MWh (default '78.0')."}}}, "example": {"latitude": 10.6, "longitude": 106.85, "hub_height_m": 120, "capacity_mw": "50"}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"site": {"latitude": 10.6, "longitude": 106.85, "hub_height_m": 120.0}, "eya": {"aep_p50_mwh": "148200.00"}, "finance_usd": {"lcoe_usd_per_mwh": "56.40"}}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/sanctions-screen": {"post": {"operationId": "screenOfacSanctions", "summary": "Official US Treasury OFAC SDN sanctions screening for names, entities, vessels, and crypto wallets", "description": "Screens any individual, company, vessel, or Base/Ethereum/Bitcoin/Solana/Tron cryptocurrency wallet address against the live US Treasury OFAC Specially Designated Nationals (SDN) list in under 15 ms.", "tags": ["sanctions", "ofac", "aml", "kyc", "compliance", "screening"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.006000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["query"], "properties": {"query": {"type": "string", "description": "Person, company, organization, vessel name, or cryptocurrency wallet address to screen against OFAC SDN."}, "wallet_address": {"type": "string", "description": "Optional explicit EVM (0x...) or Solana/Bitcoin address for exact OFAC Digital Currency Address matching."}, "min_score": {"type": "number", "description": "Fuzzy token-coverage match threshold between 0.50 and 1.00 (default 0.75)."}}}, "example": {"query": "Lazarus Group", "wallet_address": "", "min_score": 0.75}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"verdict": "SANCTIONED_MATCH", "sanctioned": true, "name_matches_count": 1}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/token-risk-verdict": {"post": {"operationId": "evaluateTokenRiskVerdict", "summary": "Multi-chain Base/ETH/BSC/Polygon/Arbitrum/Solana token honeypot, tax & liquidity risk verdict", "description": "Combines GoPlus contract security telemetry (honeypot, mintable, freeze authority, proxy, buy/sell tax, top-10 holder concentration) with live DexScreener USD liquidity, 24h volume, and FDV into a 0-100 safety verdict.", "tags": ["token-verdict", "on-chain-analytics", "honeypot", "defi", "base", "solana"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.008000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["token_address"], "properties": {"token_address": {"type": "string", "description": "0x EVM token contract address or case-sensitive Solana Base58 mint address."}, "chain": {"type": "string", "description": "Target blockchain: 'base' (default), 'ethereum', 'bsc', 'polygon', 'arbitrum', or 'solana'."}}}, "example": {"token_address": "0x940181a94a35a4569e4529a3cdfb74e38fd98631", "chain": "base"}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"symbol": "AERO", "chain": "base", "verdict": "SAFE", "safety_score": 90}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/crypto-derivatives-pulse": {"post": {"operationId": "fetchCryptoDerivativesPulse", "summary": "Live perpetual funding rates, annualized carry APY %, open interest & Deribit BTC/ETH DVOL", "description": "Returns real-time Hyperliquid L1 perpetual mark/oracle basis (bps), hourly & annualized funding carry APY %, USD open interest, 24h volume, and Deribit 30-day BTC/ETH options implied volatility index (DVOL).", "tags": ["derivatives", "options", "funding-rates", "volatility", "trading", "risk-and-hedging"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.005000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "properties": {"symbols": {"type": "array", "description": "List of perpetual ticker symbols to query (up to 12, default ['BTC','ETH','SOL','XRP','HYPE']).", "items": {"type": "string"}}}}, "example": {"symbols": ["BTC", "ETH", "SOL", "XRP", "HYPE"]}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"markets_count": 5, "options_implied_volatility": {"btc_dvol_30d_iv": 52.7, "eth_dvol_30d_iv": 61.4}}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/uk-property-risk": {"post": {"operationId": "auditUkPropertyPostcode", "summary": "UK Property Postcode Due Diligence: ONS geodemographics, Environment Agency flood zones & street crime", "description": "Audits any UK property postcode across ONS/Postcodes.io administrative boundaries, UK Environment Agency nearby 3km river/coastal flood zones, and UK Home Office Police street-level crime incidents by category.", "tags": ["uk-property", "real-estate", "flood-risk", "geospatial", "uk"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.006000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["postcode"], "properties": {"postcode": {"type": "string", "description": "Valid United Kingdom postcode (e.g., 'SW1A 1AA', 'E14 5AB', 'M1 1AE')."}}}, "example": {"postcode": "SW1A 1AA"}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"postcode": "SW1A 1AA", "admin_district": "Westminster", "flood_risk_3km": {"risk_band": "ELEVATED"}}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/gleif-lei-verify": {"post": {"operationId": "verifyGleifLeiEntity", "summary": "Global KYB Corporate Legal Entity Identifier (GLEIF LEI), jurisdiction & active status verifier", "description": "Verifies corporate counterparties via the official GLEIF Global LEI Index by legal entity name or 20-char LEI code, returning active/lapsed registration status, legal jurisdiction, headquarters, and BIC mappings.", "tags": ["gleif", "lei", "kyb", "corporate-registry", "compliance", "verification"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.005000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["query"], "properties": {"query": {"type": "string", "description": "Company legal name (e.g., 'Apple Inc.', 'BlackRock') or exact 20-character alphanumeric LEI code."}, "limit": {"type": "integer", "description": "Maximum matching LEI entity records to return (1 to 10, default 3)."}}}, "example": {"query": "Apple Inc.", "limit": 2}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"query": "Apple Inc.", "count": 1, "entities": [{"lei": "HWUPKR0MPOU8FGXBT394", "entity_status": "ACTIVE"}]}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/prediction-arb-pulse": {"post": {"operationId": "scanPredictionMarketArb", "summary": "Live Polymarket & Kalshi cross-venue prediction market odds, bid-ask vig %, and arbitrage scanner", "description": "Scans active Polymarket Gamma CLOB and CFTC-regulated Kalshi v2 event contracts in real time, computing exact Decimal implied probabilities, market-maker vig %, top liquid contracts, and fuzzy-matched cross-venue pairs with probability divergence and gross arbitrage edge %.", "tags": ["prediction-markets", "polymarket", "kalshi", "arbitrage", "odds", "trading-signals"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.008000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "properties": {"query": {"type": "string", "description": "Optional case-insensitive topic filter (e.g., 'Fed', 'Bitcoin', 'Trump', 'NATO', 'recession', or '' for top volume)."}, "limit": {"type": "integer", "description": "Maximum contracts per venue and cross-venue arbitrage pairs to return (1 to 25, default 8)."}}}, "example": {"query": "NATO", "limit": 8}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"query": "NATO", "query_matched_count": 5, "fallback_to_top_volume": false, "cross_venue_pairs_count": 2}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/portfolio-tail-risk": {"post": {"operationId": "computePortfolioTailRisk", "summary": "Institutional crypto portfolio Value at Risk (95%/99% VaR), CVaR, Sharpe/Sortino/PSR & BTC beta hedge", "description": "Computes exact-Decimal daily 95% and 99% Value at Risk (VaR), 95% Expected Shortfall (CVaR), annualized volatility, max drawdown, Sharpe, Sortino, Probabilistic/Deflated Sharpe confidence, and minimum-variance BTC short hedge USD notional from aligned DefiLlama daily price history.", "tags": ["risk-and-hedging", "value-at-risk", "portfolio-risk", "sharpe", "fx-hedge", "cvar", "quant"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.010000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "properties": {"assets": {"type": "array", "description": "Portfolio weights (shorthand tickers BTC/ETH/SOL/LINK/UNI/AAVE/ARB/OP or 'coingecko:...' IDs).", "items": {"type": "object", "additionalProperties": false, "required": ["coin", "weight"], "properties": {"coin": {"type": "string"}, "weight": {"type": "number"}}}}, "portfolio_value_usd": {"type": ["string", "number"], "description": "Total portfolio notional in USD for dollar VaR/CVaR and hedge sizing (default '100000')."}, "lookback_days": {"type": "integer", "description": "Historical daily lookback window in UTC days between 14 and 90 (default 60)."}}}, "example": {"assets": [{"coin": "BTC", "weight": 0.5}, {"coin": "ETH", "weight": 0.3}, {"coin": "SOL", "weight": 0.2}], "portfolio_value_usd": "100000", "lookback_days": 60}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"portfolio_value_usd": "100000.00", "var_95_daily_pct": "3.8420", "cvar_95_expected_shortfall_pct": "5.1140", "btc_beta": "1.0642", "recommended_btc_short_hedge_usd": "106420.00"}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/sec-insider-8k-alpha": {"post": {"operationId": "fetchSecInsiderAnd8k", "summary": "Live SEC EDGAR Form 4 insider transactions & decoded Form 8-K earnings/material event catalysts", "description": "Resolves any US public equity ticker, 10-digit CIK, company name, or theme against SEC EDGAR submissions and EFTS full-text index to extract recent Form 4 insider filings, decoded Form 8-K item catalysts (1.01 Material Agreement, 2.02 Earnings, 5.02 Officer Change, 7.01 Reg FD, 8.01 Other), and 90-day activity band.", "tags": ["sec-edgar", "insider-trading", "form-4", "8-k", "earnings", "equities", "corporate-catalysts"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.010000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "properties": {"query": {"type": "string", "description": "Stock ticker (e.g., 'NVDA', 'AAPL', 'MSFT', 'TSLA', 'COIN'), 10-digit CIK, company name, or event keyword."}, "limit": {"type": "integer", "description": "Maximum recent Form 4 and Form 8-K filings to return (1 to 25, default 8)."}}}, "example": {"query": "NVDA", "limit": 8}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"query": "NVDA", "ticker": "NVDA", "catalyst_activity_band": "HIGH", "filings_returned": 8}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/email-b2b-verify": {"post": {"operationId": "verifyB2bEmailDeliverability", "summary": "B2B corporate email deliverability, disposable/burner filter, DoH MX/SPF/DMARC & RDAP domain age verifier", "description": "Verifies a single email or batch of up to 20 emails via RFC 5322 + IDNA normalization, role-inbox and 90+ disposable burner domain rejection, live RFC 8427 DNS-over-HTTPS MX provider classification (Google Workspace, Microsoft 365, Cloudflare, Proton, Proofpoint, Mimecast, Custom), SPF/DMARC posture, and RDAP domain registration age (< 30 days fraud flag).", "tags": ["email-verification", "b2b", "deliverability", "disposable-email", "dmarc", "kyb"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.004000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "properties": {"email": {"type": "string", "description": "Single email address to verify (e.g., 'tim@apple.com'). Provide either 'email' or 'emails'."}, "emails": {"type": "array", "description": "Batch of 1 to 20 email addresses to verify in a single request.", "items": {"type": "string"}}}}, "example": {"emails": ["tim@apple.com", "test@mailinator.com"]}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"email": "tim@apple.com", "deliverability_verdict": "DELIVERABLE_CORPORATE", "is_b2b_corporate": true, "quality_score": 100, "mx_provider": "Custom", "batch_count": 2, "deliverable_corporate_count": 1}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/package-supply-chain-audit": {"post": {"operationId": "auditPackageSupplyChain", "summary": "SBOM & open-source package vulnerability audit via OSV.dev, FIRST.org EPSS & CISA KEV release gate", "description": "Audits 1 to 50 open-source dependencies across npm, PyPI, Crates.io, Go, and Maven against Google OSV.dev querybatch, enriches discovered CVEs with live FIRST.org EPSS 30-day exploitation probabilities and CISA Known Exploited Vulnerabilities (KEV) status, and returns minimum fixed versions plus a deterministic CI/CD release gate.", "tags": ["package-vulnerability", "sbom", "osv", "cve", "epss", "cisa-kev", "supply-chain"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.005000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "properties": {"packages": {"type": "array", "description": "List of 1 to 50 package objects ({ecosystem, name, version}) to audit.", "items": {"type": "object", "additionalProperties": false, "required": ["ecosystem", "name", "version"], "properties": {"ecosystem": {"type": "string", "description": "Package ecosystem: 'npm', 'PyPI', 'Crates.io', 'Go', or 'Maven' (common aliases accepted)."}, "name": {"type": "string", "description": "Exact package name in the target ecosystem."}, "version": {"type": "string", "description": "Installed or pinned package version string."}}}}, "ecosystem": {"type": "string", "description": "Shorthand single-package ecosystem ('npm', 'PyPI', 'Crates.io', 'Go', 'Maven')."}, "name": {"type": "string", "description": "Shorthand single-package name (e.g., 'lodash')."}, "version": {"type": "string", "description": "Shorthand single-package version (e.g., '4.17.19')."}}}, "example": {"packages": [{"ecosystem": "npm", "name": "lodash", "version": "4.17.19"}, {"ecosystem": "PyPI", "name": "requests", "version": "2.32.3"}]}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"release_gate": "BLOCK_HIGH_SEVERITY", "packages_audited_count": 2, "vulnerable_packages_count": 2, "kev_exploited_count": 0, "max_epss_probability": 0.20158}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}, "/v1/biotech-gov-catalysts": {"post": {"operationId": "fetchBiotechAndGovContracts", "summary": "Live FDA/NIH ClinicalTrials.gov v2 study catalysts & USASpending.gov federal contract awards", "description": "Queries ClinicalTrials.gov API v2 for phase, status, sponsor, conditions, and primary completion dates alongside USASpending.gov API v2 prime federal contract awards sorted by exact Decimal USD obligation amount.", "tags": ["clinical-trials", "biotech", "federal-contracts", "usaspending", "govcon", "catalysts"], "x-payment-info": {"price": {"mode": "fixed", "currency": "USDC", "amount": "0.008000"}, "protocols": [{"x402": {}}]}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["query"], "properties": {"query": {"type": "string", "description": "Company, drug/therapy, pathogen, or technology keyword (e.g., 'Pfizer', 'GLP-1', 'Palantir')."}, "mode": {"type": "string", "description": "Data source selector: 'both' (default), 'clinical_trials', or 'federal_contracts'."}, "limit": {"type": "integer", "description": "Maximum records per source to return (1 to 10, default 5)."}}}, "example": {"query": "Pfizer", "mode": "both", "limit": 5}}}}, "responses": {"200": {"description": "Verified deterministic result with PAYMENT-RESPONSE settlement receipt.", "content": {"application/json": {"schema": {"type": "object"}, "example": {"ok": true, "result": {"query": "Pfizer", "mode": "both", "clinical_trials_count": 5, "federal_contracts_count": 5, "total_returned_award_amount_usd": "8945120340.00"}}}}}, "402": {"description": "Payment Required — x402 v2 PAYMENT-REQUIRED header and accepts[] envelope."}}}}}}