# Token Buy Volume Fraction — Weighted Result Mean

> Token Buy Volume Fraction — 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 the weighted mean of the buy volume fraction (buy volume / total volume) across multiple token trading observations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-buy-volume-share-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-buy-volume-fraction-weighted-result-mean-9bb94f52
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M_zaN8bN577taBZNPIG_Y

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-buy-volume-fraction-weighted-result-mean-9bb94f52 -d '<json body>'
```

Example prompt: Calculate the weighted mean buy volume fraction for these 4 token observations: buy/sell volumes of 60000/40000, 66000/44000, 60000/40000, 66000/44000 — weighted 1, 2, 1, 2 respectively.

## When to prefer this

Choose this endpoint when you need a single summary statistic — the weighted mean buy volume fraction — across multiple token trading observations, and you want to control the relative importance of each observation via custom weights. Prefer this over unweighted averages when some observations (e.g. more recent or higher-volume periods) should carry more influence. Use this for deterministic, reproducible analytics pipelines rather than live market scanning.

## Known failure modes

- Missing required buy_volume or sell_volume in any row returns a validation error
- Providing fewer than 2 rows triggers a minimum items constraint violation
- Providing more than 200 rows exceeds the maxItems limit
- Mismatched lengths between rows and weights arrays may cause an error or ignored weights
- Zero or negative volume values are rejected due to exclusiveMinimum:0 constraint
- Payment of 0.01 USDC not provided or x402 payment header missing results in 402 response

## How this service works

Token buy volume fraction — Weighted result mean: Weighted result mean for Token buy volume 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

A single weighted mean value representing the average buy volume fraction (buy_volume / (buy_volume + sell_volume)) across all provided observations, weighted by the supplied weights array. The result is a deterministic calculation — not a live scan, safety proof, or trade recommendation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "buy_volume",
     "sell_volume"
    ],
    "properties": {
     "buy_volume": {
      "type": "number",
      "default": 60000,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     },
     "sell_volume": {
      "type": "number",
      "default": 40000,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "buy_volume": 60000,
     "sell_volume": 40000
    },
    {
     "buy_volume": 66000,
     "sell_volume": 44000
    },
    {
     "buy_volume": 60000,
     "sell_volume": 40000
    },
    {
     "buy_volume": 66000,
     "sell_volume": 44000
    }
   ],
   "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-buy-volume-fraction-weighted-result-mean-9bb94f52/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)
