# LP-Token Lock Share Rolling Mean Calculator

> LP-Token Lock Share Rolling 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-16).

Computes a rolling mean of the locked LP-token fraction (locked_lp / total_lp) over a sliding window of observations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-lp-lock-share-rolling?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-token-lock-share-rolling-mean-calculator-d3fb6b3e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GCIl9HV-f1WcnK-3AsGD-

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-rolling-mean-calculator-d3fb6b3e -d '<json body>'
```

Example prompt: Calculate the rolling mean of locked LP-token fraction for these 4 snapshots — (1000 total / 800 locked), (1100 total / 880 locked), (1000 total / 800 locked), (1100 total / 880 locked) — using a window size of 2.

## When to prefer this

Use this endpoint when you have a time-series of LP token lock observations and need a smoothed, windowed average of the locked fraction rather than a single point-in-time snapshot. Prefer this over raw ratio calculations when you want noise reduction across multiple snapshots. It is not a live scanner or safety oracle — it is purely a deterministic statistical computation on caller-supplied data.

## Known failure modes

- Fewer than 2 rows provided — minimum 2 observations required
- Window size exceeds number of rows — rolling mean cannot be computed
- locked_lp value exceeds total_lp — may produce fractions greater than 1
- Non-numeric or missing required fields (locked_lp, total_lp) cause validation errors
- total_lp set to 0 causes division-by-zero error

## How this service works

Reported locked LP-token fraction — Rolling mean report: Rolling mean report 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 rolling mean report report.

## Output

Returns a rolling mean report of the locked LP-token fraction (locked_lp / total_lp) computed over the specified sliding window. Each output value represents the average lock share across the window, derived from the supplied observations. The result is deterministic given the same inputs.

## 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
  },
  "window": {
   "type": "integer",
   "default": 2,
   "maximum": 200,
   "minimum": 2
  }
 }
}
```

## More

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