# Token Buy-to-Sell Activity Ratio — Adjacent Period Changes

> Token Buy-to-Sell Activity Ratio — Adjacent Period Changes 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-15).

Computes the adjacent period-over-period changes in the buy-to-sell activity ratio for a token, given sequences of buy and sell counts.

## Facts

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

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-adjacent-period-changes-e9bd1e37 -d '<json body>'
```

Example prompt: Calculate the adjacent period changes in buy-to-sell ratio for this token using these four observation periods: period 1 had 120 buys and 80 sells, period 2 had 132 buys and 88 sells, period 3 had 100 buys and 90 sells, and period 4 had 145 buys and 70 sells.

## When to prefer this

Choose this endpoint when you have sequential token observation data (buy/sell counts per period) and need a fast, deterministic, period-by-period delta of the buy-to-sell ratio. It is purpose-built for adjacent-period change analysis as opposed to cumulative trend or raw ratio lookup. Use it when you supply your own data and need a bounded, reproducible calculation rather than a live market feed or AI-driven signal.

## Known failure modes

- Fewer than 2 rows provided — minimum 2 observation periods required
- sell_count of 0 in any row — division by zero is rejected (exclusiveMinimum enforced)
- buy_count or sell_count exceeds maximum value (1e16) — validation error
- More than 200 rows submitted — exceeds maxItems limit
- Malformed row objects missing required buy_count or sell_count fields
- Payment not included or insufficient (must be 0.01 USDC via x402 protocol)

## How this service works

Token buy-to-sell activity ratio — Adjacent period changes: Adjacent period changes 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 adjacent period changes report.

## Output

Returns a deterministic report of adjacent period changes in the buy-to-sell activity ratio, computed from the supplied sequence of buy_count and sell_count observation rows. Each result entry reflects how the ratio shifted between one period and the next (e.g., delta values or percentage change), based solely on the caller-supplied data — 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
    },
    {
     "buy_count": 120,
     "sell_count": 80
    },
    {
     "buy_count": 132,
     "sell_count": 88
    }
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-buy-to-sell-activity-ratio-adjacent-period-changes-e9bd1e37/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)
