# Trade Observations Two-Measure Correlation and Keyed Dataset Comparison

> Trade Observations Two-Measure Correlation and Keyed Dataset Comparison 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 Pearson correlation between export_amount and import_amount, and performs a keyed row-by-row dataset comparison, for up to 200 trade observation records.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-economics-06-183?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-two-measure-correlation-and-keyed-dataset-comparison-885c482d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LgmhJes2k2LdR71F4TGN8

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-two-measure-correlation-and-keyed-dataset-comparison-885c482d -d '<json body>'
```

Example prompt: Can you run a correlation analysis between export_amount and import_amount on my trade data, and also compare it row-by-row against a second version of the dataset? I have about 50 rows with fields like row_id, region, date, export_amount, and import_amount.

## When to prefer this

Choose this endpoint when you need both a statistical correlation between export and import amounts AND a row-level comparison of two trade datasets in a single $0.01 call. It is ideal for offline/batch analytical workflows on pre-collected trade observation data (up to 200 rows) where no live data lookup, forecasting, or external action is needed. Prefer alternatives if you need more than 200 rows, real-time data, or more than these two specific analytical operations.

## Known failure modes

- Fewer than 1 row supplied — validation error
- More than 200 rows submitted — exceeds limit, request rejected
- Missing required fields (row_id, region, date, export_amount, import_amount) — schema validation failure
- Date field does not match YYYY-MM-DD format — pattern validation error
- Numeric values outside allowed range (-1e12 to 1e12) — validation rejection
- All export_amount or import_amount values are null — correlation cannot be computed
- row_id values not unique across datasets — keyed comparison may produce unexpected matches

## How this service works

Trade observations — Two-measure correlation + Keyed dataset comparison: Two-measure correlation + Keyed dataset comparison 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 analytical reports: (1) a two-measure correlation report showing the statistical relationship (e.g. Pearson r) between export_amount and import_amount across the supplied rows, and (2) a keyed dataset comparison report identifying matching and differing rows between the primary and secondary datasets based on row_id.

## 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
  },
  "other": {
   "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"
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trade-observations-two-measure-correlation-and-keyed-dataset-comparison-885c482d/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)
