{"uid":"cap_e3N96GSY1TCxwbDqOFKrc","slug":"financial-statement-inputs-secondary-measure-weighted-mean-date-by-b9dc1ce5","name":"Financial Statement Inputs — Secondary-Measure Weighted Mean + Date by Category Pivot","description":"Financial statement inputs — Secondary-measure weighted mean + Date by category pivot: Secondary-measure weighted mean + Date by category pivot for supplied financial statement inputs records (revenue_amount, expense_amount). 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-22-185?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","instrument_group","date","revenue_amount","expense_amount"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"expense_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"revenue_amount":{"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","expense_amount":1,"revenue_amount":10,"instrument_group":"group-a"},{"date":"2026-10-02","row_id":"row-2","expense_amount":2,"revenue_amount":20,"instrument_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","expense_amount":3,"revenue_amount":15,"instrument_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","expense_amount":4,"revenue_amount":30,"instrument_group":"group-b"}],"maxItems":200,"minItems":1},"field":{"enum":["revenue_amount","expense_amount"],"type":"string","default":"revenue_amount"}}},"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_5e03IjMJJMnMMmC4qFdt7","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 a secondary-measure weighted mean and a date-by-category pivot table for up to 200 financial statement input rows (revenue_amount, expense_amount) using local analytical engines.","exampleAgentPrompt":"Can you run a weighted mean and date-by-category pivot on these financial records? I have 4 rows with instrument groups 'group-a' and 'group-b', dated 2026-10-01 through 2026-10-04, with revenue amounts of 10, 20, 15, 30 and expense amounts of 1, 2, 3, 4 — analyze the revenue_amount field.","exampleUseCases":[{"title":"Quarterly revenue weighted mean by segment","prompt":"I have 150 rows of quarterly financial data with revenue and expense amounts tagged by instrument group and date — can you compute a weighted mean of revenue_amount and pivot it by date and category so I can see how each segment performed?"},{"title":"Expense distribution pivot for budget review","prompt":"Run a secondary-measure weighted mean and a date-by-category pivot on my expense_amount data — I've got 80 rows of financial statement inputs across several instrument groups spanning the last two months."},{"title":"Multi-group financial statement analysis","prompt":"I need two analytical reports on my financial statement inputs: a weighted mean and a date-by-category pivot for revenue_amount. There are about 60 rows covering instrument groups like 'equities' and 'fixed-income' with dates from 2026-01-01 to 2026-03-31."}],"resultDescription":"Returns two analytical reports: (1) a secondary-measure weighted mean of the selected financial field (revenue_amount or expense_amount) using the other measure as the weight, and (2) a pivot table of the selected field broken down by date and instrument_group category. Both reports are computed locally from the supplied rows with no external data.","failureModes":["More than 200 rows submitted — request will be rejected or truncated","Missing required fields (row_id, instrument_group, date, revenue_amount, or expense_amount) cause validation errors","Invalid date format (not YYYY-MM-DD) triggers schema validation failure","Both revenue_amount and expense_amount are null for a row, making weighted mean undefined","field parameter not one of the allowed enum values ('revenue_amount' or 'expense_amount')","Payment not completed via x402 protocol — endpoint returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need both a weighted mean and a date-by-category pivot computed together on a single batch of financial statement rows (up to 200), and you want two coordinated reports from one low-cost call ($0.01 USDC). Prefer it over general analytics services when your data is already structured with row_id, instrument_group, date, revenue_amount, and expense_amount fields, and you need purely local computation with no external lookups or predictions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T12:35:40.098Z","isFirstParty":false,"canonicalSlug":"financial-statement-inputs-secondary-measure-weighted-mean-date-by-b9dc1ce5"}