# Token Liquidity Relative Change — Weighted Result Mean

> Token Liquidity Relative Change — Weighted Result Mean 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 weighted mean of relative liquidity changes across multiple token observations by comparing current vs. previous liquidity values.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-liquidity-change-weighted-mean?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/token-liquidity-relative-change-weighted-result-mean-706f371f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NoVhi0DiUJbw9P55VmSj-

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 token-liquidity-relative-change-weighted-result-mean-706f371f -d '<json body>'
```

Example prompt: Calculate the weighted mean of relative liquidity changes for these 4 token observations: current liquidities of 120000, 132000, 120000, 132000 vs previous liquidities of 100000, 110000, 100000, 110000, using weights 1, 2, 1, 2.

## When to prefer this

Choose this endpoint when you need a single deterministic weighted summary statistic for relative token liquidity changes across multiple observations. Ideal when you already have current and previous liquidity figures and want a numerically precise aggregation with custom observation weights, without needing a live blockchain scan or risk verdict. Prefer this over simple mean calculations when different observations should carry different importance.

## Known failure modes

- Fewer than 2 rows supplied — minimum 2 observation rows required
- More than 200 rows supplied — maximum is 200 items
- Weights array length does not match rows array length
- current_liquidity or previous_liquidity is zero or negative — exclusiveMinimum of 0 enforced
- Values exceed the maximum allowed (10^16) causing rejection
- Payment of 0.01 USDC not processed — 402 Payment Required error
- Malformed input schema causes 400 Bad Request

## How this service works

Token liquidity relative change — Weighted result mean: Weighted result mean for Token liquidity relative change. 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 bounded weighted result mean representing the weighted average of relative liquidity changes across the supplied observation rows. The output is a deterministic calculation based on the provided current and previous liquidity values and their corresponding weights — not a live scan, safety proof, or trade recommendation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "current_liquidity",
     "previous_liquidity"
    ],
    "properties": {
     "current_liquidity": {
      "type": "number",
      "default": 120000,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     },
     "previous_liquidity": {
      "type": "number",
      "default": 100000,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "current_liquidity": 120000,
     "previous_liquidity": 100000
    },
    {
     "current_liquidity": 132000,
     "previous_liquidity": 110000.00000000001
    },
    {
     "current_liquidity": 120000,
     "previous_liquidity": 100000
    },
    {
     "current_liquidity": 132000,
     "previous_liquidity": 110000.00000000001
    }
   ],
   "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/token-liquidity-relative-change-weighted-result-mean-706f371f/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)
