# Token Buy Volume Fraction — Batch Calculation

> Token Buy Volume Fraction — 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-18).

Calculates the buy volume fraction (buy volume as a share of total trading volume) for a batch of up to 200 token observations supplied by the caller.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-buy-volume-share-batch?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-buy-volume-fraction-batch-calculation-238f68ae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3_sAf_1hc6w7UeqPlv-xv

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-volume-fraction-batch-calculation-238f68ae -d '<json body>'
```

Example prompt: Can you calculate the buy volume fraction for these token observations in batch: [{buy_volume: 60000, sell_volume: 40000}, {buy_volume: 120000, sell_volume: 80000}, {buy_volume: 45000, sell_volume: 95000}]? I need to know what share of total volume is buying for each row.

## When to prefer this

Choose this endpoint when you need to compute buy volume fraction for multiple token observations in a single call rather than one at a time. It is ideal for batch analytical pipelines, backtesting workflows, or dashboards that process many rows of historical or snapshot trading data. It is a pure deterministic calculation on caller-supplied data — not a live market data feed — so prefer it when you already have buy/sell volume figures and need the fractional metric computed efficiently at scale.

## Known failure modes

- Rows array is empty or missing — minItems:1 violated, request rejected
- buy_volume or sell_volume is zero or negative — exclusiveMinimum:0 constraint violated
- More than 200 rows submitted — maxItems:200 limit exceeded
- buy_volume or sell_volume exceeds 1e16 — maximum constraint violated
- Missing required fields buy_volume or sell_volume in any row
- Payment not provided or insufficient — x402 payment of 0.01 USDC required per call

## How this service works

Token buy volume fraction — Batch calculation: Batch calculation for Token buy volume fraction. 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 batch calculation report containing the buy volume fraction (buy_volume divided by total volume) for each submitted row of token observations. Results are deterministic given the inputs and may include a threshold-based verdict if a caller-defined threshold is specified. No live market data, safety assessments, or trade recommendations are included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "buy_volume",
     "sell_volume"
    ],
    "properties": {
     "buy_volume": {
      "type": "number",
      "default": 60000,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     },
     "sell_volume": {
      "type": "number",
      "default": 40000,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "buy_volume": 60000,
     "sell_volume": 40000
    },
    {
     "buy_volume": 66000,
     "sell_volume": 44000
    }
   ],
   "maxItems": 200,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-buy-volume-fraction-batch-calculation-238f68ae/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)
