# Trade Openness Ratio Rolling Mean Calculator

> Trade Openness Ratio Rolling Mean 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-27).

Calculates trailing full-window rolling means of the trade openness ratio across ordered observations, preserving gaps for invalid rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-trade-openness-rolling?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-openness-ratio-rolling-mean-calculator-f1f8153b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__p4N1MJ8ffNW2yCNOjDVj

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-openness-ratio-rolling-mean-calculator-f1f8153b -d '<json body>'
```

Example prompt: Calculate the rolling mean of the trade openness ratio using a window of 3 for these quarterly observations: GDP 1000, exports 150, imports 200; GDP 1100, exports 165, imports 220; GDP 1050, exports 160, imports 210; GDP 1200, exports 180, imports 240.

## When to prefer this

Choose this endpoint when you need a smoothed, rolling-window average of trade openness ratio (exports + imports / GDP) over an ordered time series, particularly when you want the formula, units, and limitations documented in the response. Prefer this over a single-point calculator when you have multiple periods and want trend smoothing.

## Known failure modes

- Fewer than 2 rows provided returns a validation error
- Window size larger than number of rows causes no valid windows and empty results
- GDP value of zero triggers exclusiveMinimum violation
- Array exceeds 200 items limit causing rejection
- Missing required fields (exports, imports, gdp) on any row causes row-level error

## How this service works

Trade openness ratio - Rolling mean report: Calculate trailing full-window means over ordered observations, preserving invalid-row gaps. Metric: Trade openness ratio. 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 rolling mean report report.

## Output

A JSON response containing the computed rolling mean values of the trade openness ratio for each valid window position, along with the formula used, units, and known limitations of the calculation. Invalid or out-of-window rows are represented as gaps.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "exports",
     "imports",
     "gdp"
    ],
    "properties": {
     "gdp": {
      "type": "number",
      "default": 1000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period",
      "exclusiveMinimum": 0
     },
     "exports": {
      "type": "number",
      "default": 150,
      "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": [
    {
     "gdp": 1000,
     "exports": 150,
     "imports": 200
    },
    {
     "gdp": 1100,
     "exports": 165,
     "imports": 220.00000000000003
    },
    {
     "gdp": 1000,
     "exports": 150,
     "imports": 200
    },
    {
     "gdp": 1100,
     "exports": 165,
     "imports": 220.00000000000003
    }
   ],
   "maxItems": 200,
   "minItems": 2
  },
  "window": {
   "type": "integer",
   "default": 2,
   "maximum": 200,
   "minimum": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trade-openness-ratio-rolling-mean-calculator-f1f8153b/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)
