{"uid":"cap_1LvpXSIpafuxI0Y8onG6l","slug":"trade-observations-quality-audit-weighted-mean-44902d7b","name":"Trade Observations Quality Audit & Weighted Mean","description":"Trade observations — Record quality audit + Secondary-measure weighted mean: Record quality audit + 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-016?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_V-cvJIbxz61jacOJVa945","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":"Runs a record quality audit and secondary-measure weighted mean on up to 200 trade observation rows (export_amount, import_amount), returning two analytical reports.","exampleAgentPrompt":"Can you run a record quality audit and secondary-measure weighted mean on these 4 trade observations — rows for group-a and group-b from 2026-10-01 to 2026-10-04 with export and import amounts — using export_amount as the primary field?","exampleUseCases":[{"title":"Audit regional export data quality","prompt":"I have 150 trade records for various regions from 2025-01-01 to 2025-12-31 with export_amount and import_amount values — can you run a quality audit on them and give me a weighted mean for export_amount?"},{"title":"Detect import record anomalies","prompt":"Run a data quality check on my 80 import/export observation rows and compute the secondary-measure weighted mean for import_amount — I want to catch any bad records before I submit this report."},{"title":"Validate trade dataset before analysis","prompt":"Before I analyze this trade dataset, can you audit the record quality and calculate the weighted mean for export_amount across all 200 rows grouped by region and date?"}],"resultDescription":"Two analytical reports: (1) a record quality audit flagging issues such as nulls, out-of-range values, or missing fields across the submitted trade observation rows; and (2) a secondary-measure weighted mean computed for the selected field (export_amount or import_amount) across the supplied rows.","failureModes":["Input array exceeds 200 rows — rejected with validation error","Missing required fields (row_id, region, date, export_amount, import_amount) on any row — validation failure","Invalid date format (must match YYYY-MM-DD) — schema validation error","Field selector not one of 'export_amount' or 'import_amount' — enum validation error","All values null for selected field — weighted mean may be undefined or return error","Payment not included or insufficient — x402 payment required response"],"whenToPreferThis":"Choose this endpoint when you need both a data quality audit and a weighted mean statistic on trade observation records (export/import amounts) in a single $0.01 call covering up to 200 rows. It is best suited for offline/batch validation and statistical summarization of trade data without any need for live market lookups, predictions, or external enrichment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T12:41:46.659Z","isFirstParty":false,"canonicalSlug":"trade-observations-quality-audit-weighted-mean-44902d7b"}