# Full-range LP Divergence Loss Magnitude — Distribution Histogram

> Full-range LP Divergence Loss Magnitude — Distribution Histogram 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 a binned distribution histogram of impermanent loss (LP divergence) magnitudes from a set of token price observations

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-lp-divergence-histogram?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/full-range-lp-divergence-loss-magnitude-distribution-histogram-0e8a322e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xXGQReZgXX2Hn0Yrz2QI9

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 full-range-lp-divergence-loss-magnitude-distribution-histogram-0e8a322e -d '<json body>'
```

Example prompt: Give me a distribution histogram of impermanent loss magnitudes across 8 bins for these LP positions — initial prices were [1, 1.1, 0.9, 1.2] and current prices are [2, 2.2, 1.8, 2.4].

## When to prefer this

Choose this endpoint when you need a deterministic, bucketed view of how impermanent loss magnitudes spread across a set of liquidity provider observations — particularly useful for portfolio audits, strategy comparisons, or backtesting IL distributions. Unlike a single-point IL calculator, this endpoint processes up to 200 price pairs and returns a full histogram, making it ideal for batch analysis of LP positions rather than individual lookups.

## Known failure modes

- Fewer than 2 rows provided — minimum 2 price observation objects required
- More than 200 rows provided — exceeds maxItems limit
- current_price or initial_price is zero or negative — must be exclusiveMinimum 0
- bins value outside range 1–30 — returns validation error
- Malformed row objects missing required current_price or initial_price fields
- Payment not processed — x402 payment required at $0.01 USDC per call

## How this service works

Full-range LP divergence loss magnitude — Distribution histogram: Distribution histogram 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 distribution histogram report.

## Output

A binned frequency distribution (histogram) report showing how LP divergence loss magnitudes are distributed across the specified number of bins, based solely on the supplied initial and current price pairs. The result is deterministic given the inputs — no live market data or external scanning is involved.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bins": {
   "type": "integer",
   "default": 5,
   "maximum": 30,
   "minimum": 1
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "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
   },
   "default": [
    {
     "current_price": 2,
     "initial_price": 1
    },
    {
     "current_price": 2.2,
     "initial_price": 1.1
    },
    {
     "current_price": 2,
     "initial_price": 1
    },
    {
     "current_price": 2.2,
     "initial_price": 1.1
    }
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/full-range-lp-divergence-loss-magnitude-distribution-histogram-0e8a322e/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)
