{"uid":"cap_V1xOI0p_2r010Agcv9PTf","slug":"token-buy-receipt-shortfall-weighted-result-mean-9b9d6770","name":"Token Buy Receipt Shortfall — Weighted Result Mean","description":"Token buy receipt shortfall — Weighted result mean: Weighted result mean for Token buy receipt 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-buy-receipt-weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["expected_tokens","actual_tokens"],"properties":{"actual_tokens":{"type":"number","default":950,"maximum":10000000000000000,"minimum":0},"expected_tokens":{"type":"number","default":1000,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0}},"additionalProperties":false},"default":[{"actual_tokens":950,"expected_tokens":1000},{"actual_tokens":1045,"expected_tokens":1100},{"actual_tokens":950,"expected_tokens":1000},{"actual_tokens":1045,"expected_tokens":1100}],"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_DX2kB2_uNOmg2YsN6mGcj","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 buy receipt shortfall values (expected minus actual tokens received) across multiple observations.","exampleAgentPrompt":"Calculate the weighted mean shortfall for my token buys — I expected 1000, 1100, 1000, and 1100 tokens but only received 950, 1045, 950, and 1045, with weights of 1, 2, 1, and 2 for each trade.","exampleUseCases":[{"title":"DeFi slippage audit across trades","prompt":"I made four token purchases expecting 500, 750, 1000, and 1200 tokens but got 480, 710, 960, and 1150 — weight the larger trades more heavily with weights 1, 2, 3, 4 and give me the weighted mean shortfall."},{"title":"Token vesting receipt reconciliation","prompt":"Reconcile my vesting receipts: expected tokens were 10000, 10000, and 20000 but I actually received 9800, 9750, and 19500. Weight them equally and tell me the weighted average shortfall."},{"title":"Exchange fill-rate monitoring","prompt":"I'm tracking exchange fill quality — over 5 fills I expected 200, 400, 600, 800, and 1000 tokens and got 190, 385, 580, 770, and 950 respectively. Use weights of 1, 1, 2, 2, 3 and compute the weighted mean token shortfall for me."}],"resultDescription":"Returns a single weighted mean shortfall value representing the average token deficit (expected minus actual tokens) across all supplied observation rows, weighted by the provided weight array. The report is a deterministic calculation based solely on the submitted data — not a live market scan or trade recommendation.","failureModes":["Fewer than 2 rows submitted — minimum 2 observations required","More than 200 rows submitted — exceeds maximum array size","Weights array length does not match rows array length","expected_tokens set to 0 — violates exclusiveMinimum constraint","actual_tokens or expected_tokens exceed maximum value of 10^16","Malformed numeric values in rows or weights arrays"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, weighted statistical summary of token purchase shortfalls across multiple observations — particularly when some trades or observations should carry more influence than others. Prefer this over a simple mean when trade sizes or importance vary significantly across observations. Not suitable for real-time market scanning, trade recommendations, or safety verification.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:46:19.604Z","isFirstParty":false,"canonicalSlug":"token-buy-receipt-shortfall-weighted-result-mean-9b9d6770"}