# Trade Balance Benchmark Correlation Calculator

> Trade Balance Benchmark Correlation Calculator 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-28).

Calculates the Pearson correlation coefficient between a time series of trade balance values and user-supplied benchmark figures, returning formula, units, and limitations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-trade-balance-correlation?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/trade-balance-benchmark-correlation-calculator-9e70798f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DrhItbTHRz3-PXmYsE3yD

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-balance-benchmark-correlation-calculator-9e70798f -d '<json body>'
```

Example prompt: Can you calculate the Pearson correlation between our quarterly trade balance figures — exports of 250, 275, 300 and imports of 200, 220, 240 — against benchmark values of 10, 20, 30? I want to see the formula, units, and any stated limitations.

## When to prefer this

Use this endpoint when you have your own historical trade balance data (exports and imports per period) and a corresponding benchmark series and need a rigorous Pearson correlation statistic with documented formula and limitations — particularly when you want a bounded, non-predictive statistical report rather than live market data or forecasting.

## Known failure modes

- Mismatched array lengths between rows and benchmarks returns an error
- Fewer than 2 data points provided causes a validation failure
- Exports or imports values outside the allowed range (0 to 1e12) are rejected
- Benchmarks outside the allowed range cause validation errors
- Constant series (zero variance) causes undefined Pearson correlation

## How this service works

Trade balance - Benchmark correlation: Calculate Pearson correlation against aligned supplied benchmarks; no causal or predictive claim. Metric: Trade balance. 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 benchmark correlation report.

## Output

A JSON object containing the computed Pearson correlation coefficient between the derived trade balance series (exports minus imports) and the supplied benchmark values, along with the mathematical formula used, measurement units, and explicit limitations noting no causal or predictive claims are made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "exports",
     "imports"
    ],
    "properties": {
     "exports": {
      "type": "number",
      "default": 250,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     },
     "imports": {
      "type": "number",
      "default": 200,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "exports": 250,
     "imports": 200
    },
    {
     "exports": 275,
     "imports": 220.00000000000003
    },
    {
     "exports": 250,
     "imports": 200
    },
    {
     "exports": 275,
     "imports": 220.00000000000003
    }
   ],
   "maxItems": 200,
   "minItems": 2
  },
  "benchmarks": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000000000,
    "minimum": -1000000000000000000
   },
   "default": [
    10,
    20,
    30,
    40
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trade-balance-benchmark-correlation-calculator-9e70798f/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)
