{"uid":"cap_3V47hiFGnwDbJyKFigECd","slug":"treasury-supplied-balances-two-measure-correlation-explicit-missing-2a6f7d2e","name":"Treasury Supplied Balances — Two-Measure Correlation + Explicit Missing-Value Fill","description":"Treasury supplied balances — Two-measure correlation + Explicit missing-value fill: Two-measure correlation + Explicit missing-value fill 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-184?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"},"method":{"enum":["zero","mean","median"],"type":"string","default":"median"}}},"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_IiMHm_wHoK3xsWf-EhO7c","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 correlation between opening_balance and closing_balance for treasury records and fills missing values using a specified strategy (zero, mean, or median), returning two analytical reports for up to 200 rows.","exampleAgentPrompt":"I have up to 200 rows of treasury balance records with fields like row_id, instrument_group, date, opening_balance, and closing_balance — some values are null. Can you run a two-measure correlation between opening_balance and closing_balance, and fill any missing closing_balance values using the median strategy?","exampleUseCases":[{"title":"Treasury reconciliation with null imputation","prompt":"I have 150 rows of daily treasury balance records across multiple instrument groups, some with missing opening_balance entries. Please correlate opening_balance and closing_balance, and fill those missing values using the mean so I can reconcile the ledger."},{"title":"Instrument group balance pattern analysis","prompt":"Can you analyze my treasury data — about 80 rows covering group-a and group-b instruments from Q4 — to see how correlated the opening and closing balances are, and zero-fill any nulls in the opening_balance field?"},{"title":"Data quality fix before downstream reporting","prompt":"Before I send our treasury balance dataset to the finance team, I need to fill missing closing_balance values using the median and also get a correlation report between opening and closing balances for the 200 rows we have. Can you do both at once?"}],"resultDescription":"Returns two analytical reports: (1) a correlation report showing the statistical relationship between opening_balance and closing_balance across the supplied rows, and (2) a missing-value fill report showing which values were imputed and what replacement values were used, based on the chosen fill strategy (zero, mean, or median).","failureModes":["Input array is empty or exceeds 200 rows — validation error","Invalid date format (not YYYY-MM-DD) causes row rejection","opening_balance or closing_balance values outside ±1,000,000,000,000 are rejected","Unknown fill method enum value causes request failure","All values for a field are null — correlation cannot be computed","Payment of 0.01 USDC not fulfilled — x402 payment required error"],"whenToPreferThis":"Choose this endpoint when you have treasury balance data (opening and closing balances) with potential null values and need both a correlation analysis and missing-value imputation in a single call. It is best suited for small-to-medium datasets (up to 200 rows) where you want local, offline statistical computation without any live data lookup or external API calls. Prefer this over general-purpose analytics tools when you need a lightweight, pay-per-use financial data quality + correlation workflow with deterministic, reproducible outputs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-25T12:33:03.185Z","isFirstParty":false,"canonicalSlug":"treasury-supplied-balances-two-measure-correlation-explicit-missing-2a6f7d2e"}