{"uid":"cap_IVi-ySP02SWlRkqHRTkUf","slug":"treasury-supplied-balances-trailing-mean-series-adjacent-row-changes-813be594","name":"Treasury Supplied Balances — Trailing Mean Series + Adjacent Row Changes","description":"Treasury supplied balances — Trailing mean series + Adjacent row changes: Trailing mean series + Adjacent row changes for supplied treasury supplied balances records (opening_balance, closing_balance). 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-finance-16-146?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","instrument_group","date","opening_balance","closing_balance"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"closing_balance":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"opening_balance":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"instrument_group":{"type":"string","default":"","maxLength":80}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","closing_balance":1,"opening_balance":10,"instrument_group":"group-a"},{"date":"2026-10-02","row_id":"row-2","closing_balance":2,"opening_balance":20,"instrument_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","closing_balance":3,"opening_balance":15,"instrument_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","closing_balance":4,"opening_balance":30,"instrument_group":"group-b"}],"maxItems":200,"minItems":1},"field":{"enum":["opening_balance","closing_balance"],"type":"string","default":"opening_balance"},"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_2nU0U_4b11PF3TFjhCjv4","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 trailing moving averages and adjacent row-to-row changes for treasury opening/closing balance time series data, returning two analytical reports for up to 200 rows.","exampleAgentPrompt":"Can you run a trailing mean series with a window of 3 and adjacent row changes on my treasury balance data for these records — I want to analyze the closing_balance field across instrument groups A and B over the past week?","exampleUseCases":[{"title":"Treasury balance trend smoothing","prompt":"I have daily treasury opening and closing balances for 5 instrument groups over the past quarter — can you calculate a trailing mean with a window of 7 days for the closing_balance field and also show me the row-over-row changes?"},{"title":"Detecting sharp balance shifts","prompt":"I need to spot sudden jumps in our treasury opening_balance figures — run adjacent row changes and a trailing mean with window 4 on these 80 rows of daily balance records so I can flag anomalies."},{"title":"Instrument group balance analytics","prompt":"Here are 150 rows of treasury supplied balances across several instrument groups — please compute the trailing mean series with window 5 and the adjacent row delta report for closing_balance so I can review the trends in our monthly review."}],"resultDescription":"Two analytical reports: (1) a trailing mean series showing the rolling average of the selected balance field (opening_balance or closing_balance) over the specified window, and (2) an adjacent row changes report showing the difference between consecutive rows for the same field — both keyed by row_id, date, and instrument_group.","failureModes":["Fewer than 2 rows provided — minimum row count not met","Window size exceeds number of rows — trailing mean cannot be computed","Invalid date format — must match YYYY-MM-DD pattern","Balance values outside allowed range (-1,000,000,000,000 to 1,000,000,000,000)","More than 200 rows submitted — exceeds maximum input size","Missing required fields (row_id, instrument_group, date, opening_balance, closing_balance) — validation error","Payment not received or insufficient USDC — x402 payment required"],"whenToPreferThis":"Choose this endpoint when you have treasury or financial ledger time series data with opening and closing balances and need both a smoothed trend view (trailing mean) and a period-over-period delta report in a single low-cost call. It is particularly suited for batch offline analysis of up to 200 rows without needing live market data, external lookups, or professional financial advice.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T12:32:31.584Z","isFirstParty":false,"canonicalSlug":"treasury-supplied-balances-trailing-mean-series-adjacent-row-changes-813be594"}