{"uid":"cap_fA6wSh44YwiIezAMg1O8Z","slug":"trade-observations-iqr-outlier-flags-date-by-category-pivot-1abea588","name":"Trade Observations IQR Outlier Flags + Date by Category Pivot","description":"Trade observations — IQR outlier flags + Date by category pivot: IQR outlier flags + Date by category pivot 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-178?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_fif6m5IjkBxWT9Kqtolrc","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":"Analyzes trade observation records (export_amount, import_amount) to produce IQR-based outlier flags and a date-by-category pivot table in a single call.","exampleAgentPrompt":"Can you flag any IQR outliers and generate a date-by-region pivot for these trade records I have — up to 200 rows with export_amount and import_amount fields — focusing on export_amount?","exampleUseCases":[{"title":"Detect outlier export values by region","prompt":"I have monthly trade records for about 150 rows with export_amount and import_amount per region and date — can you run IQR outlier detection on export_amount and also give me a date-by-region pivot so I can see the distribution?"},{"title":"Audit import data quality before reporting","prompt":"Before I submit this quarterly import report, can you flag any statistically anomalous import_amount values using IQR and pivot the data by date and region so I can spot unusual patterns across my 80 trade observation rows?"},{"title":"Compare trade balance patterns across regions","prompt":"I want to understand which of my trade observations have outlier import_amount values and see a pivot table of totals by date and region category — here are 120 rows of trade data with region, date, export_amount, and import_amount."}],"resultDescription":"Returns two analytical reports for the supplied trade observation rows: (1) IQR outlier flags indicating which rows have statistically anomalous values for the selected field (export_amount or import_amount), and (2) a date-by-category (region) pivot table summarizing the data. Both reports are computed locally against the supplied data with no external lookups.","failureModes":["Fewer than 1 row or more than 200 rows causes rejection","Missing required fields (row_id, region, date, export_amount, import_amount) causes validation error","Invalid date format (not YYYY-MM-DD) causes schema rejection","Numeric values outside ±1,000,000,000,000 range are rejected","Invalid field enum value (not export_amount or import_amount) causes error","Payment of 0.01 USDC not provided causes 402 response"],"whenToPreferThis":"Choose this endpoint when you need both IQR-based statistical outlier detection and a date-by-category pivot on trade (export/import) data in a single low-cost call. Ideal for economists, analysts, or data pipelines that need fast local statistical QA on up to 200 trade observation rows without sending data to external prediction or lookup services. Particularly suitable when you want two analytical views (outlier flags + pivot) for the price of one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:16:35.956Z","isFirstParty":false,"canonicalSlug":"trade-observations-iqr-outlier-flags-date-by-category-pivot-1abea588"}