{"uid":"cap_EjJD3xi8PeY3vD91-SlSK","slug":"treasury-supplied-balances-exact-row-deduplication-date-by-category-4c3a6cef","name":"Treasury Supplied Balances — Exact Row Deduplication + Date by Category Pivot","description":"Treasury supplied balances — Exact row deduplication + Date by category pivot: Exact row deduplication + 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-052?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_zTLT4jJBLFOhjtldZhUJ5","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":"Deduplicates treasury balance rows exactly and pivots opening or closing balance data by date and instrument category, returning two analytical reports for up to 200 rows.","exampleAgentPrompt":"I have a list of treasury balance records with instrument groups like 'bonds' and 'cash' across dates in October 2026 — can you deduplicate them exactly and pivot the opening_balance values by date and instrument category? Here are up to 50 rows including row_id, date, instrument_group, opening_balance, and closing_balance.","exampleUseCases":[{"title":"Treasury balance deduplication before reporting","prompt":"I've got a set of treasury balance rows that may have duplicates — row IDs like 'row-1' through 'row-40', covering instrument groups like 'bonds' and 'equities' from 2026-09-01 to 2026-09-30. Can you deduplicate them exactly and give me a pivot of the closing_balance values by date and instrument group?"},{"title":"Monthly instrument category pivot for finance team","prompt":"Our finance team needs a date-by-category breakdown of opening balances for these 120 treasury records spanning instrument groups like 'cash', 'derivatives', and 'fixed-income' across Q3 2026. Please deduplicate the rows first and then pivot the opening_balance field."},{"title":"Audit prep: clean and pivot closing balances","prompt":"Before our audit, I need to clean up these 80 treasury supplied balance records — deduplicate any exact duplicate rows and then create a pivot table of closing_balance values organized by date and instrument_group so we can spot any anomalies."}],"resultDescription":"Returns two analytical reports: (1) a deduplicated version of the input treasury balance rows with exact duplicates removed, and (2) a pivot table cross-tabulating the selected balance field (opening_balance or closing_balance) by date on one axis and instrument_group on the other, covering up to 200 input rows.","failureModes":["Input array is empty or missing required fields (row_id, instrument_group, date, opening_balance, closing_balance) — returns validation error","Date field does not match YYYY-MM-DD pattern — schema validation failure","More than 200 rows submitted — rejected with maxItems constraint error","Balance values exceed ±1,000,000,000,000 — rejected with range constraint error","Invalid field selector (not 'opening_balance' or 'closing_balance') — enum validation error","Payment of 0.01 USDC not provided or rejected — 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you have treasury balance data with instrument groups and dates and need both exact deduplication and a pivot table in a single low-cost call. It is purpose-built for treasury supplied balance records with the opening_balance/closing_balance schema, so it is preferable over general-purpose analytics tools when your data fits this structure and you need two reports (deduplication + pivot) together for under $0.01.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-25T12:32:03.552Z","isFirstParty":false,"canonicalSlug":"treasury-supplied-balances-exact-row-deduplication-date-by-category-4c3a6cef"}