# Unit Contribution Ordered Trend Analysis

> Unit Contribution Ordered Trend Analysis 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).

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.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-unit-contribution-trend?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/unit-contribution-ordered-trend-analysis-695ccbe8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ej1Gg_l6fwz8rbQMlxrLO

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 unit-contribution-ordered-trend-analysis-695ccbe8 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/unit-contribution-ordered-trend-analysis-695ccbe8/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)
