# Marketplace Proceeds Weighted Mean Calculator

> Marketplace Proceeds 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-18).

Calculates a weighted mean of net marketplace proceeds across multiple sales rows, each defined by gross sale, percentage fee, fixed fee, and refunds.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-retail-marketplace-proceeds-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/marketplace-proceeds-weighted-mean-calculator-75ebccd8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jYkeHzUAc9dTNdu3A7iDC

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 marketplace-proceeds-weighted-mean-calculator-75ebccd8 -d '<json body>'
```

Example prompt: Can you calculate the weighted mean of my marketplace net proceeds for these four sales: $100 gross with 10% fee, $1 fixed fee, $5 refund (weight 1); $110 gross with 11% fee, $1.10 fixed fee, $5.50 refund (weight 2); $100 gross with 10% fee, $1 fixed fee, $5 refund (weight 1); $110 gross with 11% fee, $1.10 fixed fee, $5.50 refund (weight 2)?

## When to prefer this

Use this endpoint when you need a statistically weighted average of net marketplace proceeds across multiple sales or scenarios, especially when different transactions have different importance or frequency weights. Prefer this over a simple mean when some sales should count more than others — e.g., high-volume SKUs. This is a local, offline calculation with no live marketplace connectivity, so it is ideal for scenario analysis and planning from supplied retail figures.

## Known failure modes

- Mismatched rows and weights array lengths will cause a validation error
- Weights summing to zero will produce a divide-by-zero or undefined result
- Supplying fewer than 2 rows will fail minItems validation
- Gross sale or fee values exceeding 1,000,000,000,000 will be rejected
- Non-numeric values in rows or weights will fail schema validation

## How this service works

Marketplace proceeds from supplied fees - Weighted result mean: Weighted result mean for Marketplace proceeds from supplied fees. Supplied retail figures only. Local calculation and scenario analysis; no live inventory, account access, platform fee lookup or order execution. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded weighted result mean deliverable.

## Output

Returns a single weighted mean value representing the average net marketplace proceeds across all supplied rows, weighted by the provided weights array. Net proceeds per row are computed as gross_sale minus the percentage fee, minus the fixed fee, minus refunds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "gross_sale",
     "fee_percent",
     "fixed_fee",
     "refunds"
    ],
    "properties": {
     "refunds": {
      "type": "number",
      "default": 5,
      "maximum": 1000000000000,
      "minimum": 0
     },
     "fixed_fee": {
      "type": "number",
      "default": 1,
      "maximum": 1000000000000,
      "minimum": 0
     },
     "gross_sale": {
      "type": "number",
      "default": 100,
      "maximum": 1000000000000,
      "minimum": 0
     },
     "fee_percent": {
      "type": "number",
      "default": 10,
      "maximum": 100,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "refunds": 5,
     "fixed_fee": 1,
     "gross_sale": 100,
     "fee_percent": 10
    },
    {
     "refunds": 5.5,
     "fixed_fee": 1.1,
     "gross_sale": 110.00000000000001,
     "fee_percent": 11
    },
    {
     "refunds": 5,
     "fixed_fee": 1,
     "gross_sale": 100,
     "fee_percent": 10
    },
    {
     "refunds": 5.5,
     "fixed_fee": 1.1,
     "gross_sale": 110.00000000000001,
     "fee_percent": 11
    }
   ],
   "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/marketplace-proceeds-weighted-mean-calculator-75ebccd8/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)
