{"uid":"cap_BI39pRxccOJoEmtS8RJRT","slug":"savings-ledger-numeric-row-ordering-secondary-measure-weighted-mean-f81aa8be","name":"Savings Ledger — Numeric Row Ordering + Secondary-Measure Weighted Mean","description":"Savings ledger — Numeric row ordering + Secondary-measure weighted mean: Numeric row ordering + Secondary-measure weighted mean 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-121?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_eAZwbQ9wVue7X98Pnz3EC","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 (rank) and secondary-measure weighted mean on savings ledger records (deposit_amount, withdrawal_amount) for up to 200 rows, returning two analytical reports.","exampleAgentPrompt":"I have a savings ledger with 4 rows — row-1 on 2026-10-01 with deposit 10 and withdrawal 1 (group-a), row-2 on 2026-10-02 with deposit 20 and withdrawal 2 (group-b), row-3 on 2026-10-03 with deposit 15 and withdrawal 3 (group-a), row-4 on 2026-10-04 with deposit 30 and withdrawal 4 (group-b) — can you rank these rows by deposit_amount and also give me the secondary-measure weighted mean for deposit_amount?","exampleUseCases":[{"title":"Rank savings deposits by amount","prompt":"I have a savings ledger with 10 transactions from October — each has a row ID, date, instrument group, deposit amount, and withdrawal amount. Can you rank them numerically by deposit_amount and also compute the weighted mean of deposit_amount using the withdrawal_amount as the secondary measure?"},{"title":"Analyze withdrawal patterns across groups","prompt":"Here are 50 rows from our savings ledger spanning Q3, with instrument groups like 'retail' and 'institutional'. Please rank the rows by withdrawal_amount and compute the secondary-measure weighted mean for withdrawal_amount so I can see which rows are pulling the most weight."},{"title":"Compare ledger entries for monthly review","prompt":"I need to do a monthly review of our savings ledger — I have 120 rows with deposit and withdrawal amounts across several instrument groups. Can you give me the numeric row ordering and the secondary-measure weighted mean for deposit_amount for all of them?"}],"resultDescription":"Returns two analytical reports for the supplied savings ledger rows: (1) numeric row ordering (ranks) of each row by the specified field (deposit_amount or withdrawal_amount), and (2) a secondary-measure weighted mean where one measure is weighted by the other. Results are computed locally from the supplied data with no external lookups.","failureModes":["Exceeding 200 rows returns an error or truncation","Missing required fields (row_id, date, deposit_amount, withdrawal_amount, instrument_group) cause validation failure","Invalid date format (not YYYY-MM-DD) causes schema rejection","Null values in both measures may yield undefined weighted mean","Supplying fewer than 1 row causes a minItems validation error"],"whenToPreferThis":"Choose this endpoint when you need both numeric row ranking and a secondary-measure weighted mean computed on savings ledger data (deposit_amount, withdrawal_amount) in a single call for up to 200 rows, without needing live data lookups, predictions, or external integrations. It is cost-effective at $0.01 for two reports and is ideal for offline batch analytics on already-collected savings transaction records.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:09:13.742Z","isFirstParty":false,"canonicalSlug":"savings-ledger-numeric-row-ordering-secondary-measure-weighted-mean-f81aa8be"}