# Token Trade Depth — Target Gap Calculator

> Token Trade Depth — Target Gap Calculator 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-26).

Calculates the target gap between a token trade size and quoted liquidity depth, returning a deterministic verdict based on supplied trade and liquidity values.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-trade-depth-target-gap?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-trade-depth-target-gap-calculator-c9a56c3f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d82cye0z8uoh6-PC02_Fe

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-trade-depth-target-gap-calculator-c9a56c3f -d '<json body>'
```

Example prompt: Can you calculate the target gap for a token trade of $5,000 against a quoted liquidity of $200,000, using a target threshold of 50?

## When to prefer this

Choose this endpoint when you need a fast, deterministic calculation of the gap between a token trade size and available quoted liquidity against a caller-defined target threshold — particularly useful for pre-trade checks, bot trade sizing validation, or liquidity adequacy assessment without needing live market data feeds or safety oracles.

## Known failure modes

- Missing required values (trade_usd or liquidity_usd) returns a validation error
- Zero or negative trade_usd or liquidity_usd rejected due to exclusiveMinimum constraint
- Values exceeding maximum bounds (1e16) return an out-of-range error
- Invalid JSON body returns a 400-level error
- Payment not included or insufficient results in 402 Payment Required

## How this service works

Token trade relative to quoted liquidity — Target gap calculation: Target gap calculation for Token trade relative to quoted liquidity. 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 indicating the computed gap between the trade size and quoted liquidity relative to the specified target, returning a deterministic verdict (e.g., within/outside threshold) based solely on the supplied input values — not a live scan or trade recommendation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target": {
   "type": "number",
   "default": 100,
   "maximum": 1000000000000000000,
   "minimum": -1000000000000000000
  },
  "values": {
   "type": "object",
   "default": {
    "trade_usd": 1000,
    "liquidity_usd": 100000
   },
   "required": [
    "trade_usd",
    "liquidity_usd"
   ],
   "properties": {
    "trade_usd": {
     "type": "number",
     "default": 1000,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    },
    "liquidity_usd": {
     "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-trade-depth-target-gap-calculator-c9a56c3f/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)
