{"uid":"cap_hBdmFqf6fWccX2yXl5SAy","slug":"gross-profit-distribution-histogram-45b84f3b","name":"Gross Profit Distribution Histogram","description":"Gross profit - Distribution histogram: Bin up to 200 calculated observations into equal-width bins, including edge definitions. Metric: Gross profit. 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-gross-profit-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":["revenue","cost_of_sales"],"properties":{"revenue":{"type":"number","default":10000,"maximum":1000000000000,"minimum":-1000000000000,"description":"Amount in a consistent supplied currency and reporting period"},"cost_of_sales":{"type":"number","default":6000,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"}},"additionalProperties":false},"default":[{"revenue":10000,"cost_of_sales":6000},{"revenue":11000,"cost_of_sales":6600.000000000001},{"revenue":10000,"cost_of_sales":6000},{"revenue":11000,"cost_of_sales":6600.000000000001}],"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_LX9zfkX7Z3Li9ufrweLSz","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 gross profit observations (revenue minus cost of sales) into equal-width histogram bins, returning bin edges, counts, formula, units, and limitations as JSON.","exampleAgentPrompt":"Can you bin my gross profit data into 10 equal-width histogram buckets? Here are my observations: period 1 revenue $500,000 cost of sales $310,000, period 2 revenue $480,000 cost of sales $295,000, period 3 revenue $520,000 cost of sales $330,000 — I want the bin edges, counts, and the formula used.","exampleUseCases":[{"title":"Quarterly profitability spread analysis","prompt":"I have 20 quarters of revenue and cost-of-sales figures for our retail division — can you bin the gross profit values into 8 equal-width histogram buckets and tell me the edge definitions and how many quarters fall in each bin?"},{"title":"Comparing gross profit concentration","prompt":"Take these 50 monthly revenue and cost-of-sales pairs for our SaaS product and give me a 15-bin histogram of gross profit so I can see whether profitability is tightly clustered or widely spread."},{"title":"Identifying outlier profit periods","prompt":"Here are 100 observations of revenue and cost of sales from our manufacturing units — bin the gross profit into 5 buckets and show me the bin edges so I can spot which ranges have unusually few or many periods."}],"resultDescription":"A JSON response containing the histogram bin edges (defining equal-width intervals), the count of gross profit observations in each bin, the formula used (gross profit = revenue − cost of sales), the currency/units assumption, and any limitations of the analysis. Up to 30 bins across up to 200 input rows.","failureModes":["Fewer than 2 rows supplied — minimum 2 observations required","More than 200 rows supplied — exceeds maximum item count","bins parameter outside 1–30 range — validation error returned","Missing required fields (revenue or cost_of_sales) on any row — schema validation failure","Negative cost_of_sales values — field requires non-negative numbers","Revenue or cost_of_sales values exceeding ±1 trillion — out of range","Inconsistent currencies across rows — no conversion performed, results may be misleading"],"whenToPreferThis":"Choose this endpoint when you need a statistical frequency distribution (histogram) of gross profit values across multiple observations — specifically when you want equal-width bins with explicit edge definitions for use in charts or further analysis. Prefer this over a summary statistics endpoint when the shape or spread of the distribution matters, not just mean/median. Best for datasets of 2–200 periods where gross profit = revenue − cost of sales is the right metric (not operating profit or net profit).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:48:52.438Z","isFirstParty":false,"canonicalSlug":"gross-profit-distribution-histogram-45b84f3b"}