{"uid":"cap_tN_P08KKk4LqgHxHHRr37","slug":"trade-openness-ratio-weighted-result-mean-calculator-6487d345","name":"Trade Openness Ratio – Weighted Result Mean Calculator","description":"Trade openness ratio - Weighted result mean: Calculate a mean of up to 200 results using supplied nonnegative weights; not a pooled accounting ratio. 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 weighted result mean report.","url":"https://market.datapackvibe.com/x402/assistant-finance-trade-openness-weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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},"weights":{"type":"array","items":{"type":"number","default":1,"maximum":1000000000000,"minimum":0},"default":[1,2,1,2],"maxItems":200,"minItems":2}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MCAi2P-ek6p4rTQMwIW1V","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates a weighted mean of trade openness ratios ((exports + imports) / GDP) across up to 200 supplied data rows using user-defined nonnegative weights.","exampleAgentPrompt":"Calculate the weighted mean trade openness ratio for these four observations — GDP 1000, exports 150, imports 200 with weight 1; GDP 1100, exports 165, imports 220 with weight 2; GDP 900, exports 130, imports 180 with weight 1; GDP 1200, exports 180, imports 240 with weight 3 — and return the formula and any limitations.","exampleUseCases":[{"title":"Cross-country trade openness aggregation","prompt":"I have trade data for five countries — GDP, exports, and imports for each — and I want to compute a single weighted average trade openness ratio where larger economies get higher weights. Can you run this for me and tell me the formula used?"},{"title":"Multi-period trade openness trend summary","prompt":"I have annual trade figures for a single country over 10 years: exports, imports, and GDP each year. I want to compute a weighted mean trade openness ratio across all years, giving more weight to recent years — weights 1 through 10. What does the weighted average come out to?"},{"title":"Regional bloc weighted trade openness","prompt":"I'm comparing trade openness across 8 member states in a regional bloc. Each has different exports, imports, and GDP figures. Weight each country by its share of total bloc GDP and give me the weighted mean trade openness ratio with the formula and any caveats."}],"resultDescription":"Returns a JSON object containing the computed weighted mean trade openness ratio, the mathematical formula applied, the units used, and a statement of limitations — clarifying that this is a statistical mean of supplied figures, not a pooled accounting ratio, and that no live data or financial advice is included.","failureModes":["Fewer than 2 rows or weights supplied — returns validation error","Weights array length does not match rows array length — mismatch error","Any GDP value is zero or negative — violates exclusiveMinimum constraint","Exports or imports exceed maximum allowed value (1e12) — schema violation","All weights are zero — weighted mean is undefined","More than 200 rows submitted — exceeds maxItems limit","Payment of 0.01 USDC not included or fails — 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you have multiple pre-computed trade data observations (exports, imports, GDP) and need a single weighted summary statistic — not a live feed or real-time lookup. Ideal for batch analysis of historical trade datasets, cross-country comparisons, or multi-period aggregations where different observations deserve different importance weights. Not suitable for real-time market data, financial advice, or trade execution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T13:07:39.058Z","isFirstParty":false,"canonicalSlug":"trade-openness-ratio-weighted-result-mean-calculator-6487d345"}