# Token Observed Price Change — Distribution Histogram

> Token Observed Price Change — 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-14).

Computes a distribution histogram of observed token price changes from a set of before/after price pairs, bucketed into a configurable number of bins.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-price-change-histogram?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-observed-price-change-distribution-histogram-46801a9f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0-HM-VvvTstgiCDVQH8i6

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-observed-price-change-distribution-histogram-46801a9f -d '<json body>'
```

Example prompt: I have 10 pairs of before-and-after token prices and I want to see how the price changes are distributed — can you run a histogram with 8 bins on these observations: [{current_price: 1.5, previous_price: 1.0}, {current_price: 0.9, previous_price: 1.1}, {current_price: 2.0, previous_price: 1.8}, ...]?

## When to prefer this

Choose this endpoint when you have a specific set of token price observations (current and previous prices) and need a deterministic histogram of how those price changes are distributed across bins. It is ideal for offline analysis, backtests, or risk audits where you supply your own data rather than needing live market scanning. Prefer it over general-purpose statistical tools when you need a crypto-specific, pay-per-use histogram with no setup overhead.

## Known failure modes

- Fewer than 2 row observations provided — minimum is 2 rows
- Bin count outside 1–30 range — rejected by schema validation
- current_price or previous_price set to zero or negative — excluded by exclusiveMinimum constraint
- More than 200 rows submitted — exceeds maxItems limit
- Missing required current_price or previous_price fields in any row — schema validation error
- Payment failure or insufficient USDC balance — request not processed

## How this service works

Token observed price change — Distribution histogram: Distribution histogram for Token observed price change. 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

Returns a distribution histogram report showing how the computed price changes (derived from current_price / previous_price pairs) are spread across the requested number of bins, including bin boundaries and frequency counts for each bucket. The calculation is deterministic based solely on the supplied observations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bins": {
   "type": "integer",
   "default": 5,
   "maximum": 30,
   "minimum": 1
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "current_price",
     "previous_price"
    ],
    "properties": {
     "current_price": {
      "type": "number",
      "default": 1.2,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     },
     "previous_price": {
      "type": "number",
      "default": 1,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "current_price": 1.2,
     "previous_price": 1
    },
    {
     "current_price": 1.32,
     "previous_price": 1.1
    },
    {
     "current_price": 1.2,
     "previous_price": 1
    },
    {
     "current_price": 1.32,
     "previous_price": 1.1
    }
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-observed-price-change-distribution-histogram-46801a9f/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)
