{"uid":"cap_7oUaSUqk96vU2bqs04_-J","slug":"savings-ledger-weighted-mean-date-by-category-pivot-analytics-61c7e152","name":"Savings Ledger — Weighted Mean & Date-by-Category Pivot Analytics","description":"Savings ledger — Secondary-measure weighted mean + Date by category pivot: Secondary-measure weighted mean + Date by category pivot 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-185?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"}}},"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_R-l1b56S0EHyF7IRUqjIf","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 secondary-measure weighted mean and a date-by-category pivot table for savings ledger records (deposit_amount, withdrawal_amount) — two local analytical reports in one call.","exampleAgentPrompt":"Run two analytics reports on my savings ledger — a secondary-measure weighted mean and a date-by-category pivot — using deposit_amount as the field. Here are my rows: group-a had a $10 deposit and $1 withdrawal on 2026-10-01, group-b had $20 deposit and $2 withdrawal on 2026-10-02, group-a had $15 deposit and $3 withdrawal on 2026-10-03, and group-b had $30 deposit and $4 withdrawal on 2026-10-04.","exampleUseCases":[{"title":"Monthly savings deposit trend by group","prompt":"I have 12 months of savings ledger entries across two instrument groups — Bonds and Equities — and I want to see a date-by-category pivot of deposit_amount as well as the weighted mean of deposits weighted by withdrawal_amount. Can you run both reports on my data?"},{"title":"Withdrawal pattern analysis across accounts","prompt":"Here are 80 savings ledger rows for our client accounts from Q3 — each has a row_id, instrument_group, date, deposit_amount, and withdrawal_amount. Please compute the secondary-measure weighted mean and a date-by-category pivot using withdrawal_amount as the target field."},{"title":"Savings fund category performance summary","prompt":"I'm comparing savings performance across five instrument groups over the past quarter. Can you run a weighted mean and a date-by-category pivot on deposit_amount for these 150 ledger rows I have, so I can see which groups are trending up or down by date?"}],"resultDescription":"Returns two analytical reports derived from the supplied savings ledger rows: (1) a secondary-measure weighted mean of the chosen field (deposit_amount or withdrawal_amount), using the other measure as the weight; (2) a date-by-category pivot table grouping values by date and instrument_group. Both reports are computed locally with no external data lookups. Up to 200 rows supported per call.","failureModes":["More than 200 rows submitted — request will be rejected or truncated","Missing required fields (row_id, instrument_group, date, deposit_amount, withdrawal_amount) on any row causes validation error","Invalid date format (not YYYY-MM-DD) causes schema rejection","Both deposit_amount and withdrawal_amount are null for a row — weighted mean may produce undefined result","Invalid field enum value (not 'deposit_amount' or 'withdrawal_amount') causes rejection","Empty rows array (minItems:1 not met) returns error"],"whenToPreferThis":"Choose this endpoint when you have savings ledger data with deposit and withdrawal amounts per instrument group and date, and need both a weighted mean across categories and a date-by-category pivot in a single API call. It is ideal for offline or batch analytical workflows where no live data lookup, prediction, or external enrichment is needed. Prefer this over general-purpose analytics tools when you want a low-cost ($0.01 USDC), deterministic, privacy-preserving local computation on up to 200 ledger rows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:37:21.464Z","isFirstParty":false,"canonicalSlug":"savings-ledger-weighted-mean-date-by-category-pivot-analytics-61c7e152"}