{"uid":"cap_O12wXMAR_gg6xzodJxFPv","slug":"token-quote-vs-received-amount-weighted-mean-calculator-43e86ba9","name":"Token Quote vs Received Amount — Weighted Mean Calculator","description":"Token quote versus received amount — Weighted result mean: Weighted result mean for Token quote versus received amount. 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-quote-shortfall-weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["quoted_tokens","received_tokens"],"properties":{"quoted_tokens":{"type":"number","default":1000,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0},"received_tokens":{"type":"number","default":980,"maximum":10000000000000000,"minimum":0}},"additionalProperties":false},"default":[{"quoted_tokens":1000,"received_tokens":980},{"quoted_tokens":1100,"received_tokens":1078},{"quoted_tokens":1000,"received_tokens":980},{"quoted_tokens":1100,"received_tokens":1078}],"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_CYWmKjjSkgBA2UqMQPRQ4","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 quote shortfall (quoted tokens minus received tokens) across multiple trade observations","exampleAgentPrompt":"Calculate the weighted mean token shortfall for these 4 trades: quoted 1000, received 980 with weight 1; quoted 1100, received 1078 with weight 2; quoted 1000, received 980 with weight 1; quoted 1100, received 1078 with weight 2.","exampleUseCases":[{"title":"Weighted slippage audit across swap batch","prompt":"I have 4 recent token swaps — quoted 1000 received 980 (weight 1), quoted 1100 received 1078 (weight 2), quoted 500 received 489 (weight 1), quoted 2000 received 1950 (weight 3). Can you compute the weighted mean of my quote shortfall across all of them?"},{"title":"Trade execution quality review with size weighting","prompt":"We ran a series of token trades today and I want to weight the shortfall analysis by trade volume. Trades: quoted 5000 received 4900 (weight 10), quoted 3000 received 2940 (weight 6), quoted 8000 received 7760 (weight 15). Give me the weighted mean shortfall."},{"title":"Comparing routers by weighted mean fill accuracy","prompt":"I'm comparing two routing strategies. For router A I have: quoted 1200 received 1176 (weight 2) and quoted 800 received 788 (weight 1). Can you compute the weighted mean token shortfall so I can benchmark fill accuracy?"}],"resultDescription":"Returns a single weighted mean value representing the average shortfall between quoted and received token amounts across all supplied observations, weighted by the provided weight array. The report is deterministic and bounded — not a live scan or trade recommendation.","failureModes":["Fewer than 2 rows supplied — minimum 2 observations required","Weights array length does not match rows array length","received_tokens exceeds maximum allowed value","quoted_tokens is zero or negative — exclusiveMinimum enforced","More than 200 rows submitted — maxItems limit exceeded","Malformed numeric types in rows or weights arrays"],"whenToPreferThis":"Use this endpoint when you need a deterministic, weighted aggregate measure of token quote shortfall across a batch of 2–200 trade observations. Prefer it over simple arithmetic when trades have different importance or size and you want a size-weighted average. Not suitable for real-time slippage monitoring, live price feeds, or safety/risk scoring — it is a pure statistical computation on already-collected observations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:55.579Z","isFirstParty":false,"canonicalSlug":"token-quote-vs-received-amount-weighted-mean-calculator-43e86ba9"}