# Token Buy-to-Sell Activity Ratio — Target Gap Calculation

> Token Buy-to-Sell Activity Ratio — Target Gap 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-16).

Calculates the gap between a token's buy-to-sell activity ratio and a specified target value, returning a deterministic threshold verdict report.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-buy-sell-ratio-target-gap?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-buy-to-sell-activity-ratio-target-gap-calculation-e068cfda
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8wiimVzGYhDYJaXPuEX_q

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-to-sell-activity-ratio-target-gap-calculation-e068cfda -d '<json body>'
```

Example prompt: Given that a token had 150 buys and 90 sells, calculate the gap between its buy-to-sell ratio and my target of 2.5 — I want to know how far off it is from that threshold.

## When to prefer this

Choose this endpoint when you have explicit buy and sell count observations for a token and need a fast, deterministic calculation of how far the resulting ratio deviates from a specific numeric target. Ideal for algorithmic trading pipelines, signal validation, or dashboards that need a reproducible gap metric without live data feeds. Not suitable for fetching real-time on-chain data or generating trade recommendations.

## Known failure modes

- sell_count of zero or below triggers exclusiveMinimum validation error
- buy_count or sell_count exceeding 10,000,000,000,000,000 causes schema validation failure
- target value outside the allowed range causes a validation error
- missing required buy_count or sell_count fields returns a 400-level error
- malformed JSON body results in a parse error response

## How this service works

Token buy-to-sell activity ratio — Target gap calculation: Target gap calculation for Token buy-to-sell activity ratio. 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 showing the computed buy-to-sell ratio from the supplied buy_count and sell_count, the numerical gap relative to the specified target, and a threshold-based verdict indicating whether the ratio meets, exceeds, or falls short of the target. No live market data is included; results are based solely on provided inputs.

## 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-buy-to-sell-activity-ratio-target-gap-calculation-e068cfda/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)
