# Losbeto Portfolio Stress Test

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

Runs a portfolio stress test analysis on a given set of asset holdings and returns risk/scenario metrics via USDC micropayment.

## Facts

- Endpoint: GET https://markets.losbeto.xyz/portfolio-stress
- Price: $0.3/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-portfolio-stress-test-9d01f9c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_moo1Saic8Mxo2feruyL2G

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-9d01f9c0
```

Example prompt: Run a portfolio stress test on my current crypto holdings — I want to see how they'd hold up under extreme market conditions like a 40% BTC crash or a liquidity crunch.

## When to prefer this

Choose this endpoint when you need quantitative, scenario-based stress testing of a crypto portfolio — especially useful before rebalancing, entering high-risk positions, or generating risk reports. At $4.16 per call it is priced for substantive analysis rather than lightweight queries. Prefer this over simpler price-check or balance endpoints when you need multi-scenario risk modeling rather than real-time prices.

## Known failure modes

- Missing or malformed portfolio properties input returns a 400 error
- Insufficient USDC payment ($4.16 required) results in a 402 Payment Required response
- Empty or null properties field may return an incomplete or default analysis
- Unsupported asset types may be silently excluded from the stress test
- Network latency on Solana or Base payment rails may cause timeout

## How this service works

Losbeto: 67 endpoints x402 monetizados. Solana + Base. USDC micropayments para AI agents. Preços a partir de $0.003.

## Output

Returns a JSON object containing stress test results for the submitted portfolio, including scenario-based risk metrics, simulated drawdowns, vulnerability scores, and potentially correlation breakdowns under 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",
     "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-9d01f9c0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from markets.losbeto.xyz](https://www.zero.xyz/host/markets.losbeto.xyz/llms.txt)
