# Token Quote vs Received Amount – Threshold Classification

> Token Quote vs Received Amount – Threshold Classification 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).

Classifies whether the shortfall between quoted and received token amounts falls within or outside a caller-defined threshold range, using deterministic calculation.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-quote-shortfall-threshold?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-quote-vs-received-amount-threshold-classification-56caff92
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l3SppyvF91Vw1DfCQCZDw

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-quote-vs-received-amount-threshold-classification-56caff92 -d '<json body>'
```

Example prompt: I have 4 token swap observations — quoted 1000 received 980, quoted 1100 received 1078, quoted 1000 received 980, quoted 1100 received 1078 — can you classify whether the shortfalls fall within a threshold range of 0 to 100 tokens?

## When to prefer this

Choose this endpoint when you need a fast, deterministic, per-row classification of token quote-versus-received shortfalls against a defined numeric range — without requiring live market data, safety analysis, or trade recommendations. Ideal for batch auditing swap results, compliance checks, or automated monitoring pipelines where the threshold logic is caller-defined and consistent.

## Known failure modes

- Fewer than 2 rows supplied returns a validation error
- quoted_tokens value of 0 or negative is rejected (exclusiveMinimum)
- More than 200 rows supplied exceeds maxItems limit
- Lower threshold greater than upper threshold may produce unexpected classification results
- Non-numeric token values cause schema validation failure

## How this service works

Token quote versus received amount — Threshold classification: Threshold classification for Token quote versus received amount. 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 threshold classification report.

## Output

A bounded threshold classification report indicating whether the shortfall (quoted minus received tokens) for each observation row falls within or outside the caller-specified lower and upper threshold bounds, computed deterministically from the supplied token pairs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "quoted_tokens",
     "received_tokens"
    ],
    "properties": {
     "quoted_tokens": {
      "type": "number",
      "default": 1000,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     },
     "received_tokens": {
      "type": "number",
      "default": 980,
      "maximum": 10000000000000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "quoted_tokens": 1000,
     "received_tokens": 980
    },
    {
     "quoted_tokens": 1100,
     "received_tokens": 1078
    },
    {
     "quoted_tokens": 1000,
     "received_tokens": 980
    },
    {
     "quoted_tokens": 1100,
     "received_tokens": 1078
    }
   ],
   "maxItems": 200,
   "minItems": 2
  },
  "lower": {
   "type": "number",
   "default": 0,
   "maximum": 1000000000000000000,
   "minimum": -1000000000000000000
  },
  "upper": {
   "type": "number",
   "default": 100,
   "maximum": 1000000000000000000,
   "minimum": -1000000000000000000
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-quote-vs-received-amount-threshold-classification-56caff92/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)
