# Trade Openness Ratio Two-Input Scenario Grid Calculator

> Trade Openness Ratio Two-Input Scenario Grid 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 up to 100 combinations of two trade variables (exports, imports, GDP) to generate a scenario grid of trade openness ratios

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-trade-openness-stress-grid?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-two-input-scenario-grid-calculator-df90e075
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P-t2BJYQr3haJPp9LsNgU

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-two-input-scenario-grid-calculator-df90e075 -d '<json body>'
```

Example prompt: Run a trade openness ratio scenario grid with exports as field_x ranging from 150 to 200 and GDP as field_y ranging from 900 to 1100, using a baseline of exports=150, imports=200, GDP=1000 — give me all the combinations and flag any invalid ones.

## When to prefer this

Use this endpoint when you need to evaluate trade openness ratio across a two-dimensional grid of economic input values simultaneously — ideal for scenario planning, sensitivity analysis, or stress testing trade metrics without maintaining your own computation infrastructure. It is specifically designed for batch scenario analysis (up to 100 combinations) of the trade openness ratio metric, not for single-point calculations or live market data.

## Known failure modes

- Invalid field_x/field_y combination (same field selected for both axes)
- Values outside allowed range (-1T to +1T for inputs, 0 exclusive for GDP)
- More than 10 values in either values_x or values_y array (exceeds 10x10 grid limit)
- Baseline missing required fields (exports, imports, or GDP)
- GDP baseline set to zero or negative (exclusiveMinimum constraint)
- Payment failure or insufficient USDC balance for x402 protocol

## How this service works

Trade openness ratio - Two-input scenario grid: Calculate up to 100 combinations of two distinct supplied input fields, with invalid combinations reported. 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 two-input scenario grid report.

## Output

A JSON response containing a grid of up to 100 trade openness ratio values computed from all combinations of the two supplied input arrays, along with the formula used, units, any invalid or infeasible combination flags, and notes on limitations of the metric.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "field_x": {
   "enum": [
    "exports",
    "imports",
    "gdp"
   ],
   "type": "string",
   "default": "exports"
  },
  "field_y": {
   "enum": [
    "exports",
    "imports",
    "gdp"
   ],
   "type": "string",
   "default": "imports"
  },
  "baseline": {
   "type": "object",
   "default": {
    "gdp": 1000,
    "exports": 150,
    "imports": 200
   },
   "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
  },
  "values_x": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000,
    "minimum": -1000000000000
   },
   "default": [
    150,
    165
   ],
   "maxItems": 10,
   "minItems": 1
  },
  "values_y": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000,
    "minimum": -1000000000000
   },
   "default": [
    200,
    220.00000000000003
   ],
   "maxItems": 10,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trade-openness-ratio-two-input-scenario-grid-calculator-df90e075/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)
