{"uid":"cap_-0DRGMVu-2GWYVUsF0JHF","slug":"trade-observations-trailing-mean-series-secondary-measure-weighted-mean-1e4487df","name":"Trade Observations — Trailing Mean Series + Secondary-Measure Weighted Mean","description":"Trade observations — Trailing mean series + Secondary-measure weighted mean: Trailing mean series + 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-151?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"},"window":{"type":"integer","default":2,"maximum":200,"minimum":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_VE5cNwIqvND6Nk4yvanbj","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 trailing mean time series and a secondary-measure weighted mean for trade observation records containing export and import amounts.","exampleAgentPrompt":"Can you run trailing mean and secondary-measure weighted mean reports on my trade data? I have up to 200 rows with export_amount and import_amount fields — use export_amount as the primary field and a window of 5.","exampleUseCases":[{"title":"Monthly export trend smoothing","prompt":"I have monthly trade records for several regions with export and import amounts. Can you compute a trailing mean series with a window of 12 over the export_amount field so I can see the smoothed trend?"},{"title":"Import-weighted mean for trade balance analysis","prompt":"I need to calculate a weighted mean of import amounts where the export amounts act as the secondary-measure weights — can you run that report on my 150 trade observation rows?"},{"title":"Regional trade analytics for economics report","prompt":"I've got quarterly trade observations across different regions. Please run both the trailing mean series and the secondary-measure weighted mean reports on these records using export_amount as the primary field and a window of 4."}],"resultDescription":"Returns two reports: (1) a trailing mean series for the specified primary field (export_amount or import_amount) computed over the given rolling window, and (2) a secondary-measure weighted mean where one trade measure is weighted by the other — all computed locally without external lookups, for up to 200 input rows.","failureModes":["Fewer than 1 or more than 200 rows provided — request rejected","window value smaller than 2 or larger than 200 — validation error","Invalid date format (not YYYY-MM-DD) — schema validation failure","Missing required fields (row_id, region, date, export_amount, import_amount) — error","null values in numeric fields may affect weighted mean computation","Payment of 0.01 USDC not fulfilled — 402 response"],"whenToPreferThis":"Choose this endpoint when you need both a rolling/trailing mean time series AND a secondary-measure weighted mean computed together on trade observation data (export_amount, import_amount) in a single paid call. It is purpose-built for economics and trade datasets, handles up to 200 rows, and bundles two analytical reports for one flat fee — ideal when you want offline, deterministic statistical summaries without live data lookups or predictions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T07:45:53.320Z","isFirstParty":false,"canonicalSlug":"trade-observations-trailing-mean-series-secondary-measure-weighted-mean-1e4487df"}