# Token Liquidity Relative to Market Cap — Weighted Mean Calculator

> Token Liquidity Relative to Market Cap — 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-16).

Computes a weighted arithmetic mean of liquidity-to-market-cap ratios across a supplied set of token observations using caller-specified weights.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-liquidity-cap-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-to-market-cap-weighted-mean-calculator-61fdd826
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zx0yw1EOihwaUY_jfhN_9

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-to-market-cap-weighted-mean-calculator-61fdd826 -d '<json body>'
```

Example prompt: I have 4 token snapshots with liquidity values of $100,000, $110,000, $100,000, and $110,000 against market caps of $2M, $2.2M, $2M, and $2.2M — can you compute the weighted mean of their liquidity-to-market-cap ratios using weights 1, 2, 1, and 2?

## When to prefer this

Choose this endpoint when you need a single deterministic weighted mean summary of token liquidity relative to market cap across multiple observations, especially when you have varying confidence levels or portfolio weights to apply to each data point. It is ideal for aggregating time-series snapshots, pool-level data, or multi-token batches into one comparable metric. Prefer this over simple averaging when observations should not contribute equally to the result.

## Known failure modes

- Fewer than 2 rows supplied — minimum 2 observations required
- More than 200 rows supplied — exceeds maxItems limit
- Weights array length does not match rows array length
- liquidity_usd or market_cap_usd set to zero or negative — exclusiveMinimum 0 enforced
- Malformed numeric values or missing required fields in row objects
- Payment not processed — x402 payment of 0.01 USDC required per call

## How this service works

Token liquidity relative to market cap — Weighted result mean: Weighted result mean for Token liquidity relative to market cap. 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

A single numeric weighted mean value representing the average liquidity-to-market-cap ratio across the supplied token observations, computed deterministically using the caller-provided weights. The response is a bounded report, not a live market scan or trade recommendation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "liquidity_usd",
     "market_cap_usd"
    ],
    "properties": {
     "liquidity_usd": {
      "type": "number",
      "default": 100000,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     },
     "market_cap_usd": {
      "type": "number",
      "default": 2000000,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "liquidity_usd": 100000,
     "market_cap_usd": 2000000
    },
    {
     "liquidity_usd": 110000.00000000001,
     "market_cap_usd": 2200000
    },
    {
     "liquidity_usd": 100000,
     "market_cap_usd": 2000000
    },
    {
     "liquidity_usd": 110000.00000000001,
     "market_cap_usd": 2200000
    }
   ],
   "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-to-market-cap-weighted-mean-calculator-61fdd826/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)
