{
  "openapi": "3.1.0",
  "info": {
    "title": "Axiocairn Clean V2 Quantitative US Equity Risk API & MCP",
    "version": "2.2.2",
    "description": "Quantitative US equity tail-risk analytics covering full US equities & ETFs (500 instant snapshot + NYSE/NASDAQ/AMEX on-demand; US daily equities (split & dividend adjusted; includes public Yahoo Finance market data through 2026-12-03), 2020-01-02 to 2026-12-03, as of 2026-12-03). Stress-tests portfolios across arbitrary crash severities (-5% short-term sell-offs and flash crashes to -60% systemic drawdowns) and custom crisis correlation jumps, with historical crisis presets, crash-day Downside Beta, constant-correlation crisis covariance, Euler risk-contribution shares, 13F crowding, zero-upload audit PDF attestation, Newey-West HAC alpha checks, and 20-day historical regime matching. Free core tools and keyless MCP trial; paid tiers from $19 Risk Pass to $29–$149/mo. Informational research only; not investment advice.",
    "termsOfService": "https://axiocairn.com/terms",
    "contact": {
      "name": "Axiocairn · Doing Nothing LLC",
      "email": "support@axiocairn.com",
      "url": "https://axiocairn.com"
    }
  },
  "servers": [
    {
      "url": "https://axiocairn.com",
      "description": "Axiocairn Production API"
    }
  ],
  "paths": {
    "/api/v2/bench": {
      "get": {
        "operationId": "checkPortfolioTailRisk",
        "summary": "Actual 2022 equal-weight daily-NAV portfolio MDD (null/illustrative when 2022 daily closes are incomplete) and each ticker's Euler share of crisis-state volatility",
        "parameters": [
          {
            "name": "tickers",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "NVDA,MSFT,META,TSLA,PLTR"
            },
            "description": "Comma-separated US equity or ETF symbols"
          },
          {
            "name": "usd",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "example": 180000
            },
            "description": "Portfolio notional value in USD"
          }
        ],
        "responses": {
          "200": {
            "description": "Actual 2022 equal-weight daily-NAV portfolio MDD (or illustrative mode with null exact MDD/USD fields when 2022 daily closes are incomplete), downside beta, calm vs crisis volatility, and Euler crisis-volatility shares"
          }
        }
      }
    },
    "/api/v2/port": {
      "get": {
        "operationId": "getPortFactorAttribution",
        "summary": "Bloomberg PORT-style factor sensitivity & exact Euler Risk Contribution (MRC_i = (Σ_crisis w)_i / σ_p, RC_i = w_i·MRC_i) across full US equities & ETFs",
        "parameters": [
          {
            "name": "tickers",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "NVDA,MSFT,META,TSLA,PLTR"
            }
          },
          {
            "name": "weights",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "30,25,20,15,10"
            },
            "description": "Optional comma-separated portfolio weights (normalized to 100%)"
          },
          {
            "name": "usd",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "example": 180000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Euler MRC_i, RC_i, risk shares, diversification benefit, Effective N, factor sensitivities, and mathematical ERC reference weights"
          }
        }
      }
    },
    "/api/v2/check/{ticker}": {
      "get": {
        "operationId": "checkSingleStockTailRisk",
        "summary": "Check a US stock's tail risk, static vs. crash-day downside beta, fat-tail CVaR99 ratio, and 10 historical regimes",
        "parameters": [
          {
            "name": "ticker",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "NVDA"
            },
            "description": "US stock or ETF ticker symbol"
          }
        ],
        "responses": {
          "200": {
            "description": "Quantitative risk profile and 10 matched historical volatility regimes"
          },
          "404": {
            "description": "Ticker not found in indexed US universe"
          }
        }
      }
    },
    "/api/v2/facts": {
      "get": {
        "operationId": "getDataProvenance",
        "summary": "Read data source disclosure, sample window, and methodology provenance",
        "responses": {
          "200": {
            "description": "Provenance metadata"
          }
        }
      }
    },
    "/facts.json": {
      "get": {
        "operationId": "getStructuredFacts",
        "summary": "Read structured one-sentence quotable answers, approved pricing, and platform overview",
        "responses": {
          "200": {
            "description": "Structured facts JSON for answer engines"
          }
        }
      }
    },
    "/api/v2/quick-check": {
      "get": {
        "operationId": "runThreeSecondQuickCheck",
        "summary": "3-second free tail-risk pre-check returning β⁺ vs β⁻ asymmetry, empirical ES99, and 13F institutional crowding score",
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "TSLA"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "3-second deterministic tail-risk pre-check"
          },
          "404": {
            "description": "Ticker not found"
          }
        }
      }
    },
    "/api/v2/composite-query": {
      "get": {
        "operationId": "runCompositeRiskQuery",
        "summary": "Multi-factor natural-language and structured screening across full US equities & ETFs (13F crowding, downside β⁻, ES99, fat-tail ratio)",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_downside_beta",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "min_crowding_score",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "min_es99_abs_pct",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "min_fat_tail",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Multi-factor composite screening output (Free capped at 5; Pro/Desk up to 25)"
          }
        }
      }
    },
    "/api/v2/indices/daily": {
      "get": {
        "operationId": "getDailyPublicIndices",
        "summary": "Daily 07:00 ET public Axiocairn Tail-Stress Index and 13F Crowding Index with canonical SHA-256 OpenTimestamps attestation",
        "responses": {
          "200": {
            "description": "Public benchmark indices JSON with OTS SHA-256 digest"
          }
        }
      }
    },
    "/api/v2/crisis-replay": {
      "get": {
        "operationId": "getFiveCrisisReplay",
        "summary": "Bloomberg WATC/ECST deterministic 5-crisis stress replay (2008 GFC, 2020 COVID, 2022 Rate Shock, 2024 Yen Carry, 1970s Stagflation) with shared-Y underwater curves, recovery days, and SHA-256 formula fingerprint",
        "responses": {
          "200": {
            "description": "5-crisis underwater drawdown replay JSON"
          }
        }
      },
      "post": {
        "operationId": "postFiveCrisisReplay",
        "summary": "Compute 5-crisis stress replay for custom tickers, weights, and portfolio_usd",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tickers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "weights": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  },
                  "portfolio_usd": {
                    "type": "number"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "5-crisis underwater drawdown replay JSON"
          }
        }
      }
    },
    "/api/v2/report-attestation": {
      "get": {
        "operationId": "getReportAttestation",
        "summary": "Zero-upload institutional PDF report formula SHA-256 attestation and entitlement verification (stores zero user holdings)",
        "responses": {
          "200": {
            "description": "Canonical formula SHA-256 attestation JSON"
          }
        }
      }
    },
    "/mcp/server-card": {
      "get": {
        "operationId": "getMcpServerCard",
        "summary": "Read Axiocairn MCP V2 server card and all 7 tool schemas",
        "responses": {
          "200": {
            "description": "MCP discovery manifest"
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "operationId": "invokeMcpJsonRpc",
        "summary": "Call Axiocairn MCP V2 JSON-RPC 2.0 endpoint (initialize, tools/list, tools/call across 7 quant risk tools)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "method"
                ],
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "enum": [
                      "2.0"
                    ]
                  },
                  "id": {
                    "type": [
                      "string",
                      "number",
                      "null"
                    ]
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "initialize",
                      "tools/list",
                      "tools/call"
                    ]
                  },
                  "params": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response"
          }
        }
      }
    }
  }
}