# Token Pool Quote Relative Difference — Target Gap Calculation

> Token Pool Quote Relative Difference — Target Gap 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-12).

Computes the relative price difference between a token pool price and a reference price, then evaluates whether that gap meets a caller-specified target threshold.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-pool-price-gap-target-gap?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-pool-quote-relative-difference-target-gap-calculation-214a5c60
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eknzB-K_jtghAgP9QOeSz

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-pool-quote-relative-difference-target-gap-calculation-214a5c60 -d '<json body>'
```

Example prompt: Can you calculate the relative price gap between a token pool price of 1.35 and a reference price of 1.20, and tell me if it meets a target gap of 10?

## When to prefer this

Choose this endpoint when you need a fast, deterministic, cost-effective calculation of the relative price gap between a DeFi token pool price and a reference price against a caller-defined target threshold. It is ideal when you do not need live market scanning, on-chain safety proofs, or trade recommendations — just a clean numerical gap report and threshold verdict on provided price observations.

## Known failure modes

- Missing or zero pool_price or reference_price causes validation error (values must be positive non-zero numbers)
- pool_price or reference_price exceeding the maximum bound (1e16) may be rejected
- target value outside allowed range (-1e18 to 1e18) may return error
- Malformed request body or missing required nested properties returns schema validation error
- Payment failure or insufficient USDC balance prevents call execution

## How this service works

Token pool quote relative difference — Target gap calculation: Target gap calculation for Token pool quote relative difference. 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 target gap calculation report.

## Output

A bounded target gap calculation report containing the computed relative price difference between the pool price and reference price, and a verdict on whether that difference meets the specified target threshold. No live scanning, safety proof, or trade recommendation is included — purely a deterministic numerical result.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target": {
   "type": "number",
   "default": 100,
   "maximum": 1000000000000000000,
   "minimum": -1000000000000000000
  },
  "values": {
   "type": "object",
   "default": {
    "pool_price": 1.1,
    "reference_price": 1
   },
   "required": [
    "pool_price",
    "reference_price"
   ],
   "properties": {
    "pool_price": {
     "type": "number",
     "default": 1.1,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    },
    "reference_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-pool-quote-relative-difference-target-gap-calculation-214a5c60/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)
