# Net Margin Distribution Histogram

> Net Margin 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-23).

Bins up to 200 net margin observations into equal-width histogram bins, returning bin edges, counts, formula, units, and limitations as JSON.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-net-margin-histogram?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/net-margin-distribution-histogram-bc4699b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_077MSTdI5LWmD9Izkah7e

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 net-margin-distribution-histogram-bc4699b1 -d '<json body>'
```

Example prompt: Can you histogram the net margins for these 8 companies using 10 bins? Here are their revenues and net profits: Company A revenue 500000 profit 45000, Company B revenue 320000 profit 12000, Company C revenue 800000 profit 96000, Company D revenue 150000 profit -5000, Company E revenue 420000 profit 38000, Company F revenue 900000 profit 81000, Company G revenue 250000 profit 22000, Company H revenue 600000 profit 54000.

## When to prefer this

Choose this endpoint when you need a frequency distribution view of net margin ratios across a set of companies or time periods, rather than a single summary statistic. It is ideal for understanding the shape and spread of profitability across a dataset. Prefer it over trend analysis endpoints when you want binned counts rather than ordered time-series patterns, and over correlation endpoints when you want distribution shape rather than relationship to a benchmark.

## Known failure modes

- Fewer than 2 rows supplied — minimum row count not met
- Revenue values of zero or negative — excluded by schema (exclusiveMinimum: 0)
- More than 200 rows supplied — exceeds maxItems limit
- Bins parameter outside 1–30 range — rejected by schema validation
- Missing required fields net_profit or revenue in a row — validation error
- Highly skewed data may result in most observations falling in one bin with sparse others

## How this service works

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

## Output

A JSON object containing the histogram bin edges, the count of observations falling in each bin, the net margin formula used (net profit / revenue × 100), units (percentage), and any stated limitations such as minimum observation count or bin width constraints.

## Request schema (JSON Schema)

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

## More

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