# Token Liquidity Relative Change — Before and After Comparison

> Token Liquidity Relative Change — Before and After Comparison 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).

Compares token liquidity relative change between two time windows (before and after) and returns a deterministic percentage-change verdict.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-liquidity-change-compare?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-liquidity-relative-change-before-and-after-comparison-e03817b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5FLzyUQ5BtXBTTvi8daCl

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-liquidity-relative-change-before-and-after-comparison-e03817b5 -d '<json body>'
```

Example prompt: Can you compare the token liquidity change before and after a recent event? Before the event, liquidity went from 100,000 to 120,000 USDC; after the event, it went from 110,000 to 132,000 USDC — I want to see if the relative change improved.

## When to prefer this

Use this endpoint when you have two distinct liquidity observation windows (before and after an event, upgrade, or time boundary) and need a deterministic relative-change comparison without real-time scanning. Ideal for post-hoc analysis of liquidity dynamics around discrete events rather than live market monitoring.

## Known failure modes

- Missing required fields (current_liquidity or previous_liquidity in either before or after object) returns a validation error
- Zero or negative liquidity values are rejected (exclusiveMinimum: 0 enforced)
- Values exceeding the maximum bound (1e16) are rejected
- Malformed JSON body returns a 400 error
- Payment failure or missing x402 payment header results in a 402 response

## How this service works

Token liquidity relative change — Before and after comparison: Before and after comparison for Token liquidity relative 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 before and after comparison report.

## Output

Returns a structured report containing the relative percentage change for both the 'before' window and the 'after' window, plus a comparison verdict indicating whether the relative change improved, declined, or stayed flat — computed deterministically from the supplied liquidity snapshots.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "object",
   "default": {
    "current_liquidity": 132000,
    "previous_liquidity": 110000.00000000001
   },
   "required": [
    "current_liquidity",
    "previous_liquidity"
   ],
   "properties": {
    "current_liquidity": {
     "type": "number",
     "default": 120000,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    },
    "previous_liquidity": {
     "type": "number",
     "default": 100000,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    }
   },
   "additionalProperties": false
  },
  "before": {
   "type": "object",
   "default": {
    "current_liquidity": 120000,
    "previous_liquidity": 100000
   },
   "required": [
    "current_liquidity",
    "previous_liquidity"
   ],
   "properties": {
    "current_liquidity": {
     "type": "number",
     "default": 120000,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    },
    "previous_liquidity": {
     "type": "number",
     "default": 100000,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-liquidity-relative-change-before-and-after-comparison-e03817b5/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)
