{"uid":"cap_yrtiTZPuuIKxpC9VjDkK2","slug":"trade-observations-numeric-distribution-secondary-measure-weighted-mean-e3da2fb4","name":"Trade Observations — Numeric Distribution + Secondary-Measure Weighted Mean","description":"Trade observations — Numeric distribution + Secondary-measure weighted mean: Numeric distribution + Secondary-measure weighted mean 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.","url":"https://market.datapackvibe.com/x402/assistant-ib26-economics-06-082?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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},"field":{"enum":["export_amount","import_amount"],"type":"string","default":"export_amount"}}},"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_bs4IckFh3GMJm-WTWxuP3","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":"Computes a numeric distribution and a secondary-measure weighted mean for up to 200 trade observation rows containing export and import amounts.","exampleAgentPrompt":"Run a numeric distribution and secondary-measure weighted mean on these trade records — I've got export_amount as my primary field, and rows for group-a and group-b regions across October 2026 dates, up to 200 rows total.","exampleUseCases":[{"title":"Regional export spread analysis","prompt":"I have 150 rows of trade data with export and import amounts across different regions and dates — can you compute the numeric distribution for export_amount and give me the secondary-measure weighted mean using import_amount?"},{"title":"Import-weighted mean for trade reporting","prompt":"For my quarterly trade report, run a numeric distribution plus a weighted mean on import_amount across these 80 trade observations I have for Asia-Pacific and Europe regions from 2024."},{"title":"Detecting trade imbalance patterns","prompt":"I want to understand the spread and central tendency of export amounts in my dataset of 50 trade records — can you generate the numeric distribution and the secondary-measure weighted mean so I can spot any imbalances?"}],"resultDescription":"Returns two independent statistical reports sharing the same input data: (1) a numeric distribution of the selected field (export_amount or import_amount) across all rows, and (2) a secondary-measure weighted mean where the non-selected amount field acts as the weight. Results are computed locally with no external lookups.","failureModes":["Rows array empty or missing — minItems:1 violation returns validation error","More than 200 rows submitted — maxItems:200 limit exceeded","Invalid date format (not YYYY-MM-DD) triggers pattern validation failure","Numeric values outside ±1,000,000,000,000 range rejected","Missing required fields (row_id, region, date, export_amount, import_amount) cause schema rejection","Invalid field enum value (not export_amount or import_amount) returns error","Payment of 0.01 USDC not supplied or declined — x402 payment required response"],"whenToPreferThis":"Choose this endpoint when you need two complementary statistical views — a numeric distribution and a secondary-measure weighted mean — on trade observation data (export/import amounts) in a single low-cost call. It is ideal for offline batch analytics on up to 200 rows without requiring any live data lookup or external data enrichment. Prefer it over general-purpose analytics tools when working specifically with trade/economics row data and wanting both distribution shape and weighted central tendency in one response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T13:06:49.849Z","isFirstParty":false,"canonicalSlug":"trade-observations-numeric-distribution-secondary-measure-weighted-mean-e3da2fb4"}