# Operating Margin Weighted Result Mean Calculator

> Operating Margin Weighted Result 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 operating margin figures across up to 200 data rows using user-supplied nonnegative weights

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-operating-margin-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/operating-margin-weighted-result-mean-calculator-b4200372
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__F4sY71Ac77TVhkwtl9oO

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 operating-margin-weighted-result-mean-calculator-b4200372 -d '<json body>'
```

Example prompt: Calculate the weighted mean operating margin for these four quarters: Q1 had revenue $10,000 and operating profit $2,000, Q2 had revenue $11,000 and profit $2,200, Q3 had revenue $10,000 and profit $2,000, Q4 had revenue $11,000 and profit $2,200 — weight them 1, 2, 1, 2 so the larger quarters count more.

## When to prefer this

Choose this endpoint when you need a statistically weighted mean of operating margins across multiple periods, segments, or entities where different observations should carry different importance — as opposed to a simple average or a pooled accounting ratio. It is ideal for weighting recent periods more heavily, weighting by segment size, or applying analyst-defined importance weights to up to 200 data points.

## Known failure modes

- Fewer than 2 rows or weights provided — validation error
- Weights array length does not match rows array length — mismatch error
- Revenue values are zero or negative — exclusiveMinimum violation
- Weights contain negative numbers — minimum constraint violation
- More than 200 rows supplied — maxItems exceeded
- Revenue or profit values exceed the 1,000,000,000,000 maximum — range error

## How this service works

Operating margin - Weighted result mean: Calculate a mean of up to 200 results using supplied nonnegative weights; not a pooled accounting ratio. Metric: Operating margin. Supplied figures only; returns JSON with formula, units and limitations. One of 50 calculators with 20 analysis modes. No live feed, financial advice or trade execution. 0.01 USDC includes one bounded weighted result mean report.

## Output

A JSON response containing the weighted mean operating margin value computed from the supplied rows and weights, along with the formula used, units, and stated limitations of the calculation (e.g. not a pooled accounting ratio, based solely on supplied figures).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "operating_profit",
     "revenue"
    ],
    "properties": {
     "revenue": {
      "type": "number",
      "default": 10000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period",
      "exclusiveMinimum": 0
     },
     "operating_profit": {
      "type": "number",
      "default": 2000,
      "maximum": 1000000000000,
      "minimum": -1000000000000,
      "description": "Amount in a consistent supplied currency and reporting period"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "revenue": 10000,
     "operating_profit": 2000
    },
    {
     "revenue": 11000,
     "operating_profit": 2200
    },
    {
     "revenue": 10000,
     "operating_profit": 2000
    },
    {
     "revenue": 11000,
     "operating_profit": 2200
    }
   ],
   "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/operating-margin-weighted-result-mean-calculator-b4200372/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)
