# Token Buy-to-Sell Activity Ratio — Batch Calculation

> Token Buy-to-Sell Activity Ratio — Batch 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-17).

Calculates the buy-to-sell activity ratio for up to 200 token observation rows in a single batch, returning a deterministic ratio or threshold-based verdict per row.

## Facts

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

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-batch-calculation-1bee68b0 -d '<json body>'
```

Example prompt: Calculate the buy-to-sell activity ratio for these token observations in batch: row 1 has 120 buys and 80 sells, row 2 has 200 buys and 150 sells, row 3 has 50 buys and 90 sells — give me the ratio report for all three.

## When to prefer this

Choose this endpoint when you need to compute buy-to-sell activity ratios for multiple token observations in a single call (up to 200 rows), especially when you want a deterministic, reproducible result rather than a live market scan. It is optimized for batch workloads where you have pre-collected buy and sell count data and need ratio or verdict outputs without real-time data dependencies.

## Known failure modes

- Missing required sell_count field returns validation error
- sell_count of zero is rejected (exclusiveMinimum: 0)
- More than 200 rows submitted exceeds maxItems limit and is rejected
- Values exceeding the maximum numeric bound may be rejected
- Payment failure (insufficient USDC) results in 402 response

## How this service works

Token buy-to-sell activity ratio — Batch calculation: Batch 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 batch calculation report.

## Output

A bounded batch calculation report containing the buy-to-sell activity ratio (and optionally a threshold-based verdict) for each supplied row of buy_count and sell_count values. Up to 200 rows processed per call. Results are deterministic given the same inputs — not a live market scan or trade recommendation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "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
   },
   "default": [
    {
     "buy_count": 120,
     "sell_count": 80
    },
    {
     "buy_count": 132,
     "sell_count": 88
    }
   ],
   "maxItems": 200,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-buy-to-sell-activity-ratio-batch-calculation-1bee68b0/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)
