# Trade Observations — Numeric Distribution + Secondary-Measure Weighted Mean

> Trade Observations — Numeric Distribution + Secondary-Measure Weighted Mean 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-27).

Computes a numeric distribution and a secondary-measure weighted mean for up to 200 trade observation rows containing export and import amounts.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-economics-06-082?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/trade-observations-numeric-distribution-secondary-measure-weighted-mean-e3da2fb4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yrtiTZPuuIKxpC9VjDkK2

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 trade-observations-numeric-distribution-secondary-measure-weighted-mean-e3da2fb4 -d '<json body>'
```

Example prompt: Run a numeric distribution and secondary-measure weighted mean on these trade records — I've got export_amount as my primary field, and rows for group-a and group-b regions across October 2026 dates, up to 200 rows total.

## When to prefer this

Choose this endpoint when you need two complementary statistical views — a numeric distribution and a secondary-measure weighted mean — on trade observation data (export/import amounts) in a single low-cost call. It is ideal for offline batch analytics on up to 200 rows without requiring any live data lookup or external data enrichment. Prefer it over general-purpose analytics tools when working specifically with trade/economics row data and wanting both distribution shape and weighted central tendency in one response.

## Known failure modes

- Rows array empty or missing — minItems:1 violation returns validation error
- More than 200 rows submitted — maxItems:200 limit exceeded
- Invalid date format (not YYYY-MM-DD) triggers pattern validation failure
- Numeric values outside ±1,000,000,000,000 range rejected
- Missing required fields (row_id, region, date, export_amount, import_amount) cause schema rejection
- Invalid field enum value (not export_amount or import_amount) returns error
- Payment of 0.01 USDC not supplied or declined — x402 payment required response

## How this service works

Trade observations — Numeric distribution + Secondary-measure weighted mean: Numeric distribution + Secondary-measure weighted mean for supplied trade observations records (export_amount, import_amount). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.

## Output

Returns two independent statistical reports sharing the same input data: (1) a numeric distribution of the selected field (export_amount or import_amount) across all rows, and (2) a secondary-measure weighted mean where the non-selected amount field acts as the weight. Results are computed locally with no external lookups.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "region",
     "date",
     "export_amount",
     "import_amount"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "region": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "export_amount": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "import_amount": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "region": "group-a",
     "row_id": "row-1",
     "export_amount": 10,
     "import_amount": 1
    },
    {
     "date": "2026-10-02",
     "region": "group-b",
     "row_id": "row-2",
     "export_amount": 20,
     "import_amount": 2
    },
    {
     "date": "2026-10-03",
     "region": "group-a",
     "row_id": "row-3",
     "export_amount": 15,
     "import_amount": 3
    },
    {
     "date": "2026-10-04",
     "region": "group-b",
     "row_id": "row-4",
     "export_amount": 30,
     "import_amount": 4
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "export_amount",
    "import_amount"
   ],
   "type": "string",
   "default": "export_amount"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trade-observations-numeric-distribution-secondary-measure-weighted-mean-e3da2fb4/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)
