ClearTrace · Schema

ProtocolsResponse

CompanyBlockchainDeFiDecentralized ExchangeAnalyticsOn-Chain DataMEVBenchmarks

Properties

Name Type Description
protocols array Protocols ordered by median_abs_gap_bps ascending (equivalently by Slippage Score, highest first). ⚠ THIS ORDER IS NOT A RANKING OF EXECUTION COST and must not be presented as one. The figure it sorts
total integer Total number of protocols available.
chain string The chain scope of these scores: 'all' is the blended cross-chain rollup; otherwise a single chain (ethereum, base, arbitrum, optimism).
limit integer The maximum number of protocols returned.
offset integer The offset used for pagination.
View JSON Schema on GitHub

JSON Schema

cleartracedata-com-protocols-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cleartracedata-com/json-schema/cleartracedata-com-protocols-response-schema.json",
  "title": "ProtocolsResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cleartracedata-com-openapi.yml#/components/schemas/ProtocolsResponse",
  "properties": {
    "protocols": {
      "items": {
        "$ref": "#/$defs/ProtocolScore"
      },
      "type": "array",
      "title": "Protocols",
      "description": "Protocols ordered by median_abs_gap_bps ascending (equivalently by Slippage Score, highest first). ⚠ THIS ORDER IS NOT A RANKING OF EXECUTION COST and must not be presented as one. The figure it sorts on is a median ABSOLUTE gap, so it includes the minute oracle's own dispersion and any integrator fee charged inside the fill: a venue whose true cost is below that dispersion sorts to the TOP on a number that is not a cost it charged. Read signed_median_bps and dispersion_ratio for each venue before ordering them by quality, and see exec-slippage-includes-integrator-fees-and-drops-sign-2026-09-09 in app/metric_findings.json."
    },
    "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total number of protocols available."
    },
    "chain": {
      "type": "string",
      "title": "Chain",
      "description": "The chain scope of these scores: 'all' is the blended cross-chain rollup; otherwise a single chain (ethereum, base, arbitrum, optimism).",
      "default": "all"
    },
    "limit": {
      "type": "integer",
      "title": "Limit",
      "description": "The maximum number of protocols returned."
    },
    "offset": {
      "type": "integer",
      "title": "Offset",
      "description": "The offset used for pagination."
    }
  },
  "type": "object",
  "required": [
    "protocols",
    "total",
    "limit",
    "offset"
  ],
  "$defs": {
    "ProtocolScore": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name",
          "description": "The name of the protocol or aggregator."
        },
        "category": {
          "type": "string",
          "title": "Category",
          "description": "The category of the protocol (e.g., Aggregator, DEX, Bridge)."
        },
        "median_abs_gap_bps": {
          "type": "number",
          "title": "Median Abs Gap Bps",
          "description": "Median ABSOLUTE gap between the minute-oracle USD value of the token received and of the token given, in basis points (lower is better). The minute oracle is an OFF-CHAIN reference price, Dune prices.usd, documented by Dune as a view of its Coinpaprika feed of exchange-aggregate market data at 5-minute intervals, interpolated to the minute. It is NOT a VWAP, whatever older copy said. This is the correctly named field for the figure `avg_slippage_bps` has always carried: the two are IDENTICAL IN VALUE and this one describes the quantity. It is a MEDIAN, not a mean, and it is a median of the ABSOLUTE gap, so it is not a signed execution cost -- read `signed_median_bps` for the venue's central tendency and `dispersion_ratio` for how much of this figure is the oracle's own dispersion. Read the three limits before ranking venues on it. (1) It includes explicit integrator FEES: a fee charged inside the fill is indistinguishable from execution cost here and is published as execution cost. (2) It discards DIRECTION: the gap is absolute, so a venue whose takers systematically receive MORE than oracle value reads the same as one whose takers lose. (3) It has a NOISE FLOOR: for a gap distribution centred near zero, the median of the absolute value equals the 75th percentile of the signed gap, so a venue whose true cost is below the minute oracle's own dispersion publishes that dispersion instead of a cost -- low single-digit values rank venues by how quietly their token pairs are priced, not by execution. Registered as exec-slippage-includes-integrator-fees-and-drops-sign-2026-09-09 in app/metric_findings.json."
        },
        "avg_slippage_bps": {
          "type": "number",
          "title": "Avg Slippage Bps",
          "description": "DEPRECATED, use `median_abs_gap_bps` instead. Identical value, kept for backward compatibility, and served until 2027-03-31. THIS IS NOT AN AVERAGE: the name says mean and the quantity is APPROX_PERCENTILE(ABS(gap), 0.5), a MEDIAN of an ABSOLUTE gap. Two independent readers took the name at face value on 2026-09-25 -- one quoted a spread across it as an execution cost in outreach copy, the other concluded from the same endpoint that it was a mean -- so the name is not a cosmetic problem, it is the field's primary failure mode. `median_abs_gap_bps` carries the full definition, including that the baseline is Dune prices.usd and is NOT a VWAP (finding exec-slippage-baseline-is-not-a-vwap-2026-09-25). Read the three limits before ranking venues on it. (1) It includes explicit integrator FEES: a fee charged inside the fill is indistinguishable from execution cost here and is published as execution cost. (2) It discards DIRECTION: the gap is absolute, so a venue whose takers systematically receive MORE than oracle value reads the same as one whose takers lose. (3) It has a NOISE FLOOR: for a gap distribution centred near zero, the median of the absolute value equals the 75th percentile of the signed gap, so a venue whose true cost is below the minute oracle's own dispersion publishes that dispersion instead of a cost -- low single-digit values rank venues by how quietly their token pairs are priced, not by execution. Registered as exec-slippage-includes-integrator-fees-and-drops-sign-2026-09-09 in app/metric_findings.json.",
          "deprecated": true
        },
        "slippage_score": {
          "type": "number",
          "title": "Slippage Score",
          "description": "Slippage Score from 0.0 to 100.0, derived as 100 - median slippage (bps), clipped to [0,100] — higher means lower slippage. Inherits every limit documented on median_abs_gap_bps, including that it scores integrator fees as execution cost. SATURATES: any venue above 100 bps scores 0 and any below 0 bps scores 100, so within those groups the score cannot separate venues — read median_abs_gap_bps for the true magnitude and ordering. This is a slippage-only metric; MEV exposure and revert rates are reported separately."
        },
        "total_trades_analyzed": {
          "type": "integer",
          "title": "Total Trades Analyzed",
          "description": "The number of trades analyzed to compute this score."
        },
        "signed_median_bps": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed Median Bps",
          "description": "Estimated SIGNED median gap in basis points, positive when takers pay and negative when they receive more than oracle value. This is the venue's central tendency; median_abs_gap_bps above is the median of the ABSOLUTE gap and is a different quantity. A measured percentile since execution_slippage.sql v3.0 (2026-09-23); read signed_median_measured to tell. On rows written before that deploy it falls back to interpolating (p25+p75)/2 from the quartiles, which can be off by several bps and can invert the sign. null when unmeasured, never 0.0."
        },
        "dispersion_ratio": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dispersion Ratio",
          "description": "How many times larger the published median_abs_gap_bps is than signed_median_bps. 1.0 means the published figure IS the cost. A large value means it is mostly the minute oracle's own dispersion, converted into apparent cost by the absolute value: for a gap distribution centred on zero, median(|x|) equals p75(x) exactly. On the 2026-09-22 data dodo/ethereum reads about 8.6 here while uniswap's aggregator figure reads about 1.08. NO THRESHOLD IS APPLIED AND NONE IS IMPLIED: the ratio is reported so the reader can judge, and null means the signed median is too close to zero to divide by, which is the most dispersion-dominated case of all rather than a clean one."
        },
        "slippage_direction": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Slippage Direction",
          "description": "'cost' when takers pay on balance, 'gain' when they receive more than oracle value on balance, null when unmeasured. A venue whose takers gain on balance, published as if it charged a cost, is sign-wrong; the venues where that dominates (swaap, 1inch-LOP, tokenlon, dodo on arbitrum) are already withdrawn from this endpoint."
        },
        "signed_median_measured": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed Median Measured",
          "description": "TRUE when signed_median_bps is a measured percentile (execution_slippage.sql v3.0, deployed 2026-09-23). FALSE means it was interpolated from the signed quartiles as (p25+p75)/2, which assumes a symmetry these distributions do not have: measured against the true median over 103 live cells the interpolation was off by a median of 2.44 bps, and it can invert the SIGN, so slippage_direction and dispersion_ratio derived from it may be wrong. Treat a false here as an estimate, not a measurement."
        },
        "pct_positive": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Pct Positive",
          "description": "Share of scored fills where the taker paid (the gap was positive). Near 50 means the signed distribution straddles zero, so the published absolute median is measuring spread rather than a systematic cost."
        }
      },
      "type": "object",
      "required": [
        "name",
        "category",
        "median_abs_gap_bps",
        "avg_slippage_bps",
        "slippage_score",
        "total_trades_analyzed"
      ],
      "title": "ProtocolScore"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cleartracedata-com-protocols-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.