# Token Circulating Market Cap — Weighted Mean Calculator

> Token Circulating 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 mean of token circulating market capitalization across multiple price/supply observations, returning a single aggregated value.

## Facts

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

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-circulating-market-cap-weighted-mean-calculator-af19d177 -d '<json body>'
```

Example prompt: I have 4 market cap snapshots for a token — prices were $2.00, $2.20, $2.00, and $2.20 with circulating supplies of 1,000,000, 1,100,000, 1,000,000, and 1,100,000 tokens respectively. Can you compute the weighted mean market cap using weights of 1, 2, 1, 2 to give more importance to the higher-volume observations?

## When to prefer this

Choose this endpoint when you need a deterministic, weighted statistical summary of token circulating market cap across multiple price/supply snapshots — particularly when observations differ in reliability or importance and you want to assign custom weights. It is ideal for batch summarization of historical or multi-source data rather than fetching live prices. Prefer alternatives if you need real-time market cap lookup, on-chain data, or a simple unweighted average.

## Known failure modes

- Fewer than 2 rows provided — minimum 2 observation rows required
- More than 200 rows provided — exceeds maxItems limit
- Weights array length does not match rows array length
- price_usd or circulating_tokens is zero or negative — exclusiveMinimum:0 enforced
- Individual values exceed the maximum threshold (1e16)
- Malformed JSON body — missing required fields price_usd or circulating_tokens
- Payment not attached or insufficient — $0.01 USDC required per call

## How this service works

Token circulating market value — Weighted result mean: Weighted result mean for Token circulating market value. 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 aggregated token circulating market capitalization (price_usd × circulating_tokens) across the supplied observation rows, computed using the provided weights array. The result is deterministic given the same inputs and is bounded to the supplied data — it is not a live scan or trade recommendation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "price_usd",
     "circulating_tokens"
    ],
    "properties": {
     "price_usd": {
      "type": "number",
      "default": 2,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     },
     "circulating_tokens": {
      "type": "number",
      "default": 1000000,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "price_usd": 2,
     "circulating_tokens": 1000000
    },
    {
     "price_usd": 2.2,
     "circulating_tokens": 1100000
    },
    {
     "price_usd": 2,
     "circulating_tokens": 1000000
    },
    {
     "price_usd": 2.2,
     "circulating_tokens": 1100000
    }
   ],
   "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-circulating-market-cap-weighted-mean-calculator-af19d177/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)
