# Token Net Buy-Count Balance — Target Gap Calculator

> Token Net Buy-Count Balance — 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 a token's net buy-count balance and a user-specified target value, returning a deterministic numeric report.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-net-buy-share-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-net-buy-count-balance-target-gap-calculator-56b59542
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vLUrHxrbT4OZj0dw9s_LC

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-net-buy-count-balance-target-gap-calculator-56b59542 -d '<json body>'
```

Example prompt: Given that this token has had 120 buys and 80 sells, calculate the net buy-count balance and tell me the gap to a target of 100.

## When to prefer this

Use this endpoint when you need a cheap ($0.01 USDC), fast, deterministic computation of how far a token's net buy-count balance is from a specific numeric target, using caller-supplied buy/sell count observations. Prefer it over on-chain analytics APIs when you already have the count data and only need the gap arithmetic with a threshold verdict, not a live market scan or risk assessment.

## Known failure modes

- sell_count of zero not allowed (exclusiveMinimum:0) — returns validation error
- buy_count or sell_count exceeding 10^16 — out-of-range rejection
- target outside ±10^18 range — validation failure
- malformed JSON body — 400 Bad Request
- payment not provided or insufficient — 402 Payment Required

## How this service works

Token net buy-count balance — Target gap calculation: Target gap calculation for Token net buy-count balance. 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 report showing the computed net buy-count balance (buy_count minus sell_count) and the arithmetic gap between that balance and the caller-specified target, indicating surplus or deficit relative to the threshold. No live data scanning, safety proof, or trade recommendation is included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target": {
   "type": "number",
   "default": 100,
   "maximum": 1000000000000000000,
   "minimum": -1000000000000000000
  },
  "values": {
   "type": "object",
   "default": {
    "buy_count": 120,
    "sell_count": 80
   },
   "required": [
    "buy_count",
    "sell_count"
   ],
   "properties": {
    "buy_count": {
     "type": "number",
     "default": 120,
     "maximum": 10000000000000000,
     "minimum": 0
    },
    "sell_count": {
     "type": "number",
     "default": 80,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-net-buy-count-balance-target-gap-calculator-56b59542/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)
