{"uid":"cap_2n9WDLIc4Ll7B7uzqix9J","slug":"token-drawdown-from-peak-rolling-mean-report-fbab06ad","name":"Token Drawdown from Peak — Rolling Mean Report","description":"Token drawdown from supplied peak — Rolling mean report: Rolling mean report for Token drawdown from supplied peak. 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-drawdown-rolling?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["peak_price","current_price"],"properties":{"peak_price":{"type":"number","default":2,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0},"current_price":{"type":"number","default":1.5,"maximum":10000000000000000,"minimum":0,"exclusiveMinimum":0}},"additionalProperties":false},"default":[{"peak_price":2,"current_price":1.5},{"peak_price":2.2,"current_price":1.6500000000000001},{"peak_price":2,"current_price":1.5},{"peak_price":2.2,"current_price":1.6500000000000001}],"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_wtNAjiVZrsz0O_JcfLlrU","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":"Calculates a rolling mean of token price drawdown from supplied peak prices over a configurable window, returning a statistical report for each observation set.","exampleAgentPrompt":"Calculate the rolling mean drawdown from peak for these token observations — peaks were 2.0, 2.2, 2.0, 2.2 USDC and current prices are 1.5, 1.65, 1.5, 1.65 — use a rolling window of 2.","exampleUseCases":[{"title":"Token portfolio drawdown monitoring","prompt":"I have a series of token price observations — the peak prices were 5.0, 4.8, 5.2, 4.9, 5.1 and the current prices are 3.8, 3.5, 4.0, 3.6, 3.9. Can you calculate the rolling mean drawdown from peak using a window of 3?"},{"title":"Crypto risk assessment for a trading bot","prompt":"For my trading bot's risk check, calculate the rolling average drawdown from peak for this token — the peaks are 100, 98, 105, 102 and current prices are 75, 70, 80, 78 — use a window size of 2."},{"title":"Historical drawdown smoothing for DeFi analytics dashboard","prompt":"I need to smooth out the drawdown signal for a DeFi analytics dashboard. Here are 6 token observations with peaks of 10, 12, 11, 13, 12, 11 and current prices of 7, 9, 8, 10, 8, 7. Compute the rolling mean drawdown using a window of 3."}],"resultDescription":"Returns a rolling mean drawdown report computed from the supplied peak_price and current_price row pairs, aggregated over the specified window size. The report reflects the average proportional or absolute decline from peak across the rolling window — deterministically calculated from the caller-supplied data, not a live market scan. No trade recommendations or safety guarantees are included.","failureModes":["Fewer than 2 rows supplied — minItems validation error","Window size larger than number of rows — calculation may be undefined or error","peak_price or current_price set to zero or negative — exclusiveMinimum violation","More than 200 rows supplied — maxItems validation error","Malformed row objects missing required peak_price or current_price fields","Payment failure or insufficient USDC balance — 402 payment required"],"whenToPreferThis":"Choose this endpoint when you have a discrete set of token price observations (peak and current) and need a deterministic rolling mean drawdown statistic computed server-side without a live market connection. It is ideal for batch analytical pipelines, backtesting dashboards, or agent-driven risk checks where you supply your own historical or sampled data and want a smoothed drawdown metric over a configurable window. Prefer alternatives if you need real-time market data, live price feeds, or trading signals.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:39:26.541Z","isFirstParty":false,"canonicalSlug":"token-drawdown-from-peak-rolling-mean-report-fbab06ad"}