# Token Drawdown from Peak — Distribution Histogram

> Token Drawdown from Peak — Distribution Histogram 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).

Computes a binned distribution histogram of drawdown percentages from supplied peak prices across a set of token price observations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-drawdown-histogram?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-distribution-histogram-352dd326
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NkY-iaP5HRBp84Y2e6h1_

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-distribution-histogram-352dd326 -d '<json body>'
```

Example prompt: Can you give me a drawdown-from-peak distribution histogram for these 8 token observations — peak prices were 2.0, 2.2, 3.0, 1.8, 2.5, 2.0, 1.9, 2.3 and current prices are 1.5, 1.65, 2.1, 1.4, 1.8, 1.6, 1.5, 1.9 — split into 8 bins?

## When to prefer this

Choose this endpoint when you have a batch of token price observations (peak and current) and need a statistical frequency distribution — not just a single drawdown figure — to understand the shape and spread of losses. Ideal for portfolio risk profiling, DeFi position audits, or any scenario where you want to see how drawdowns cluster across a dataset rather than inspect individual values.

## Known failure modes

- Fewer than 2 rows supplied — minimum 2 observations required
- Peak price or current price is zero or negative — exclusiveMinimum:0 enforced
- More than 200 rows submitted — maxItems limit exceeded
- Bins parameter outside range 1–30
- Malformed row objects missing peak_price or current_price fields
- Payment not included or USDC balance insufficient for $0.01 fee

## How this service works

Token drawdown from supplied peak — Distribution histogram: Distribution histogram 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 distribution histogram report.

## Output

A distribution histogram report showing how drawdown percentages (from supplied peak prices to current prices) are distributed across the requested number of bins. Each bin covers a range of drawdown values and reports the count (frequency) of token observations falling within that range, enabling statistical analysis of loss distribution across the dataset.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bins": {
   "type": "integer",
   "default": 5,
   "maximum": 30,
   "minimum": 1
  },
  "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-drawdown-from-peak-distribution-histogram-352dd326/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)
