{"uid":"cap_rK0mNpzzzH-e_hHn5oSdn","slug":"treasury-supplied-balances-secondary-measure-weighted-mean-date-by-8f82007e","name":"Treasury Supplied Balances — Secondary-Measure Weighted Mean + Date by Category Pivot","description":"Treasury supplied balances — Secondary-measure weighted mean + Date by category pivot: Secondary-measure weighted mean + Date by category pivot 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-185?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"}}},"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_sXHO5l3AklsSsGSyGPBiG","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 user-supplied treasury balance records (opening and closing balances), returning two analytical reports.","exampleAgentPrompt":"Can you run a weighted mean and date-by-category pivot on my treasury balance data? I have records with opening and closing balances across instrument groups like 'bonds' and 'equities' — use opening_balance as the field, and here are up to 200 rows in the standard format.","exampleUseCases":[{"title":"Monthly treasury reconciliation report","prompt":"I have 150 rows of daily treasury balance records with opening and closing balances for instrument groups like 'T-Bills' and 'Repos'. Can you compute the secondary-measure weighted mean and a date-by-category pivot on closing_balance so I can see how balances shift across groups over the month?"},{"title":"Instrument group balance comparison","prompt":"Run a weighted mean analysis and date pivot on these treasury records — I want to compare opening_balance weighted means across my instrument groups (corporate-bonds, money-market, equities) for Q3 so I can spot which groups are driving balance changes."},{"title":"Daily closing balance pivot for finance dashboard","prompt":"I need a pivot table of closing balances by date and instrument group from my treasury data — about 80 rows covering the last two months — plus the weighted mean report. Use closing_balance as the field."}],"resultDescription":"Returns two analytical reports: (1) a secondary-measure weighted mean of the selected balance field (opening_balance or closing_balance) across the supplied rows, and (2) a date-by-category pivot table breaking down balance values by date and instrument_group. Results cover up to 200 input rows and are computed locally without external data lookups.","failureModes":["Input array exceeds 200 rows — request rejected","Missing required fields (row_id, instrument_group, date, opening_balance, closing_balance) cause validation failure","Date field does not match YYYY-MM-DD pattern — schema validation error","Balance values outside ±1,000,000,000,000 range rejected","Empty rows array (minItems:1 not met) causes error","Invalid field enum value (must be opening_balance or closing_balance)"],"whenToPreferThis":"Choose this endpoint when you have structured treasury balance records with instrument group categorization and need both a weighted mean summary and a date-by-category pivot in a single low-cost call. It is ideal for offline/batch analytical reporting on supplied data where no live market data, external lookups, or predictions are needed. At $0.01 USDC for two reports on up to 200 rows, it is cost-effective for routine treasury analytics pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T12:32:24.219Z","isFirstParty":false,"canonicalSlug":"treasury-supplied-balances-secondary-measure-weighted-mean-date-by-8f82007e"}