# Token Bid-Ask Spread Target Gap Calculator

> Token Bid-Ask Spread 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-13).

Calculates the target gap for a token's bid-ask spread given observed bid/ask prices and a target value, returning a deterministic report.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-quote-spread-target-gap?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-bid-ask-spread-target-gap-calculator-41235a54
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vCii3BpiB3mf5HMhktX-0

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-bid-ask-spread-target-gap-calculator-41235a54 -d '<json body>'
```

Example prompt: Calculate the bid-ask spread target gap for a token with a bid price of 0.98 and ask price of 1.02, using a target of 100.

## When to prefer this

Use this endpoint when you need a fast, cheap, deterministic calculation of the bid-ask spread target gap for a token given specific observed bid and ask prices, especially when you already have the price observations and just need the gap computed against a threshold — not for live market scanning, price discovery, or safety analysis.

## Known failure modes

- bid or ask price is zero or negative — rejected by schema minimum constraint
- ask price lower than bid price — may produce unexpected or inverted gap result
- target value outside supported range — capped at schema maximum
- missing required bid or ask values — request rejected with validation error
- payment not included or insufficient — 402 payment required response

## How this service works

Token bid-ask spread — Target gap calculation: Target gap calculation for Token bid-ask spread. 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 deterministic target gap calculation report for the token's bid-ask spread, indicating the computed gap relative to the supplied target value and optionally a threshold verdict — no live market data or trade recommendations included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target": {
   "type": "number",
   "default": 100,
   "maximum": 1000000000000000000,
   "minimum": -1000000000000000000
  },
  "values": {
   "type": "object",
   "default": {
    "ask": 1.02,
    "bid": 0.98
   },
   "required": [
    "ask",
    "bid"
   ],
   "properties": {
    "ask": {
     "type": "number",
     "default": 1.02,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    },
    "bid": {
     "type": "number",
     "default": 0.98,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-bid-ask-spread-target-gap-calculator-41235a54/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)
