{"uid":"cap_iZMlkZg8gjR510im3Y2pN","slug":"savings-ledger-trailing-mean-series-two-measure-correlation-ce0e13d9","name":"Savings Ledger — Trailing Mean Series + Two-Measure Correlation","description":"Savings ledger — Trailing mean series + Two-measure correlation: Trailing mean series + Two-measure correlation for supplied savings ledger records (deposit_amount, withdrawal_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-finance-23-150?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","instrument_group","date","deposit_amount","withdrawal_amount"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"deposit_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"instrument_group":{"type":"string","default":"","maxLength":80},"withdrawal_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","deposit_amount":10,"instrument_group":"group-a","withdrawal_amount":1},{"date":"2026-10-02","row_id":"row-2","deposit_amount":20,"instrument_group":"group-b","withdrawal_amount":2},{"date":"2026-10-03","row_id":"row-3","deposit_amount":15,"instrument_group":"group-a","withdrawal_amount":3},{"date":"2026-10-04","row_id":"row-4","deposit_amount":30,"instrument_group":"group-b","withdrawal_amount":4}],"maxItems":200,"minItems":1},"field":{"enum":["deposit_amount","withdrawal_amount"],"type":"string","default":"deposit_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_MIEdgv7XkegOwRSrXjASH","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 a trailing moving average series and a Pearson correlation between deposit_amount and withdrawal_amount for up to 200 savings ledger rows, returning two analytical reports.","exampleAgentPrompt":"Can you run a trailing mean series with a window of 5 and a deposit-vs-withdrawal correlation on my savings ledger data? I have 120 rows with deposit_amount and withdrawal_amount fields, grouped by instrument_group, dated from 2025-01-01 to 2025-04-30.","exampleUseCases":[{"title":"Monthly savings trend smoothing","prompt":"I have 90 rows of daily savings ledger entries with deposit_amount and withdrawal_amount. Can you compute a trailing mean series using a window of 7 on the deposit_amount field so I can see the smoothed deposit trend over time?"},{"title":"Deposit-withdrawal correlation check","prompt":"Run a two-measure correlation between deposit_amount and withdrawal_amount on my 150-row savings ledger — I want to know how closely my deposits and withdrawals move together across instrument groups."},{"title":"Quarterly savings ledger analytics","prompt":"I've got a 200-row savings ledger covering Q1 2025, with columns for date, row_id, instrument_group, deposit_amount, and withdrawal_amount. Give me both a trailing mean series with window 10 and the correlation between deposits and withdrawals in one report."}],"resultDescription":"Returns two analytical reports: (1) a trailing mean series showing the rolling average of the selected field (deposit_amount or withdrawal_amount) over the specified window for each row, and (2) a correlation coefficient and supporting statistics measuring the linear relationship between deposit_amount and withdrawal_amount across all supplied rows.","failureModes":["Fewer than 1 row supplied — validation error","More than 200 rows supplied — request rejected","Window size larger than number of rows — insufficient data for trailing mean","Invalid date format (not YYYY-MM-DD) — schema validation failure","Missing required fields (row_id, date, instrument_group) — validation error","Non-numeric values in deposit_amount or withdrawal_amount — computation error"],"whenToPreferThis":"Choose this endpoint when you need both a time-series moving average and a cross-measure correlation on savings ledger data in a single low-cost call. It is ideal for offline, supply-your-own-data analytics on up to 200 rows with no need for live data lookup, external integrations, or professional financial advice. Best suited for developers or agents processing savings ledger exports who want bundled statistical outputs cheaply.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T12:32:18.007Z","isFirstParty":false,"canonicalSlug":"savings-ledger-trailing-mean-series-two-measure-correlation-ce0e13d9"}