# LP Divergence Loss Magnitude — Named Scenario Comparison

> LP Divergence Loss Magnitude — Named Scenario Comparison is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-16).

Computes and compares full-range LP (impermanent loss) divergence loss magnitude across multiple named price scenarios given token price observations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-lp-divergence-scenario?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lp-divergence-loss-magnitude-named-scenario-comparison-22a7499b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QpZsRki_MJb76c-BDKjCL

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 lp-divergence-loss-magnitude-named-scenario-comparison-22a7499b -d '<json body>'
```

Example prompt: Compare impermanent loss magnitude for my LP position across three named scenarios: baseline at initial price 1 and current price 2, then 'Bull run' with current price 3, and 'Bear drop' with current price 0.5 — give me the divergence loss report for each.

## When to prefer this

Choose this endpoint when you need a deterministic, per-scenario breakdown of LP impermanent loss magnitude for multiple named hypothetical or historical price points simultaneously. It is ideal for pre-investment stress testing, post-event analysis, or comparing multiple market outcome hypotheses against a single baseline LP position, rather than a live scan or single-point calculation.

## Known failure modes

- Missing or zero price values (prices must be strictly positive)
- Scenarios array empty or exceeds 20 items
- Scenario override object has no properties (minProperties:1 required)
- Label too long (>80 chars) or empty
- current_price or initial_price exceeds maximum allowed value
- Invalid JSON structure in request body

## How this service works

Full-range LP divergence loss magnitude — Named scenario comparison: Named scenario comparison for Full-range LP divergence loss magnitude. Supplied token observations only. Deterministic calculation or caller-threshold verdict, not a live scan, safety proof or trade recommendation. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one bounded named scenario comparison report.

## Output

A bounded named scenario comparison report detailing the full-range LP divergence loss magnitude for each supplied scenario label, calculated deterministically from the provided token price observations. Each scenario result reflects how much value is lost relative to simply holding, given the initial and current prices specified.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "baseline": {
   "type": "object",
   "default": {
    "current_price": 2,
    "initial_price": 1
   },
   "required": [
    "current_price",
    "initial_price"
   ],
   "properties": {
    "current_price": {
     "type": "number",
     "default": 2,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    },
    "initial_price": {
     "type": "number",
     "default": 1,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    }
   },
   "additionalProperties": false
  },
  "scenarios": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "label",
     "overrides"
    ],
    "properties": {
     "label": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "overrides": {
      "type": "object",
      "properties": {
       "current_price": {
        "type": "number",
        "default": 2,
        "maximum": 10000000000000000,
        "minimum": 0,
        "exclusiveMinimum": 0
       },
       "initial_price": {
        "type": "number",
        "default": 1,
        "maximum": 10000000000000000,
        "minimum": 0,
        "exclusiveMinimum": 0
       }
      },
      "minProperties": 1,
      "additionalProperties": false
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "label": "Supplied alternative",
     "overrides": {
      "current_price": 2.2
     }
    }
   ],
   "maxItems": 20,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lp-divergence-loss-magnitude-named-scenario-comparison-22a7499b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
