# Token Drawdown from Peak — Rolling Mean Report

> Token Drawdown from Peak — Rolling Mean Report is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Calculates a rolling mean of token price drawdown from supplied peak prices over a configurable window, returning a statistical report for each observation set.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-drawdown-rolling?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-drawdown-from-peak-rolling-mean-report-fbab06ad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2n9WDLIc4Ll7B7uzqix9J

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability token-drawdown-from-peak-rolling-mean-report-fbab06ad -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-drawdown-from-peak-rolling-mean-report-fbab06ad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
