{"uid":"cap_077MSTdI5LWmD9Izkah7e","slug":"net-margin-distribution-histogram-bc4699b1","name":"Net Margin Distribution Histogram","description":"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.","url":"https://market.datapackvibe.com/x402/assistant-finance-net-margin-histogram?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VQD90b_1jylkYKoM-pBfP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Bins up to 200 net margin observations into equal-width histogram bins, returning bin edges, counts, formula, units, and limitations as JSON.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Portfolio profitability spread analysis","prompt":"I have 15 portfolio companies — can you show me how their net margins are distributed across 8 bins? Here are their revenues and net profits: Rev 1M profit 80k, Rev 2M profit 300k, Rev 500k profit 10k, Rev 750k profit -20k, Rev 1.2M profit 100k, Rev 3M profit 600k, Rev 900k profit 45k, Rev 400k profit 5k, Rev 1.8M profit 200k, Rev 600k profit 60k, Rev 2.5M profit 400k, Rev 350k profit -10k, Rev 1.1M profit 90k, Rev 800k profit 70k, Rev 1.5M profit 150k."},{"title":"Retail sector margin benchmarking","prompt":"Here are the annual revenues and net profits for 20 retail businesses I'm benchmarking — bin their net margins into 5 groups so I can see where most retailers cluster. Rev 5M profit 200k, Rev 8M profit 160k, Rev 3M profit 90k, Rev 12M profit 720k, Rev 2M profit 40k, Rev 7M profit 350k, Rev 4M profit 80k, Rev 9M profit 270k, Rev 6M profit 300k, Rev 10M profit 100k, Rev 1.5M profit -30k, Rev 2.5M profit 50k, Rev 11M profit 550k, Rev 3.5M profit 140k, Rev 8.5M profit 425k, Rev 5.5M profit 110k, Rev 4.5M profit 90k, Rev 6.5M profit 195k, Rev 7.5M profit 225k, Rev 9.5M profit 380k."},{"title":"Year-over-year margin distribution shift","prompt":"I have 12 quarterly revenue and net profit snapshots for my company and I want to see how the net margin has been distributed over time — use 6 bins. Q1 rev 800k profit 64k, Q2 rev 850k profit 59k, Q3 rev 920k profit 83k, Q4 rev 1M profit 100k, Q5 rev 780k profit 47k, Q6 rev 830k profit 66k, Q7 rev 870k profit 78k, Q8 rev 950k profit 95k, Q9 rev 1.05M profit 115k, Q10 rev 990k profit 89k, Q11 rev 1.1M profit 132k, Q12 rev 1.2M profit 144k."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T02:01:17.584Z","isFirstParty":false,"canonicalSlug":"net-margin-distribution-histogram-bc4699b1"}