# Losbeto Portfolio Stress Test

> Losbeto Portfolio Stress Test is a paid API for AI agents from api.losbeto.xyz, paid per call via x402, $0.3/call, status unknown (last checked 2026-10-23).

Runs a portfolio stress test analysis returning risk metrics for a given set of financial positions, payable via USDC micropayment on Solana or Base.

## Facts

- Endpoint: GET https://api.losbeto.xyz/portfolio-stress?utm_source=zero.xyz
- Price: $0.3/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-portfolio-stress-test-69b1095a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_78OovfwddIwjvJfezytbU

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 losbeto-portfolio-stress-test-69b1095a
```

Example prompt: Can you run a stress test on my current portfolio positions and tell me how they'd hold up under extreme market conditions? I want to see the risk metrics and vulnerability breakdown.

## When to prefer this

Choose this endpoint when you need a quick, paid-per-call portfolio stress test without standing up your own risk infrastructure. It is particularly useful for AI agents operating in crypto/DeFi contexts that already support x402 USDC micropayments on Solana or Base, and need on-demand scenario analysis rather than a continuously monitored risk service.

## Known failure modes

- Missing or malformed portfolio properties input returns an error
- Invalid asset identifiers in portfolio configuration may cause partial or empty results
- Payment failure (insufficient USDC balance or wrong chain) blocks the request with HTTP 402
- Upstream data unavailability may cause timeout or incomplete stress scenarios
- Unsupported asset classes may be silently ignored or return null metrics

## How this service works

OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana, Algorand and Polygon via x402.

## Output

A JSON object containing stress test results for the provided portfolio, likely including scenario-based risk metrics, drawdown estimates, vulnerability scores per asset, and overall portfolio resilience indicators under simulated adverse market conditions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "positions"
     ],
     "properties": {
      "positions": {
       "type": "string",
       "description": "JSON array of positions (asset + qty) — POST body or query param"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "description": "Agent-to-agent stress test: POST your positions JSON, get exposure breakdown, 5 shock scenarios (USD, oil, BTC, rates, risk-off), worst case and AI hedging commentary."
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/losbeto-portfolio-stress-test-69b1095a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.losbeto.xyz](https://www.zero.xyz/host/api.losbeto.xyz/llms.txt)
