{"uid":"cap_em0sRzD2A-rB52PEFQAVq","slug":"token-sell-proceeds-shortfall-weighted-result-mean-2887ad92","name":"Token Sell Proceeds Shortfall — Weighted Result Mean","description":"Token sell proceeds shortfall — Weighted result mean: Weighted result mean for Token sell proceeds shortfall. Supplied token observations only. Deterministic calculation or caller-threshold verdict, not a live scan, safety proof or trade recommendation. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one bounded weighted result mean report.","url":"https://market.datapackvibe.com/x402/assistant-bx-token-sell-receipt-weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["expected_usd","actual_usd"],"properties":{"actual_usd":{"type":"number","default":94,"maximum":10000000000000000,"minimum":0},"expected_usd":{"type":"number","default":100,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0}},"additionalProperties":false},"default":[{"actual_usd":94,"expected_usd":100},{"actual_usd":103.4,"expected_usd":110.00000000000001},{"actual_usd":94,"expected_usd":100},{"actual_usd":103.4,"expected_usd":110.00000000000001}],"maxItems":200,"minItems":2},"weights":{"type":"array","items":{"type":"number","default":1,"maximum":1000000000000,"minimum":0},"default":[1,2,1,2],"maxItems":200,"minItems":2}}},"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_mUsP3WSjeiDGHdXOB2jkp","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 weighted mean of token sell proceeds shortfall values (expected vs actual USD) across multiple trade observations.","exampleAgentPrompt":"Calculate the weighted mean proceeds shortfall for these four token sell trades: trade 1 got $94 of an expected $100 with weight 1, trade 2 got $103.40 of an expected $110 with weight 2, trade 3 got $94 of an expected $100 with weight 1, and trade 4 got $103.40 of an expected $110 with weight 2.","exampleUseCases":[{"title":"Weighted average slippage across token sells","prompt":"I have 5 token sell transactions with different sizes — the bigger trades should count more. Can you compute the weighted mean shortfall where the weights are the trade sizes? Trade 1: expected $500, got $487, weight 10; trade 2: expected $2000, got $1950, weight 40; trade 3: expected $300, got $291, weight 6; trade 4: expected $1000, got $978, weight 20; trade 5: expected $750, got $731, weight 15."},{"title":"Equal-weighted sell receipt gap summary","prompt":"I want to know the average shortfall across my last 6 token sell receipts treating each trade equally — expected amounts were $200, $350, $150, $500, $275, $420 and actual received were $193, $341, $147, $488, $269, $410."},{"title":"Portfolio-weighted proceeds shortfall report","prompt":"We have three token sell batches and I want the weighted mean of how much proceeds fell short, weighting by batch size. Batch A: expected $10,000, received $9,740, weight 100; Batch B: expected $25,000, received $24,300, weight 250; Batch C: expected $5,000, received $4,880, weight 50."}],"resultDescription":"Returns a single weighted result mean value representing the average token sell proceeds shortfall across the supplied observations, calculated deterministically from the provided expected_usd, actual_usd, and weights arrays. Output is a bounded report — not a live scan or trade recommendation.","failureModes":["Fewer than 2 row observations supplied — minimum 2 rows required","weights array length does not match rows array length","expected_usd value of zero (exclusiveMinimum enforced)","actual_usd or expected_usd exceeds maximum bound of 10^16","more than 200 rows submitted — maxItems limit","payment not processed or insufficient USDC balance"],"whenToPreferThis":"Choose this endpoint when you need a single aggregated weighted mean of sell proceeds shortfall across multiple token sell observations and you want to weight each trade differently (e.g. by trade size or importance). It is ideal for deterministic, reproducible shortfall summaries rather than live market scans or real-time price data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:22.426Z","isFirstParty":false,"canonicalSlug":"token-sell-proceeds-shortfall-weighted-result-mean-2887ad92"}