{"uid":"cap_xANGJiTvBFdxmhREzxOug","slug":"trade-observations-numeric-row-ordering-trailing-mean-series-2f33dbc6","name":"Trade Observations — Numeric Row Ordering + Trailing Mean Series","description":"Trade observations — Numeric row ordering + Trailing mean series: Numeric row ordering + 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-115?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_ijzRBfguVjWZOAkPLIICg","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 numeric row ordering ranks and trailing moving-average series for trade observation records (export_amount, import_amount) over up to 200 rows.","exampleAgentPrompt":"Can you rank my trade observation rows and compute a trailing mean series with a window of 3 for the export_amount field? I have 4 records: row-1 (2026-10-01, group-a, export 10, import 1), row-2 (2026-10-02, group-b, export 20, import 2), row-3 (2026-10-03, group-a, export 15, import 3), row-4 (2026-10-04, group-b, export 30, import 4).","exampleUseCases":[{"title":"Rolling average for regional export trends","prompt":"I have 50 daily trade records across two regions — can you compute the numeric row ordering and a trailing mean with a window of 5 for the export_amount field so I can see the smoothed trend?"},{"title":"Import data smoothing for economics report","prompt":"Take these 20 import_amount trade observations and give me both a ranked row ordering and a 7-period trailing mean series — I need them for a quarterly economics writeup."},{"title":"Detecting momentum in bilateral trade flows","prompt":"I want to rank these 100 trade rows and calculate a 10-row trailing mean on import_amount to spot momentum shifts — can you run both reports on my supplied records?"}],"resultDescription":"Returns two independent analytical reports for the supplied trade records: (1) a numeric row ordering report assigning sequential rank positions to each row, and (2) a trailing mean series report computing rolling averages over the chosen window for the specified field (export_amount or import_amount). Both reports use local analytical engines with no external lookups.","failureModes":["Fewer than 1 row supplied — rejected by minItems constraint","More than 200 rows supplied — rejected by maxItems constraint","Invalid date format (not YYYY-MM-DD) — schema validation error","Missing required fields (row_id, region, date, export_amount, import_amount) — validation failure","Window size outside 2–200 range — schema rejection","Invalid field enum value (not export_amount or import_amount) — schema rejection","Payment not attached or insufficient — 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need both numeric row ranking and a trailing moving-average series computed together on trade economics data (export/import amounts) in a single low-cost call. It is ideal for offline/batch analytics on supplied datasets up to 200 rows where no live data lookup or prediction is needed. Prefer it over general statistics APIs when you specifically need these two complementary reports on trade observation records at a fixed $0.01 USDC price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:35:37.524Z","isFirstParty":false,"canonicalSlug":"trade-observations-numeric-row-ordering-trailing-mean-series-2f33dbc6"}