# Mining Operating Contribution Margin — Weighted Result Mean

> Mining Operating Contribution Margin — 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-15).

Calculates the weighted mean of the operating contribution margin rate across multiple mining operation rows, using supplied revenue and contribution figures with custom weights.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-mining-cash-margin-rate-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/mining-operating-contribution-margin-weighted-result-mean-39514a7a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ub0iM_7kYnXj7tY8DwMCf

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 mining-operating-contribution-margin-weighted-result-mean-39514a7a -d '<json body>'
```

Example prompt: I have four mining operations — two with $100 revenue and $25 contribution, two with $110 revenue and $27.50 contribution — and I want to weight them 1, 2, 1, 2 respectively. Can you calculate the weighted mean contribution margin rate across all of them?

## When to prefer this

Choose this endpoint when you need a single weighted aggregate metric for mining operating contribution margin across multiple operations or scenarios, with custom weighting per row. It is purpose-built for mining assumptions (not general financial margin calculations) and is appropriate for portfolio-level or multi-scenario blended margin reporting where weighting by output volume, time, or relative importance is required.

## Known failure modes

- Mismatched array lengths between rows and weights returns a validation error
- Revenue value of zero or below triggers exclusiveMinimum violation
- Fewer than 2 rows or weights provided returns minItems error
- More than 200 rows or weights exceeds maxItems limit
- Negative contribution values below -1,000,000,000,000 are rejected
- Missing required fields contribution_usd or revenue_usd in any row causes a schema error

## How this service works

Mining operating contribution margin — Weighted result mean: Weighted result mean for Mining operating contribution margin. Supplied mining assumptions only; formula and units disclosed. No live prices, mining or guaranteed return. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one bounded weighted result mean report.

## Output

A bounded weighted result mean report containing the weighted average operating contribution margin rate (contribution_usd / revenue_usd) across all submitted mining operation rows, incorporating the supplied weight array. The report uses the provided assumptions with formula and units disclosed, but does not include live prices or guaranteed return projections.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "contribution_usd",
     "revenue_usd"
    ],
    "properties": {
     "revenue_usd": {
      "type": "number",
      "default": 100,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     },
     "contribution_usd": {
      "type": "number",
      "default": 25,
      "maximum": 10000000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "revenue_usd": 100,
     "contribution_usd": 25
    },
    {
     "revenue_usd": 110.00000000000001,
     "contribution_usd": 27.500000000000004
    },
    {
     "revenue_usd": 100,
     "contribution_usd": 25
    },
    {
     "revenue_usd": 110.00000000000001,
     "contribution_usd": 27.500000000000004
    }
   ],
   "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/mining-operating-contribution-margin-weighted-result-mean-39514a7a/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)
