# Token Buy Receipt Shortfall — Weighted Result Mean

> Token Buy Receipt Shortfall — 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-12).

Computes a weighted mean of token buy receipt shortfall values (expected minus actual tokens received) across multiple observations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-buy-receipt-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-buy-receipt-shortfall-weighted-result-mean-9b9d6770
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V1xOI0p_2r010Agcv9PTf

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-receipt-shortfall-weighted-result-mean-9b9d6770 -d '<json body>'
```

Example prompt: Calculate the weighted mean shortfall for my token buys — I expected 1000, 1100, 1000, and 1100 tokens but only received 950, 1045, 950, and 1045, with weights of 1, 2, 1, and 2 for each trade.

## When to prefer this

Choose this endpoint when you need a deterministic, weighted statistical summary of token purchase shortfalls across multiple observations — particularly when some trades or observations should carry more influence than others. Prefer this over a simple mean when trade sizes or importance vary significantly across observations. Not suitable for real-time market scanning, trade recommendations, or safety verification.

## Known failure modes

- Fewer than 2 rows submitted — minimum 2 observations required
- More than 200 rows submitted — exceeds maximum array size
- Weights array length does not match rows array length
- expected_tokens set to 0 — violates exclusiveMinimum constraint
- actual_tokens or expected_tokens exceed maximum value of 10^16
- Malformed numeric values in rows or weights arrays

## How this service works

Token buy receipt shortfall — Weighted result mean: Weighted result mean for Token buy receipt shortfall. 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 shortfall value representing the average token deficit (expected minus actual tokens) across all supplied observation rows, weighted by the provided weight array. The report is a deterministic calculation based solely on the submitted data — not a live market scan or trade recommendation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "expected_tokens",
     "actual_tokens"
    ],
    "properties": {
     "actual_tokens": {
      "type": "number",
      "default": 950,
      "maximum": 10000000000000000,
      "minimum": 0
     },
     "expected_tokens": {
      "type": "number",
      "default": 1000,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "actual_tokens": 950,
     "expected_tokens": 1000
    },
    {
     "actual_tokens": 1045,
     "expected_tokens": 1100
    },
    {
     "actual_tokens": 950,
     "expected_tokens": 1000
    },
    {
     "actual_tokens": 1045,
     "expected_tokens": 1100
    }
   ],
   "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-receipt-shortfall-weighted-result-mean-9b9d6770/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)
