# Token Net Buy-Count Balance — Weighted Result Mean

> Token Net Buy-Count Balance — 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-26).

Computes a weighted mean of the net buy-count balance (buy_count vs sell_count ratio) across multiple token observations using caller-supplied weights.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-net-buy-share-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-net-buy-count-balance-weighted-result-mean-7870ebfd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PIkr50tt8PPXAiHg3QLvZ

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-net-buy-count-balance-weighted-result-mean-7870ebfd -d '<json body>'
```

Example prompt: I have four token observation windows with buy counts [120, 132, 120, 132] and sell counts [80, 88, 80, 88] — can you compute the weighted mean of the net buy-count balance using weights [1, 2, 1, 2] to give more importance to the recent windows?

## When to prefer this

Use this endpoint when you need a single deterministic weighted aggregate of token net buy pressure across multiple observation windows and want control over per-row importance via explicit weights. Prefer this over simple averages when observations have unequal significance (e.g. by volume, recency, or session length). Not suitable for live market scanning or safety/risk scoring.

## Known failure modes

- Fewer than 2 rows or weights provided — minimum cardinality not met
- sell_count of 0 in any row — exclusiveMinimum constraint violated
- Mismatched length between rows array and weights array
- buy_count or sell_count exceeds maximum bound of 1e16
- weights array contains negative values
- Payment not included or insufficient — x402 payment required

## How this service works

Token net buy-count balance — Weighted result mean: Weighted result mean for Token net buy-count balance. 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 net buy-count balance across all supplied token observation rows, computed deterministically from the input data and weights. No live market scan or trade recommendation is included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "buy_count",
     "sell_count"
    ],
    "properties": {
     "buy_count": {
      "type": "number",
      "default": 120,
      "maximum": 10000000000000000,
      "minimum": 0
     },
     "sell_count": {
      "type": "number",
      "default": 80,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "buy_count": 120,
     "sell_count": 80
    },
    {
     "buy_count": 132,
     "sell_count": 88
    },
    {
     "buy_count": 120,
     "sell_count": 80
    },
    {
     "buy_count": 132,
     "sell_count": 88
    }
   ],
   "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-net-buy-count-balance-weighted-result-mean-7870ebfd/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)
