# Token Bid-Ask Spread Single Calculation

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

Calculates the bid-ask spread for a token given a single pair of bid and ask price observations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-quote-spread-calculate?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-single-calculation-1818a9d8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RVRzC9V063MpQEvm4Pqxp

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-single-calculation-1818a9d8 -d '<json body>'
```

Example prompt: Calculate the bid-ask spread for a token where the ask price is 1.05 and the bid price is 0.97.

## When to prefer this

Choose this endpoint when you have a single pair of bid and ask prices for a token and need a fast, deterministic spread calculation without live market access. Ideal for post-hoc analysis of recorded quotes, liquidity screening pipelines, or validation workflows where you supply observations rather than requesting a live scan. Not suitable when you need real-time market data, batch processing of many pairs, or a full safety or trade recommendation report.

## Known failure modes

- Ask or bid value missing — request rejected due to required field validation
- Ask or bid value is zero or negative — rejected by exclusiveMinimum constraint
- Ask value is below bid value — may return degenerate or inverted spread result
- Values exceed maximum bound (1e16) — rejected by schema validation
- Malformed JSON body — HTTP 400 or parsing error returned

## How this service works

Token bid-ask spread — Single calculation: Single 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 single calculation report.

## Output

Returns a bounded single-calculation report of the token's bid-ask spread, derived deterministically from the supplied ask and bid prices. The report reflects the spread value and may include a threshold-based verdict if configured, but is not a live market scan or trade recommendation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "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-single-calculation-1818a9d8/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)
