{"uid":"cap_n148uw1v-TjHKvdXZOSkN","slug":"token-buy-receipt-shortfall-rolling-mean-report-b3b3cbe2","name":"Token Buy Receipt Shortfall — Rolling Mean Report","description":"Token buy receipt shortfall — Rolling mean report: Rolling mean report 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 rolling mean report report.","url":"https://market.datapackvibe.com/x402/assistant-bx-token-buy-receipt-rolling?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},"window":{"type":"integer","default":2,"maximum":200,"minimum":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_aUR3NyzJKSJzcXxuQjPov","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 rolling mean of token buy receipt shortfall (expected minus actual tokens received) across a sliding window over supplied transaction rows.","exampleAgentPrompt":"Can you calculate the rolling mean token buy receipt shortfall for these 4 trades — expected 1000/got 950, expected 1100/got 1045, expected 1000/got 950, expected 1100/got 1045 — using a window size of 2?","exampleUseCases":[{"title":"Smoothing token shortfall across recent trades","prompt":"I have a series of token purchases where I expected 1000 but got 950, expected 1200 but got 1100, expected 800 but got 780 — can you run a rolling mean with a window of 3 to smooth out the shortfall trend?"},{"title":"Monitoring DEX fill quality over time","prompt":"We're tracking token receipt shortfall on our DEX fills. Here are 6 observations of expected vs actual tokens — can you give me the rolling mean shortfall with a window of 2 so I can see if fill quality is improving or worsening?"},{"title":"Automated shortfall reporting for token purchases","prompt":"Every hour I get new expected vs actual token data from our purchase bot. Run a rolling mean report on these 10 rows with a window of 4 so I can flag when the average shortfall starts exceeding our threshold."}],"resultDescription":"Returns a rolling mean report of token buy receipt shortfall computed over the supplied rows of expected_tokens and actual_tokens pairs, using the specified sliding window size. The result represents smoothed average shortfall values (expected minus actual) across each window position, enabling trend analysis of token fulfillment gaps.","failureModes":["Fewer than 2 rows provided — minimum row count not met","Window size exceeds number of rows — calculation cannot proceed","actual_tokens or expected_tokens values out of allowed range (0 to 1e16)","expected_tokens must be greater than 0 (exclusiveMinimum)","More than 200 rows supplied — exceeds maxItems limit","Payment not included or insufficient — x402 payment required","Malformed row objects with extra properties — additionalProperties not allowed"],"whenToPreferThis":"Choose this endpoint when you have a sequence of token buy observations (expected vs actual tokens received) and need a statistically smoothed rolling mean of the shortfall rather than a raw per-trade comparison. It is best suited for trend analysis, threshold alerting, or quality monitoring over repeated token purchases. Use it when you need a deterministic, reproducible calculation — not a live market scan or real-time price feed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:39:34.259Z","isFirstParty":false,"canonicalSlug":"token-buy-receipt-shortfall-rolling-mean-report-b3b3cbe2"}