{"uid":"cap_eRAB3ORAN1J_O3ucXfbpU","slug":"treasury-supplied-balances-duplicate-key-report-explicit-missing-e354b810","name":"Treasury Supplied Balances — Duplicate Key Report + Explicit Missing-Value Fill","description":"Treasury supplied balances — Duplicate key report + Explicit missing-value fill: Duplicate key report + 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-070?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_dD-quqO55tl3JvW4_s5K7","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":"Detects duplicate row keys and fills missing opening/closing balance values in treasury balance records using zero, mean, or median imputation.","exampleAgentPrompt":"Can you check my treasury balance records for duplicate row keys and fill any missing opening_balance values using the median — I have about 50 rows with fields row_id, instrument_group, date, opening_balance, and closing_balance?","exampleUseCases":[{"title":"Audit treasury data for duplicate keys","prompt":"I have 120 rows of treasury balance data with row_id, instrument_group, date, opening_balance, and closing_balance — can you run a duplicate key report to find any rows that share the same row_id, and also fill in any missing opening_balance values using the median?"},{"title":"Zero-fill missing closing balances","prompt":"My treasury closing_balance column has some nulls in it — can you fill them with zero and also flag any duplicate row keys in my dataset? I've got about 80 rows of instrument group and date records."},{"title":"Mean imputation for balance data QC","prompt":"Before I load this treasury data into our system, can you detect any duplicate row_ids and replace any missing opening_balance entries with the mean value across the dataset? There are around 40 rows total."}],"resultDescription":"Returns two independent reports: (1) a duplicate key report identifying rows with repeated row_id values, and (2) a missing-value fill report showing which opening_balance or closing_balance cells were null and what values were used to fill them (zero, mean, or median of the non-null values). Up to 200 rows processed per call.","failureModes":["Exceeds 200-row limit — request rejected","Invalid date format (not YYYY-MM-DD) — validation error","opening_balance or closing_balance outside ±1,000,000,000,000 — schema rejection","Empty rows array — minimum 1 item required","Invalid method enum value — must be zero, mean, or median","Invalid field enum — must be opening_balance or closing_balance"],"whenToPreferThis":"Choose this endpoint when you need to simultaneously audit a treasury balance dataset for duplicate row keys AND impute missing balance values in a single paid call. It is specifically designed for treasury financial data with opening/closing balance fields and instrument group dimensions, making it more appropriate than a generic deduplication or imputation tool when working in a treasury/finance context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:47:39.855Z","isFirstParty":false,"canonicalSlug":"treasury-supplied-balances-duplicate-key-report-explicit-missing-e354b810"}