# Token Observed Price Change — Single Calculation

> Token Observed Price Change — Single Calculation 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-16).

Calculates the observed percentage or absolute price change for a token given a current price and a previous price, returning a bounded single-calculation report.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-price-change-calculate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-observed-price-change-single-calculation-6dd0820f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x7i1FbR7llo3Zu9ix1Lkt

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-single-calculation-6dd0820f -d '<json body>'
```

Example prompt: Calculate the observed price change for a token that was previously priced at 1.00 and is now priced at 1.20 — give me the single calculation report.

## When to prefer this

Use this endpoint when you need a deterministic, single-shot computation of price change between exactly two token price observations. Prefer this over live market data APIs when you already have the price values and simply need the change calculated consistently. It is ideal for pipelines, reporting agents, or alert logic that supply their own observed prices rather than fetching live quotes.

## Known failure modes

- current_price or previous_price is zero or negative (violates exclusiveMinimum:0 constraint)
- missing required fields current_price or previous_price returns validation error
- price values exceed maximum bound of 1e16
- payment of 0.01 USDC not provided or rejected via x402 protocol
- malformed request body returns 4xx error

## How this service works

Token observed price change — Single calculation: Single calculation 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 single calculation report.

## Output

A bounded single-calculation report showing the observed price change between the supplied current_price and previous_price values, computed deterministically. The result is not a live market scan, safety proof, or trade recommendation — it reflects only the two supplied data points.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "object",
   "default": {
    "current_price": 1.2,
    "previous_price": 1
   },
   "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-observed-price-change-single-calculation-6dd0820f/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)
