{"uid":"cap_qXF_VUj0P4gifsu-Pu_rH","slug":"trade-observations-grouped-numeric-summary-numeric-row-ordering-39cd05c3","name":"Trade Observations — Grouped Numeric Summary + Numeric Row Ordering","description":"Trade observations — Grouped numeric summary + Numeric row ordering: Grouped numeric summary + Numeric row ordering 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-087?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_WH_ji89xygbvEVNHzAr1q","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 grouped numeric summaries and numeric row ordering for trade observation records (export_amount, import_amount) across up to 200 rows, returning 2 independent analytical reports.","exampleAgentPrompt":"I have trade observation records for two regions — group-a and group-b — with export and import amounts for each date between 2026-10-01 and 2026-10-04. Can you give me a grouped numeric summary and numeric row ordering for the export_amount field across these 4 rows?","exampleUseCases":[{"title":"Regional export performance summary","prompt":"I have quarterly trade data for 5 regions — North, South, East, West, and Central — with export and import amounts per row. Can you group and summarize the export_amount figures by region and rank the rows numerically by export_amount so I can see which regions are performing best?"},{"title":"Import volume ranking for trade audit","prompt":"Here are 150 trade observation records with dates, regions, row IDs, and import amounts. Please run a grouped numeric summary and numeric row ordering on the import_amount field so I can audit the distribution and see which rows rank highest."},{"title":"Bilateral trade comparison by date","prompt":"I've got 80 rows of trade data spanning 2025-01-01 to 2025-12-31 across three trading blocs. Can you produce a grouped numeric summary and row ordering for the export_amount column so I can compare trade activity across blocs over the year?"}],"resultDescription":"Returns 2 independent analytical reports: (1) a grouped numeric summary showing aggregated statistics for export_amount or import_amount broken down by region groupings, and (2) a numeric row ordering that ranks all supplied trade observation rows by the selected numeric field. Both reports are computed locally from the supplied data with no external lookups.","failureModes":["Missing required fields (row_id, region, date, export_amount, or import_amount) causes validation error","Date format not matching YYYY-MM-DD pattern returns schema validation failure","Exceeding 200 rows returns a row limit exceeded error","Invalid field enum value (not 'export_amount' or 'import_amount') causes rejection","Empty rows array returns minItems validation error","Numeric values outside ±1,000,000,000,000 range fail schema validation","Payment of less than 0.01 USDC results in 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need both grouped aggregate statistics and ranked row ordering for trade observations (export/import amounts) in a single low-cost call. It is ideal for economics and trade analytics workflows where you supply up to 200 rows of structured data and need two complementary views — summary stats by region group and ordered rows by numeric field — without requiring live data lookups or external data enrichment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T12:31:38.604Z","isFirstParty":false,"canonicalSlug":"trade-observations-grouped-numeric-summary-numeric-row-ordering-39cd05c3"}