# Margin of Safety Distribution Histogram

> Margin of Safety Distribution Histogram 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).

Bins up to 200 margin-of-safety observations into equal-width histogram bins with edge definitions, returning a JSON report with formula, units, and limitations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-margin-safety-histogram?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/margin-of-safety-distribution-histogram-c8b05f72
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C-rOYh0aaGc1lYzVS32ii

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 margin-of-safety-distribution-histogram-c8b05f72 -d '<json body>'
```

Example prompt: Can you histogram our margin of safety data across these 12 monthly periods — actual sales ranged from $8,000 to $14,000 and break-even sales from $6,000 to $9,500 — using 10 bins, so I can see how our safety cushion is distributed?

## When to prefer this

Choose this endpoint when you need a frequency distribution (histogram) of margin of safety values across multiple observations, rather than a single point calculation or trend line. It is purpose-built for understanding how safety margins are spread across a dataset of up to 200 actual vs break-even sales pairs, with configurable bin counts. Prefer it over trend or correlation siblings when the goal is distributional shape analysis rather than directional movement or benchmark comparison.

## Known failure modes

- Fewer than 2 rows supplied — minimum row count not met
- More than 200 rows supplied — exceeds maximum observation limit
- actual_sales value of 0 — excluded by exclusiveMinimum constraint
- bins value outside 1–30 range — validation error
- Missing required fields actual_sales or break_even_sales in any row — schema validation failure
- Non-numeric values in numeric fields — type error

## How this service works

Margin of safety - Distribution histogram: Bin up to 200 calculated observations into equal-width bins, including edge definitions. Metric: Margin of safety. 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 distribution histogram report.

## Output

A JSON object containing the histogram bin edges, counts per bin, the margin of safety formula applied, units used, and any limitations of the calculation — covering up to 200 observations divided into up to 30 equal-width bins.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bins": {
   "type": "integer",
   "default": 5,
   "maximum": 30,
   "minimum": 1
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "actual_sales",
     "break_even_sales"
    ],
    "properties": {
     "actual_sales": {
      "type": "number",
      "default": 10000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period",
      "exclusiveMinimum": 0
     },
     "break_even_sales": {
      "type": "number",
      "default": 7000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "actual_sales": 10000,
     "break_even_sales": 7000
    },
    {
     "actual_sales": 11000,
     "break_even_sales": 7700.000000000001
    },
    {
     "actual_sales": 10000,
     "break_even_sales": 7000
    },
    {
     "actual_sales": 11000,
     "break_even_sales": 7700.000000000001
    }
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/margin-of-safety-distribution-histogram-c8b05f72/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)
