# Token Buy-to-Sell Activity Ratio — Rolling Mean Report

> Token Buy-to-Sell Activity Ratio — Rolling Mean Report 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).

Computes a rolling mean of the buy-to-sell activity ratio across a supplied sequence of token trade observations using a configurable window size.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-buy-sell-ratio-rolling?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-rolling-mean-report-5ca3ec33
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kqkmPT8706UmUFKAliLv8

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-rolling-mean-report-5ca3ec33 -d '<json body>'
```

Example prompt: Can you compute a rolling mean of the buy-to-sell ratio for these token observations — buy counts [120, 132, 110, 145] and sell counts [80, 88, 75, 95] — using a window size of 2?

## When to prefer this

Use this endpoint when you have a discrete series of token buy and sell count observations and need a smoothed, rolling mean of the buy-to-sell ratio — particularly useful for trend analysis, momentum signals, or reducing noise in short time-series data. Prefer this over raw ratio lookup when you need windowed averaging rather than instantaneous ratios, and when your data is pre-collected (not a live feed).

## Known failure modes

- Fewer than 2 rows supplied — minimum row count not met
- sell_count of 0 in any row — division by zero in ratio calculation
- Window size exceeds number of supplied rows — insufficient data for rolling calculation
- buy_count or sell_count values outside allowed range (0 to 10^16)
- More than 200 rows supplied — exceeds maxItems limit
- Payment failure — 0.01 USDC not available or x402 protocol error

## How this service works

Token buy-to-sell activity ratio — Rolling mean report: Rolling mean report 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 rolling mean report report.

## Output

Returns a rolling mean series of the buy-to-sell activity ratio (buy_count / sell_count) computed across the supplied observation rows using the specified window size. Each value in the output represents the mean ratio over the preceding N observations defined by the window parameter.

## 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
  },
  "window": {
   "type": "integer",
   "default": 2,
   "maximum": 200,
   "minimum": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-buy-to-sell-activity-ratio-rolling-mean-report-5ca3ec33/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)
