# Token Buy-to-Sell Activity Ratio — Before and After Comparison

> Token Buy-to-Sell Activity Ratio — Before and After Comparison 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).

Compares token buy-to-sell activity ratios across two time periods (before and after), computing the ratio change deterministically from supplied buy/sell counts.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-buy-sell-ratio-compare?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-before-and-after-comparison-5e1ed639
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cmg68BbcQ6Wbve4bNZR2y

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-before-and-after-comparison-5e1ed639 -d '<json body>'
```

Example prompt: Compare the buy-to-sell ratio for this token before and after the announcement — before it was 120 buys and 80 sells, and after it was 132 buys and 88 sells.

## When to prefer this

Choose this endpoint when you have two discrete snapshots of buy and sell counts for a token and need a deterministic, auditable ratio comparison — not a live market scan or recommendation. Ideal for event-driven analysis (pre/post listing, airdrop, campaign) where you already have the raw counts and want a bounded, reproducible report at minimal cost ($0.01 USDC).

## Known failure modes

- sell_count of 0 is rejected (exclusiveMinimum constraint) causing validation error
- buy_count or sell_count values exceeding 10^16 may cause overflow or rejection
- missing required fields (buy_count or sell_count in either before/after object) returns a validation error
- payment failure (insufficient USDC or x402 misconfiguration) blocks the call
- malformed JSON body returns a 400-level error

## How this service works

Token buy-to-sell activity ratio — Before and after comparison: Before and after comparison 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 before and after comparison report.

## Output

A deterministic before-and-after comparison report showing the buy-to-sell ratio for each period (before and after), the magnitude and direction of the ratio change, and a threshold-based verdict if applicable — all derived from the supplied buy and sell counts with no live market scanning.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "object",
   "default": {
    "buy_count": 132,
    "sell_count": 88
   },
   "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
  },
  "before": {
   "type": "object",
   "default": {
    "buy_count": 120,
    "sell_count": 80
   },
   "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-buy-to-sell-activity-ratio-before-and-after-comparison-5e1ed639/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)
