# Token Buy-to-Sell Activity Ratio — Record Ranking

> Token Buy-to-Sell Activity Ratio — Record Ranking 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-19).

Ranks a batch of token buy/sell count observations by their buy-to-sell activity ratio using a deterministic calculation engine.

## Facts

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

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-record-ranking-c7477638 -d '<json body>'
```

Example prompt: I have a list of token trading observations — rank them by their buy-to-sell activity ratio. Here are 4 records: [{buy_count: 120, sell_count: 80}, {buy_count: 132, sell_count: 88}, {buy_count: 200, sell_count: 50}, {buy_count: 90, sell_count: 110}]. Which one ranks highest?

## When to prefer this

Use this endpoint when you have a batch of 2–200 token trading observations and need a deterministic, ranked comparison of buy-to-sell activity ratios. Prefer it over live market scanners when you already have the raw buy/sell count data and want a lightweight, reproducible ranking report for $0.01 USDC per call. Not suitable for real-time scanning, safety analysis, or trade recommendations.

## Known failure modes

- Fewer than 2 rows supplied — minimum 2 required
- sell_count of zero (exclusiveMinimum enforced) causes division-by-zero rejection
- More than 200 rows submitted — exceeds maxItems limit
- Non-numeric values passed for buy_count or sell_count
- Missing required buy_count or sell_count fields in any row object

## How this service works

Token buy-to-sell activity ratio — Record ranking: Record ranking 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 record ranking report.

## Output

Returns a ranked report of the supplied token observations ordered by their buy-to-sell activity ratio, computed deterministically. Each record's relative ranking position is indicated based on the ratio of buy_count to sell_count across the batch.

## 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-record-ranking-c7477638/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)
