# Token Execution Fee Burden — Weighted Mean Calculator

> Token Execution Fee Burden — 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-15).

Computes the notional-weighted mean of token execution fee ratios (fee/notional) across a set of trade observations using caller-supplied weights.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-fee-burden-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-execution-fee-burden-weighted-mean-calculator-7a1f1513
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HNGhgJBtNZ5lPI1KjYyxU

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-execution-fee-burden-weighted-mean-calculator-7a1f1513 -d '<json body>'
```

Example prompt: I have 4 token trades — fees of $2, $2.20, $2, $2.20 on notionals of $1000, $1100, $1000, $1100 — with weights 1, 2, 1, 2. Can you calculate the weighted mean execution fee burden relative to notional across all those trades?

## When to prefer this

Use this endpoint when you need a single deterministic weighted aggregate of fee-to-notional ratios across multiple token trade observations and you want to supply your own importance weights per observation. It is preferable over simple averages when trade sizes or importance differ significantly across the dataset. Best suited for post-trade analytics, cost attribution, and fee efficiency benchmarking rather than real-time or live market analysis.

## Known failure modes

- Fewer than 2 rows provided — validation error
- Weights array length does not match rows array length — schema mismatch error
- notional_usd is zero or negative — violates exclusiveMinimum constraint
- More than 200 rows or weights provided — exceeds maxItems limit
- Non-numeric fee or notional values — type validation failure
- Payment not fulfilled — x402 payment required response

## How this service works

Token execution fee relative to notional — Weighted result mean: Weighted result mean for Token execution fee relative to notional. 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 average execution fee as a fraction of notional (fee_usd / notional_usd), aggregated across all provided trade observations using the supplied weights. The result is a deterministic scalar computed from caller-supplied data only — not a live market scan or trading recommendation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "fee_usd",
     "notional_usd"
    ],
    "properties": {
     "fee_usd": {
      "type": "number",
      "default": 2,
      "maximum": 10000000000000000,
      "minimum": 0
     },
     "notional_usd": {
      "type": "number",
      "default": 1000,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "fee_usd": 2,
     "notional_usd": 1000
    },
    {
     "fee_usd": 2.2,
     "notional_usd": 1100
    },
    {
     "fee_usd": 2,
     "notional_usd": 1000
    },
    {
     "fee_usd": 2.2,
     "notional_usd": 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-execution-fee-burden-weighted-mean-calculator-7a1f1513/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)
