{"uid":"cap_qDR4_I1bEbdrNPbaOOd50","slug":"trade-observations-category-frequencies-secondary-measure-weighted-mean-1631e536","name":"Trade Observations: Category Frequencies + Secondary-Measure Weighted Mean","description":"Trade observations — Category frequencies + Secondary-measure weighted mean: Category frequencies + 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-109?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_hfsSWnlf00dVuy5iimLzb","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 category frequency counts and a secondary-measure weighted mean for up to 200 trade observation records containing export and import amounts.","exampleAgentPrompt":"I have 150 rows of trade data with region, date, export_amount, and import_amount columns — can you calculate the category frequencies by region and the weighted mean of export_amount across those records?","exampleUseCases":[{"title":"Regional trade export frequency analysis","prompt":"I've got quarterly trade records for group-a and group-b regions covering 2026, each row has export_amount and import_amount — can you give me the frequency count per region and the weighted mean of export_amount across all 200 rows?"},{"title":"Import-weighted mean for trade policy review","prompt":"Here are 80 trade observation rows with region, date, and import/export figures — I need the category frequency breakdown by region and the weighted mean of import_amount so I can compare which regions are driving the most import volume."},{"title":"Economics report aggregation by trade region","prompt":"I'm preparing an economics summary and need to aggregate these 50 trade records — please compute how frequently each region appears and what the weighted average of export_amount is, weighted by the secondary measure."}],"resultDescription":"Returns two reports for the supplied trade records: (1) category frequency counts showing how often each region value appears across the dataset, and (2) a weighted mean of the selected primary field (export_amount or import_amount) using the other measure as the weight — both computed locally up to 200 rows.","failureModes":["Fewer than 1 row supplied — minimum 1 row required","More than 200 rows supplied — exceeds maximum batch size","Missing required fields (row_id, region, date, export_amount, import_amount) on any row","Date strings not matching YYYY-MM-DD pattern","Numeric values outside allowed range (-1,000,000,000,000 to 1,000,000,000,000)","Invalid field enum value — must be 'export_amount' or 'import_amount'","Payment of 0.01 USDC not provided or declined"],"whenToPreferThis":"Choose this endpoint when you have tabular trade observation data (with region, date, export and import amounts) and need both a category frequency distribution and a weighted mean statistic in a single low-cost call — particularly when working offline with supplied data rather than needing live market lookups or predictions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:35:51.339Z","isFirstParty":false,"canonicalSlug":"trade-observations-category-frequencies-secondary-measure-weighted-mean-1631e536"}