# LP-Token Lock Share Weighted Mean Calculator

> LP-Token Lock Share Weighted Mean Calculator 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-13).

Computes a weighted mean of locked LP-token fractions across multiple token observations, returning a single aggregated result.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-lp-lock-share-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lp-token-lock-share-weighted-mean-calculator-903adf42
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5IOup-iUZ9wDyaS4u1XyO

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-token-lock-share-weighted-mean-calculator-903adf42 -d '<json body>'
```

Example prompt: Can you calculate the weighted mean locked LP-token fraction for these four observations — pools with 1000, 1100, 1000, and 1100 total LP tokens and 800, 880, 800, and 880 locked respectively — using weights of 1, 2, 1, and 2?

## When to prefer this

Use this endpoint when you need a single aggregated weighted mean of locked LP-token fractions across multiple observations, such as when combining data from different reporting sources or time periods. It is best suited for deterministic, computation-only aggregation with custom per-observation weights, not for live on-chain scanning or real-time token safety analysis.

## Known failure modes

- Fewer than 2 rows provided — minimum of 2 items required in rows array
- Weights array length does not match rows array length
- total_lp value of 0 or below — must be exclusively greater than 0
- locked_lp exceeds total_lp causing a fraction above 1
- Values exceeding the maximum of 10^16 are rejected
- Malformed request body returns 4xx error
- Payment not processed correctly returns 402 status

## How this service works

Reported locked LP-token fraction — Weighted result mean: Weighted result mean for Reported locked LP-token fraction. 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 weighted result mean report.

## Output

Returns a single weighted mean value representing the aggregate locked LP-token fraction across all provided observations, calculated deterministically from the input locked_lp and total_lp row pairs and their associated weights. The result is a bounded numerical score, not a live scan or safety guarantee.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "locked_lp",
     "total_lp"
    ],
    "properties": {
     "total_lp": {
      "type": "number",
      "default": 1000,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     },
     "locked_lp": {
      "type": "number",
      "default": 800,
      "maximum": 10000000000000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "total_lp": 1000,
     "locked_lp": 800
    },
    {
     "total_lp": 1100,
     "locked_lp": 880.0000000000001
    },
    {
     "total_lp": 1000,
     "locked_lp": 800
    },
    {
     "total_lp": 1100,
     "locked_lp": 880.0000000000001
    }
   ],
   "maxItems": 200,
   "minItems": 2
  },
  "weights": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000,
    "minimum": 0
   },
   "default": [
    1,
    2,
    1,
    2
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lp-token-lock-share-weighted-mean-calculator-903adf42/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)
