{"uid":"cap_EMlxkoojTSU6T2tAdu59P","slug":"treasury-balances-secondary-measure-weighted-mean-keyed-dataset-615c88ef","name":"Treasury Balances Secondary-Measure Weighted Mean + Keyed Dataset Comparison","description":"Treasury supplied balances — Secondary-measure weighted mean + Keyed dataset comparison: Secondary-measure weighted mean + Keyed dataset comparison 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-186?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"},"other":{"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":21,"instrument_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","closing_balance":3,"opening_balance":17,"instrument_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","closing_balance":4,"opening_balance":33,"instrument_group":"group-b"}],"maxItems":200,"minItems":0}}},"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_aTnOhYBMGmDR5_Q5YeO8r","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 performs a keyed dataset comparison across two sets of treasury supplied balance records (opening and closing balances) for up to 200 rows each.","exampleAgentPrompt":"Can you compute a secondary-measure weighted mean and keyed dataset comparison on my two sets of treasury balance records? I have up to 50 rows per dataset with opening_balance and closing_balance fields, grouped by instrument_group, and I want to analyze the opening_balance field.","exampleUseCases":[{"title":"Treasury daily balance drift analysis","prompt":"I have two batches of treasury records — yesterday's and today's — each with about 80 rows including opening and closing balances per instrument group. Can you run a weighted mean on the closing_balance and compare the two datasets keyed by row ID to see what changed?"},{"title":"Instrument group weighted balance benchmarking","prompt":"I've got 120 rows of treasury supplied balance data split across four instrument groups. Run a secondary-measure weighted mean on the opening_balance field and compare it against my reference dataset of the same size so I can see which groups diverge."},{"title":"Month-end treasury reconciliation comparison","prompt":"For our month-end close, I need a weighted mean calculation and a keyed comparison of two treasury balance snapshots — primary and secondary — each with around 150 rows, using the closing_balance field as the measure."}],"resultDescription":"Returns two independent analytical reports: (1) a secondary-measure weighted mean computed over the specified balance field (opening_balance or closing_balance) across the supplied rows, and (2) a keyed dataset comparison between the primary and secondary row sets, identifying differences by row_id and instrument_group. Both reports are generated locally from supplied data with no external lookups.","failureModes":["Rows array exceeds 200 items — request rejected","Missing required fields (row_id, instrument_group, date, opening_balance, closing_balance) — validation error","Date format not matching YYYY-MM-DD pattern — schema validation failure","Balance values outside allowed range (-1,000,000,000,000 to 1,000,000,000,000) — rejected","Empty rows array (minItems: 1 not met) — error returned","Payment of 0.01 USDC not completed — 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you have two structured treasury balance datasets (up to 200 rows each) and need both a weighted mean statistic on a balance field and a row-keyed comparison between the two datasets in a single call. It is ideal for treasury reconciliation, month-end comparisons, and instrument-group-level balance analytics where no external data, live pricing, or predictions are needed — only deterministic local computation on supplied records.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:54:12.827Z","isFirstParty":false,"canonicalSlug":"treasury-balances-secondary-measure-weighted-mean-keyed-dataset-615c88ef"}