{"uid":"cap_aInN9dKOhlyPCHkiGQs2V","slug":"trade-observations-grouped-numeric-summary-trailing-mean-series-8bead52a","name":"Trade Observations — Grouped Numeric Summary + Trailing Mean Series","description":"Trade observations — Grouped numeric summary + Trailing mean series: Grouped numeric summary + Trailing mean series 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-090?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_EVPQDkX5fMBvYkiRZiIh6","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 grouped numeric summary and a trailing moving-average series for up to 200 trade observation records containing export and import amounts.","exampleAgentPrompt":"Can you run a grouped numeric summary and trailing mean series on these trade records — region and date are included, the target field is export_amount, and I want a window of 4. Here are up to 50 rows with row_id, region, date, export_amount, and import_amount.","exampleUseCases":[{"title":"Regional export trend analysis","prompt":"I have 120 trade observations with region, date, export_amount, and import_amount. Can you group them by region and also compute a 6-period trailing mean for export_amount so I can see the trend?"},{"title":"Import smoothing for forecasting prep","prompt":"Here are 80 rows of monthly import data by country — row_id, region, date, export_amount, import_amount all filled in. Please give me a grouped numeric summary and a trailing mean series for import_amount using a window of 3."},{"title":"Economics dataset QA and aggregation","prompt":"I'm cleaning up a trade dataset with 150 rows. Can you produce a grouped summary and a rolling mean series for export_amount with a window of 5 so I can spot outliers and smooth noise before I hand this off?"}],"resultDescription":"Two reports: (1) a grouped numeric summary of the specified field (export_amount or import_amount) broken down by region, and (2) a trailing moving-average series for that field using the specified window size — both computed locally against the supplied rows with no external data lookups.","failureModes":["Fewer than 1 row supplied — minimum row count not met","More than 200 rows submitted — exceeds maximum row limit","Window size larger than the number of available rows for a group — trailing mean may be undefined or partial","Missing required fields (row_id, region, date, export_amount, import_amount) — validation error","Date strings not matching YYYY-MM-DD pattern — schema rejection","Numeric values outside ±1,000,000,000,000 range — validation error","Payment of 0.01 USDC not attached or fails — 402 payment required response"],"whenToPreferThis":"Choose this endpoint when you have structured trade observation records with export and import amounts and need both a grouped regional summary and a time-series trailing mean in a single API call for a flat $0.01 fee. It is best suited for offline/batch analytical tasks on datasets up to 200 rows where no live data lookup, prediction, or external enrichment is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T12:31:09.524Z","isFirstParty":false,"canonicalSlug":"trade-observations-grouped-numeric-summary-trailing-mean-series-8bead52a"}