# Token Supplied Rule-Flag Fraction — Target Gap Calculation

> Token Supplied Rule-Flag Fraction — Target Gap Calculation 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-12).

Calculates the gap between the current flagged-rule fraction of supplied token observations and a specified target value, returning a deterministic report or threshold verdict.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-flag-share-target-gap?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-supplied-rule-flag-fraction-target-gap-calculation-71c7194c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-XZ4-xDEVZ5IclRc1DpQR

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-supplied-rule-flag-fraction-target-gap-calculation-71c7194c -d '<json body>'
```

Example prompt: Calculate the target gap for my token's rule-flag fraction — I have 3 flagged rules out of 15 evaluated, and my target is 50.

## When to prefer this

Choose this endpoint when you need a fast, deterministic, single-call computation of the gap between a token's current rule-flag fraction and a specific numeric target. It is purpose-built for token-observation rule flagging analytics within a shared multi-profile engine, and is preferable to building custom fraction-gap logic when a cheap ($0.01 USDC), reproducible, bounded report is sufficient. Not suitable for live market scanning, predictive modeling, or safety auditing.

## Known failure modes

- evaluated_rules is zero or missing (exclusiveMinimum enforced — will fail validation)
- flagged_rules or evaluated_rules exceeds the maximum bound of 10,000,000,000,000,000
- target value outside the allowed range (-1e18 to 1e18)
- malformed JSON body or missing required nested properties
- Payment not processed — x402 payment required before response is returned

## How this service works

Token supplied rule-flag fraction — Target gap calculation: Target gap calculation for Token supplied rule-flag fraction. 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 target gap calculation report.

## Output

A bounded target gap calculation report showing the current flagged-rule fraction derived from the supplied flagged_rules and evaluated_rules counts, the specified target value, and the computed gap between them. The result is a deterministic calculation or a caller-threshold verdict — not a live market scan, safety proof, or trade recommendation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target": {
   "type": "number",
   "default": 100,
   "maximum": 1000000000000000000,
   "minimum": -1000000000000000000
  },
  "values": {
   "type": "object",
   "default": {
    "flagged_rules": 2,
    "evaluated_rules": 10
   },
   "required": [
    "flagged_rules",
    "evaluated_rules"
   ],
   "properties": {
    "flagged_rules": {
     "type": "number",
     "default": 2,
     "maximum": 10000000000000000,
     "minimum": 0
    },
    "evaluated_rules": {
     "type": "number",
     "default": 10,
     "maximum": 10000000000000000,
     "minimum": 0,
     "exclusiveMinimum": 0
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-supplied-rule-flag-fraction-target-gap-calculation-71c7194c/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)
