# Token Buy-to-Sell Activity Ratio Distribution Histogram

> Token Buy-to-Sell Activity Ratio Distribution Histogram 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-20).

Computes a distribution histogram of buy-to-sell activity ratios across a set of token observations using configurable bin counts.

## Facts

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

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-distribution-histogram-8bd2d717 -d '<json body>'
```

Example prompt: Can you generate a buy-to-sell ratio distribution histogram for these 4 token observations — buy counts of 120, 132, 120, 132 and sell counts of 80, 88, 80, 88 — using 5 bins?

## When to prefer this

Choose this endpoint when you have a batch of token buy and sell count observations and want a deterministic, bucketed frequency distribution of their ratios — especially when you need a fast, low-cost ($0.01 USDC) histogram computation without requiring a live market scan or trade recommendation. Prefer this over raw ratio calculations when you need to understand the shape and spread of trading activity across multiple tokens at once.

## Known failure modes

- Fewer than 2 rows submitted — minimum input requirement not met
- sell_count of zero submitted — violates exclusiveMinimum constraint causing validation error
- bins count exceeds 30 or is below 1 — out-of-range bin parameter rejected
- More than 200 rows submitted — maxItems limit exceeded
- Malformed row objects missing buy_count or sell_count fields — schema validation failure
- Payment not fulfilled — x402 payment required error returned before processing

## How this service works

Token buy-to-sell activity ratio — Distribution histogram: Distribution histogram 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 distribution histogram report.

## Output

Returns a bounded distribution histogram report showing how buy-to-sell activity ratios are distributed across the supplied token observations, organized into the requested number of bins. Each bin reflects the frequency of observations falling within a given ratio range. The result is a deterministic calculation based solely on the submitted data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bins": {
   "type": "integer",
   "default": 5,
   "maximum": 30,
   "minimum": 1
  },
  "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-distribution-histogram-8bd2d717/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)
