{"uid":"cap_ej1Gg_l6fwz8rbQMlxrLO","slug":"unit-contribution-ordered-trend-analysis-695ccbe8","name":"Unit Contribution Ordered Trend Analysis","description":"Unit contribution - Ordered trend analysis: Fit a descriptive straight-line trend to up to 200 equally spaced supplied observations; no forecast. Metric: Unit contribution. 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 ordered trend analysis report.","url":"https://market.datapackvibe.com/x402/assistant-finance-unit-contribution-trend?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["unit_price","variable_cost_per_unit"],"properties":{"unit_price":{"type":"number","default":20,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"},"variable_cost_per_unit":{"type":"number","default":12,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"}},"additionalProperties":false},"default":[{"unit_price":20,"variable_cost_per_unit":12},{"unit_price":22,"variable_cost_per_unit":13.200000000000001},{"unit_price":20,"variable_cost_per_unit":12},{"unit_price":22,"variable_cost_per_unit":13.200000000000001}],"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_uqYfV0IrvgFoo2kaH4KsC","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":"Fits a descriptive least-squares straight-line trend to up to 200 equally-spaced unit contribution observations and returns the formula, slope, intercept, units, and limitations as JSON.","exampleAgentPrompt":"Can you run an ordered trend analysis on my unit contribution figures? Here are 6 periods of data: unit prices were 20, 22, 21, 23, 22, 24 and variable costs per unit were 12, 13.2, 12.6, 13.8, 13.2, 14.4 — I want to see the straight-line trend formula and whether contribution is rising.","exampleUseCases":[{"title":"Quarterly margin trend for product line","prompt":"I have 8 quarters of data for one of our products — unit prices were 18, 19, 20, 21, 22, 22, 23, 24 and variable costs per unit were 11, 11.5, 12, 12.5, 13, 13.2, 13.5, 14. Can you fit a straight-line trend to the unit contribution and tell me the formula and slope?"},{"title":"Detecting cost squeeze on contribution","prompt":"Our selling price has been flat at 50 per unit for 10 periods, but variable costs keep creeping up: 28, 29, 30, 31, 32, 33, 34, 35, 36, 37. Run an ordered trend analysis on unit contribution so I can see how fast the margin is eroding."},{"title":"Monthly contribution trend for pricing review","prompt":"I want to review 12 months of unit contribution data before our pricing meeting — prices were 100, 102, 101, 103, 105, 104, 106, 108, 107, 109, 110, 112 and variable costs were 60, 61, 61, 62, 63, 63, 64, 65, 65, 66, 67, 68. Fit a descriptive trend line and give me the formula and any limitations I should know about."}],"resultDescription":"A JSON object containing the fitted straight-line trend formula (y = a + bx), the slope (b) and intercept (a) coefficients, the derived unit contribution series, units notation, and a limitations section noting that this is a descriptive trend only with no forecast or financial advice.","failureModes":["Fewer than 2 rows supplied — minimum observation count not met","Array exceeds 200 items — maxItems validation error","Negative unit_price or variable_cost_per_unit values — minimum 0 constraint violated","Non-numeric values in price or cost fields — type validation error","Payment not completed or insufficient USDC balance — 402 Payment Required","All unit contribution values identical — trend slope is zero, formula still returned but meaningless"],"whenToPreferThis":"Choose this endpoint when you need a quick, bounded descriptive linear trend fitted to an ordered series of unit contribution (price minus variable cost) observations — up to 200 periods — and want structured JSON output including the formula and explicit limitations. Prefer it over general statistics APIs when you specifically need contribution margin trend analysis packaged as a single low-cost micro-call with no setup. Not suitable if you need forecasting beyond the supplied data, multi-variate regression, or live market data feeds.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:58:32.098Z","isFirstParty":false,"canonicalSlug":"unit-contribution-ordered-trend-analysis-695ccbe8"}