{"uid":"cap_y68_M8LD0Mf7D7nZrAVAy","slug":"treasury-supplied-balances-duplicate-key-report-numeric-row-ordering-901f640b","name":"Treasury Supplied Balances — Duplicate Key Report + Numeric Row Ordering","description":"Treasury supplied balances — Duplicate key report + Numeric row ordering: Duplicate key report + Numeric row ordering 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-058?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_qavVKhqqosPHIp184OKvz","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":"Analyzes up to 200 rows of treasury balance records to produce a duplicate row_id report and a numerically ordered ranking of opening_balance or closing_balance values.","exampleAgentPrompt":"Check my treasury balance records for duplicate row IDs and then rank them by closing_balance — here are the rows: row-1, group-a, 2026-10-01, opening 10, closing 1; row-2, group-b, 2026-10-02, opening 20, closing 2; row-1, group-a, 2026-10-03, opening 15, closing 3.","exampleUseCases":[{"title":"Duplicate key audit for treasury data","prompt":"I've got about 150 rows of treasury balance records and I suspect some row IDs are repeated — can you run a duplicate key report on them and tell me which row_ids appear more than once? The field I care about is opening_balance."},{"title":"Numerically ordered ranking of closing balances","prompt":"Take these treasury instrument balance records and rank all 80 rows in numeric order by their closing_balance values so I can see which instruments have the highest and lowest closing positions."},{"title":"Pre-submission data quality check","prompt":"Before I submit this treasury dataset for review, can you check the 200 rows for any duplicate row_id entries and also give me a numerically ordered view of the opening_balance field so I can spot any anomalies?"}],"resultDescription":"Returns two analytical reports: (1) a duplicate key report listing any row_ids that appear more than once in the submitted dataset, and (2) a numerically ordered ranking of the selected balance field (opening_balance or closing_balance) across all submitted rows. Up to 200 rows are processed per call.","failureModes":["Exceeding 200 rows returns a validation error","Missing required fields (row_id, date, instrument_group, opening_balance, closing_balance) causes schema rejection","Invalid date format (not YYYY-MM-DD) triggers pattern validation failure","Numeric values outside ±1,000,000,000,000 are rejected","Empty rows array (minItems:1 violated) returns an error","Invalid field enum value (not opening_balance or closing_balance) causes rejection"],"whenToPreferThis":"Choose this endpoint when you need to simultaneously detect duplicate row identifiers and produce a numerically sorted view of treasury balance data (opening or closing) in a single low-cost call. It is purpose-built for treasury supplied balance records with instrument_group segmentation and is ideal for pre-submission data quality checks or routine audit workflows on datasets up to 200 rows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:35:25.594Z","isFirstParty":false,"canonicalSlug":"treasury-supplied-balances-duplicate-key-report-numeric-row-ordering-901f640b"}