# Token Quote vs Received Amount — Sequential Input-Change Attribution

> Token Quote vs Received Amount — Sequential Input-Change Attribution 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).

Computes a sequential input-change attribution (waterfall) report comparing before/after token quote and received amounts to explain shortfall changes.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-quote-shortfall-waterfall?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-sequential-input-change-attribution-9cace78f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zjkqKTPapkQNmcbjdWt9F

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-sequential-input-change-attribution-9cace78f -d '<json body>'
```

Example prompt: Before my last swap I quoted 1000 tokens and received 980, then after it I quoted 1100 and received 1078 — can you run a sequential input-change attribution waterfall to explain how the shortfall changed?

## When to prefer this

Use this endpoint when you need a deterministic, reproducible explanation of why a token shortfall changed between two observations — specifically to attribute the change sequentially to input differences (quoted vs received). Prefer this over general slippage calculators when you have a concrete before/after pair of quote and received token amounts and need a structured waterfall decomposition rather than a raw percentage.

## Known failure modes

- quoted_tokens of 0 or below triggers exclusiveMinimum validation error
- received_tokens exceeding 10^16 causes schema validation failure
- missing required fields (quoted_tokens or received_tokens in either before or after) returns a 400 error
- swapped before/after values may produce inverted attribution without error

## How this service works

Token quote versus received amount — Sequential input-change attribution: Sequential input-change attribution 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 sequential input-change attribution report.

## Output

A deterministic sequential input-change attribution (waterfall) report showing how changes in quoted_tokens and received_tokens inputs between the 'before' and 'after' observations contributed to the delta in token shortfall, along with a caller-threshold verdict if applicable. No live market data or trade recommendation is included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "object",
   "default": {
    "quoted_tokens": 1100,
    "received_tokens": 1078
   },
   "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
  },
  "before": {
   "type": "object",
   "default": {
    "quoted_tokens": 1000,
    "received_tokens": 980
   },
   "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-quote-vs-received-amount-sequential-input-change-attribution-9cace78f/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)
