# Lone Star Oracle Portfolio Risk Analyzer

> Lone Star Oracle Portfolio Risk Analyzer is a paid API for AI agents from portfolio.lonestaroracle.xyz, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Analyzes a portfolio's risk profile including concentration risk, volatility, and correlation across holdings

## Facts

- Endpoint: GET https://portfolio.lonestaroracle.xyz/analyze
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/portfolio-lonestaroracle-xyz-d243a206
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AFKEsW50eUBdA40RZjDFd

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability portfolio-lonestaroracle-xyz-d243a206
```

Example prompt: Can you run a risk analysis on my portfolio — I'm holding 40% AAPL, 25% NVDA, 20% MSFT, and 15% GOOGL — and tell me if I'm too concentrated, how volatile this mix is, and whether these stocks are too correlated with each other?

## When to prefer this

Use this endpoint when you need a quick, paid, on-demand risk breakdown of a specific portfolio — particularly for concentration, volatility, and inter-asset correlation analysis. Prefer this over general financial data APIs when you need a synthesized risk score rather than raw price data.

## Known failure modes

- Invalid or unrecognized ticker symbols return an error
- Missing holdings data causes incomplete analysis
- Weights that do not sum to 100% may return a validation error
- Service unavailable or payment failure returns a 402 or 5xx error
- Too few holdings may limit correlation computation

## How this service works

Portfolio risk analysis — concentration volatility correlation across holdings

## Output

Returns a risk analysis report covering concentration risk (how heavily weighted any single asset is), volatility estimates across the portfolio, and correlation coefficients between holdings, helping identify diversification gaps or overexposure.

## Example request

```json
{
 "method": "GET",
 "tickers": "AAPL,NVDA,MSFT,GOOGL",
 "weights": "0.4,0.25,0.2,0.15"
}
```

## Request schema (JSON Schema)

```json
{
 "name": "LoneStarOracle — PortfolioRisk",
 "tags": [
  "portfolio",
  "risk",
  "correlation",
  "diversification",
  "var",
  "beta"
 ],
 "type": "object",
 "version": "1.0.0",
 "category": "trading",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "tickers": {
       "type": "string",
       "title": "Tickers"
      },
      "weights": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Weights"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "summary": "4-asset portfolio: 1yr ret +28.4% | Vol 18.2% | Beta 1.12 | Div score 6.8/10",
     "holdings": [
      {
       "beta": 1.24,
       "ret_1y": 34.8,
       "ticker": "AAPL",
       "weight": 25,
       "ann_vol": 23.4
      }
     ],
     "risk_flags": [
      "sector concentration: Technology at 60%"
     ],
     "portfolio_beta": 1.12,
     "avg_correlation": 0.54,
     "var_95_1day_pct": 1.82,
     "sector_breakdown": {
      "ETF": 25,
      "Technology": 60
     },
     "portfolio_return_1y": 28.4,
     "portfolio_volatility": 18.2,
     "diversification_score": 6.8
    }
   }
  }
 },
 "description": "Portfolio risk analysis for up to 20 tickers. Returns weighted portfolio returns (1m/3m/1y), annualized volatility, portfolio beta, 1-day 95% VaR, average correlation, diversification score (0-10), sector concentration breakdown, top correlated pairs, and risk flags. Supports custom weights or equal-weight. Ideal for portfolio review, risk assessment, and rebalancing decisions."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/portfolio-lonestaroracle-xyz-d243a206/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from portfolio.lonestaroracle.xyz](https://www.zero.xyz/host/portfolio.lonestaroracle.xyz/llms.txt)
