{"uid":"cap_vFjoHCJbWoLNzqDcnDLxZ","slug":"treasury-supplied-balances-numeric-interval-filter-secondary-measure-0e2766a2","name":"Treasury Supplied Balances — Numeric Interval Filter + Secondary-Measure Weighted Mean","description":"Treasury supplied balances — Numeric interval filter + Secondary-measure weighted mean: Numeric interval filter + Secondary-measure weighted mean 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-132?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"},"maximum":{"type":"number","default":100,"maximum":1000000000000,"minimum":-1000000000000},"minimum":{"type":"number","default":0,"maximum":1000000000000,"minimum":-1000000000000}}},"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_FIkj68mUHao6Uje-CR7_z","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":"Filters treasury balance records by a numeric interval and computes a secondary-measure weighted mean across opening and closing balances for up to 200 rows.","exampleAgentPrompt":"Filter my treasury balance records where opening_balance is between 5 and 50, then compute the secondary-measure weighted mean — here are the rows: [{\"row_id\":\"row-1\",\"date\":\"2026-10-01\",\"instrument_group\":\"group-a\",\"opening_balance\":10,\"closing_balance\":1},{\"row_id\":\"row-2\",\"date\":\"2026-10-02\",\"instrument_group\":\"group-b\",\"opening_balance\":20,\"closing_balance\":2}].","exampleUseCases":[{"title":"Filter balances within budget band","prompt":"I have 50 rows of treasury balance data and I want to keep only the ones where closing_balance is between 1000 and 50000, then calculate the weighted mean of those closing balances — can you run that analysis?"},{"title":"Instrument group balance analysis","prompt":"Here are my treasury records across group-a and group-b for Q4 2026 — filter them to opening_balance between 0 and 100 and give me the weighted mean of opening_balance across those filtered rows."},{"title":"Outlier exclusion before mean calculation","prompt":"I want to exclude extreme treasury balance values — filter out anything where opening_balance is outside the range of 500 to 9999999, then compute a secondary-measure weighted mean on the remaining records so I get a cleaner average."}],"resultDescription":"Returns two independent analytical reports: (1) the subset of treasury balance rows whose target field (opening_balance or closing_balance) falls within the specified [minimum, maximum] interval, and (2) a secondary-measure weighted mean computed over that filtered dataset. Up to 200 input rows are supported.","failureModes":["Fewer than 1 row supplied returns a validation error","Row count exceeds 200 — rejected with schema violation","Invalid date format (not YYYY-MM-DD) causes parse error","minimum greater than maximum yields empty filter result","Null values in opening_balance or closing_balance may affect weighted mean calculation","Payment of 0.01 USDC not completed — 402 response returned","Field enum value other than 'opening_balance' or 'closing_balance' causes rejection"],"whenToPreferThis":"Choose this endpoint when you need to both filter treasury balance records by a numeric range and compute a weighted mean in a single call. It is ideal for financial analysts or agents working with treasury data who want to exclude out-of-range balances and summarize the remaining set with a weighted average, without needing an external analytics engine. Prefer it over general-purpose computation tools when your data already fits the treasury balance schema (row_id, date, instrument_group, opening_balance, closing_balance) and you want two coordinated reports from one low-cost call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T12:32:47.314Z","isFirstParty":false,"canonicalSlug":"treasury-supplied-balances-numeric-interval-filter-secondary-measure-0e2766a2"}