# Token Buy Receipt Shortfall — Target Gap Calculator

> Token Buy Receipt Shortfall — 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-12).

Calculates the gap between expected and actual tokens received in a buy transaction, determining whether a configurable target threshold is met

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-buy-receipt-target-gap?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-buy-receipt-shortfall-target-gap-calculator-8c6933b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kqhtznK5txRWWZxd6juP8

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-buy-receipt-shortfall-target-gap-calculator-8c6933b3 -d '<json body>'
```

Example prompt: I bought tokens and expected to receive 1000 but only got 950 — can you calculate the target gap for this shortfall against a target of 100 to see if I missed the mark?

## When to prefer this

Choose this endpoint when you need a fast, deterministic calculation of the gap between expected and actual tokens in a purchase receipt against a configurable threshold — particularly for automated reconciliation pipelines, post-trade auditing, or alerting workflows where you supply your own token observations and want a bounded verdict without live market scanning or trade advice.

## Known failure modes

- expected_tokens value of zero triggers exclusiveMinimum validation failure
- actual_tokens or expected_tokens exceeding 10,000,000,000,000,000 rejected as out of range
- target value outside ±1e18 range rejected
- missing required values object returns schema validation error
- malformed JSON body returns 400-level error
- payment not included or insufficient USDC results in 402 Payment Required

## How this service works

Token buy receipt shortfall — Target gap calculation: Target gap calculation for Token buy receipt shortfall. 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

Returns a deterministic target gap calculation report indicating the numeric difference between expected_tokens and actual_tokens relative to the supplied target value, along with a verdict on whether the shortfall meets or exceeds the caller-defined threshold. No live market data or trade recommendations are included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target": {
   "type": "number",
   "default": 100,
   "maximum": 1000000000000000000,
   "minimum": -1000000000000000000
  },
  "values": {
   "type": "object",
   "default": {
    "actual_tokens": 950,
    "expected_tokens": 1000
   },
   "required": [
    "expected_tokens",
    "actual_tokens"
   ],
   "properties": {
    "actual_tokens": {
     "type": "number",
     "default": 950,
     "maximum": 10000000000000000,
     "minimum": 0
    },
    "expected_tokens": {
     "type": "number",
     "default": 1000,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-buy-receipt-shortfall-target-gap-calculator-8c6933b3/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)
