{
  "openapi": "3.0.0",
  "info": {
    "title": "Sharpe API",
    "version": "1.0.0",
    "description": "Institutional-grade crypto market data API. Access funding rates, futures, arbitrage opportunities, narratives, ecosystems, and more.\n\nAuthentication is supported via two production-safe methods:\n1. **Bearer token** in the Authorization header: `Authorization: Bearer sk_live_...`\n2. **X-API-Key header**: `X-API-Key: sk_live_...`\n\nAPI keys in query parameters are rejected by default because URLs are commonly stored in logs, browser history, analytics tools, and referrer headers.\n\nThese `/v1` endpoints send no CORS headers and must be called from a server: calling them from a browser would expose your API key in page JavaScript. The free, keyless `/api/*` endpoints do allow cross-origin browser requests (https://www.sharpe.ai/docs/free-api).",
    "contact": {
      "name": "Sharpe API Support",
      "url": "https://sharpe.ai",
      "email": "team@sharpe.ai"
    }
  },
  "servers": [
    {
      "url": "https://www.sharpe.ai/api",
      "description": "Production"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    },
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "System",
      "description": "Health checks and service status"
    },
    {
      "name": "Account",
      "description": "API key usage and quota information"
    },
    {
      "name": "Derivatives",
      "description": "Funding rates and futures data"
    },
    {
      "name": "Market Data",
      "description": "Heatmaps, correlations, tracker, price predictions, news, gem finder, and market cap search"
    },
    {
      "name": "Arbitrage",
      "description": "Spot-perp, cross-exchange, dated futures basis, calendar spread, perp-dated carry, and transfer arbitrage scanners"
    },
    {
      "name": "Categories",
      "description": "Narratives, ecosystems, and memecoins data"
    },
    {
      "name": "New Listings",
      "description": "Spot listings, Perp listings, delistings, suspensions, scheduled trading starts, exchange pages, and narrative flow across CEXs and Perp DEXs."
    },
    {
      "name": "Screener",
      "description": "Rug Check security, holders, resolve and trending endpoints."
    },
    {
      "name": "Signals",
      "description": "Composite signal scores derived from cross-exchange derivatives data: insider selling pressure and pump-and-dump detection."
    },
    {
      "name": "Reports",
      "description": "Markdown reports rendered on the server from the endpoints above: the market briefing, one coin's analysis, and the funding-arbitrage opportunities."
    }
  ],
  "paths": {
    "/v1/analytics/query": {
      "post": {
        "operationId": "queryAnalyticsDataset",
        "tags": [
          "Market Data"
        ],
        "summary": "Governed analytics query",
        "description": "Runs a bounded query against a cataloged Sharpe Data Ocean dataset. Accepts only registered dataset IDs, whitelisted fields, filter operators, sort fields, and opaque cursors.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dataset": {
                    "type": "string",
                    "enum": [
                      "funding_rates_current",
                      "funding_accumulated",
                      "stablecoins_metrics"
                    ]
                  },
                  "select": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "filters": {
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "in",
                            "gte",
                            "lte"
                          ]
                        },
                        "value": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string"
                        },
                        "direction": {
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "direction"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "default": 100
                  },
                  "cursor": {
                    "nullable": true,
                    "type": "string"
                  }
                },
                "required": [
                  "dataset"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Analytics query returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsQueryResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": {
          "by": "dataset",
          "map": {
            "funding_rates_current": "funding_rates_current",
            "funding_accumulated": "funding_accumulated",
            "stablecoins_metrics": "stablecoins"
          }
        },
        "x-freshness-sla-seconds": {
          "by": "dataset",
          "map": {
            "funding_rates_current": 600,
            "funding_accumulated": 1800,
            "stablecoins_metrics": 7200
          }
        }
      }
    },
    "/v1/arbitrage/borrow-rates": {
      "get": {
        "operationId": "getArbitrageBorrowRates",
        "tags": [
          "Arbitrage"
        ],
        "summary": "Margin borrow rates",
        "description": "Returns the spot-margin borrow rate of every coin the venues price without an account: Binance (VIP 0 cross-margin daily rate), OKX (basic daily rate), Bybit (No VIP hourly rate) and Gate.io (unified-account hourly rate, the 100 enabled currencies with the most USDT spot volume). Rates are fractions: hourlyRate per hour, annualRate = hourlyRate × 8,760 (simple). One row per coin with every venue's quote, cheapest first; a venue that does not price a coin is absent, never 0. `venues` reports each venue's status (ok, stale, failed, unsupported) with its fetch time. KuCoin, Bitget, MEXC, BingX and HTX publish no keyless borrow rate.",
        "parameters": [
          {
            "name": "coin",
            "in": "query",
            "description": "Borrowed asset, case-insensitive (BTC, USDT, PEPE).",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "exchanges",
            "in": "query",
            "description": "Comma-separated venues, case-insensitive: Binance, OKX, Bybit, Gate.io (KuCoin, Bitget, MEXC, BingX and HTX are accepted and reported unsupported). Default: all.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Margin borrow rates returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BorrowRatesResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Data-Source": {
                "$ref": "#/components/headers/X-Data-Source"
              },
              "X-Data-Stale": {
                "$ref": "#/components/headers/X-Data-Stale"
              },
              "X-Data-As-Of": {
                "$ref": "#/components/headers/X-Data-As-Of"
              },
              "X-Freshness-Sla-Seconds": {
                "$ref": "#/components/headers/X-Freshness-Sla-Seconds"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "margin_borrow_rates",
        "x-freshness-sla-seconds": 600
      }
    },
    "/v1/arbitrage/cex-spot-transfer": {
      "get": {
        "operationId": "getArbitrageCexSpotTransfer",
        "tags": [
          "Arbitrage"
        ],
        "summary": "CEX spot-transfer arbitrage scanner",
        "description": "Returns live CEX spot-transfer arbitrage routes after exact network matching (ambiguous network names are refused), token-contract matching, withdrawal/deposit status and minimums, withdrawal fees, per-venue taker fees, executable depth and slippage. Routes netting above zero come first; up to 50 near-miss routes that do not clear fees follow as indicative (`below_fees`). `meta.transferScan` counts the coins, venues and routes the scan evaluated. Same-ticker contract mismatches fail closed.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ArbitrageCoinParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageExchangesParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMinAprParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMinDepthUsdParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageNotionalParam"
          },
          {
            "$ref": "#/components/parameters/LimitParam"
          },
          {
            "$ref": "#/components/parameters/CursorParam"
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "CEX spot-transfer scanner rows (executable and indicative) returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CexSpotTransferResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "arbitrage_tickers",
        "x-freshness-sla-seconds": 60
      }
    },
    "/v1/arbitrage/cross-exchange": {
      "get": {
        "operationId": "getCrossExchangeArbitrage",
        "tags": [
          "Arbitrage"
        ],
        "summary": "Cross-exchange arbitrage",
        "description": "Returns cross-exchange funding differentials across every funding venue and asset class — crypto plus RWA perps (equity, commodity, FX, index). Legs pair within one instrument-master asset (BONK, 1000BONK and KBONK are one; prices compared per asset unit), never across asset classes. One row per coin: the executable pair with the highest net APR, else the best pair whose only gap is unreported depth (`no_depth`), else the largest gross differential. netFundingRate is the per-period differential at intervalHours (the faster leg's cadence). Spread uses real order books where both legs expose one (spreadSource \"book\") and reference prices otherwise (\"reference\"). A row is executable when its spread is book-priced, its legs are within 5% of each other, both quotes are fresh and top-of-book depth reported by BOTH venues covers $10,000 (unknown depth is indicative `no_depth`, never executable); executable rows rank first by netApr — gross less both venues' taker fees and the adverse entry spread over a 30-day hold, present only on book-priced rows — then `no_depth` rows, then the other indicative rows, each by netApr where present, else gross annualized differential (apr). Unknown spread, open interest or volume are null, never zero.",
        "parameters": [
          {
            "name": "exchanges",
            "in": "query",
            "description": "Comma-separated list of venues to compare. Omit for every funding venue in the funding tracker's registry that the instrument master does not mark not live (`X-Data-Venues` lists them).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "assetClass",
            "in": "query",
            "description": "Underlying filter: \"all\" (default), \"crypto\", or \"rwa\" (equity, commodity, FX and index perps).",
            "schema": {
              "default": "all",
              "type": "string",
              "enum": [
                "all",
                "crypto",
                "rwa"
              ]
            }
          },
          {
            "name": "minOiUsd",
            "in": "query",
            "description": "Minimum open interest in USD on the smaller leg. Default 0 (no floor). Legs with unknown OI fail a positive floor, and so does a leg on a venue left out of the API's open-interest totals (MEXC).",
            "schema": {
              "default": 0,
              "type": "number",
              "minimum": 0
            }
          },
          {
            "name": "minVolUsd",
            "in": "query",
            "description": "Minimum 24h perp volume in USD on the smaller leg. Default 0 (no floor). Legs with unknown volume fail a positive floor.",
            "schema": {
              "default": 0,
              "type": "number",
              "minimum": 0
            }
          },
          {
            "name": "sector",
            "in": "query",
            "description": "Narrative filter: only crypto coins in that narrative's CoinGecko category (the constituents /api/narratives/data lists). Omit or \"all\" for every coin. A coin the category does not list, and every RWA perp, is left out when a sector is set.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "memes",
                "ai-agents",
                "layer-1",
                "defi"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Return at most this many rows, the first in board order (executable rows first by netApr, then `no_depth` rows, then the rest, each by netApr or apr). Default: every row. On v1 a limited answer carries `pagination`.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque cursor from the previous page's `pagination.cursor` (100 rows a page when `limit` is omitted).",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Arbitrage data returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CrossExchangeArbitrageResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Data-Missing": {
                "$ref": "#/components/headers/X-Data-Missing"
              },
              "X-Data-Venues": {
                "$ref": "#/components/headers/X-Data-Venues"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "arbitrage_boards",
        "x-freshness-sla-seconds": 600
      }
    },
    "/v1/arbitrage/dated-futures-basis": {
      "get": {
        "operationId": "getArbitrageDatedFuturesBasis",
        "tags": [
          "Arbitrage"
        ],
        "summary": "Dated futures basis scanner",
        "description": "Returns cash-and-carry rows priced at spot ask and futures bid across Binance, OKX and Bybit (Deribit has no spot leg, so it appears only in calendar spreads). Rows at least 3 days from expiry rank first; within them executable rows at the requested notional, then rows executable on a live read (`snapshot_quote`), then the rest, each by fee-adjusted net APR. Reference-only rows are omitted. Days to expiry are recomputed from the expiry on every request. The per-coin aggregate covers only contracts at least three days from expiry.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ArbitrageCoinParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageExchangesParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMinAprParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMinOiUsdParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMinVolumeUsdParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMinDepthUsdParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMarginTypeParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageNotionalParam"
          },
          {
            "$ref": "#/components/parameters/LimitParam"
          },
          {
            "$ref": "#/components/parameters/CursorParam"
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Scanner rows returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatedFuturesBasisResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": [
          "arbitrage_dated_quotes",
          "futures_term_structure"
        ],
        "x-freshness-sla-seconds": 600
      }
    },
    "/v1/arbitrage/fixed-floating-funding": {
      "get": {
        "operationId": "getArbitrageFixedFloatingFunding",
        "tags": [
          "Arbitrage"
        ],
        "summary": "Fixed vs floating funding (Pendle Boros)",
        "description": "Returns every live Pendle Boros funding-rate market (one per venue perp and maturity: Binance, OKX, Bybit, Gate, KuCoin, Hyperliquid incl. the xyz builder dex, Lighter) with its implied (fixed) APR, the floating APR Boros reports, and Sharpe's own realised 7-day and 30-day funding for the same venue contract, annualised (acc × 365 / days). spread7dApr and spread30dApr are implied − realised: positive means locking the fixed rate beats what the floating leg has paid (the lock-fixed-carry signal); the spreads are gross of Boros and venue fees. A market whose venue contract is not in the funding store keeps its Boros figures and serves realised null with a reason, never 0. Ranked with markets under 3 days to maturity last, then by the 30-day executable edge net of Boros's taker and settlement fees (netEdge30dApr; edge30dApr is bestBidApr − realised30dApr to receive fixed, realised30dApr − bestAskApr to pay fixed, the larger), then the 7-day one: the spread is a valuation at the mark, the edge is what a fill earns.",
        "parameters": [
          {
            "name": "coin",
            "in": "query",
            "description": "Underlying asset, case-insensitive (BTC, ETH, HYPE, BRENTOIL).",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "venue",
            "in": "query",
            "description": "Filter to one venue, case-insensitive: Boros's name (Binance, OKX, Hyperliquid, Gate, Kucoin, Lighter, Bybit) or our funding store's (Gate.io, KuCoin, tradeXYZ).",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Boros fixed vs floating funding returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FixedFloatingFundingResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Data-Source": {
                "$ref": "#/components/headers/X-Data-Source"
              },
              "X-Data-Stale": {
                "$ref": "#/components/headers/X-Data-Stale"
              },
              "X-Data-As-Of": {
                "$ref": "#/components/headers/X-Data-As-Of"
              },
              "X-Freshness-Sla-Seconds": {
                "$ref": "#/components/headers/X-Freshness-Sla-Seconds"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": [
          "boros_markets",
          "funding_accumulated"
        ],
        "x-freshness-sla-seconds": 300
      }
    },
    "/v1/arbitrage/funding-spread-history": {
      "get": {
        "operationId": "getArbitrageFundingSpreadHistory",
        "tags": [
          "Arbitrage"
        ],
        "summary": "Funding spread history and carry backtest",
        "description": "Returns a pair's historical funding spread and a carry backtest from stored settlements: a spot-perp carry on one venue (spot pays no funding) or a cross-exchange carry (long one perp, short another). The legs are aligned by settlement time (a 1h leg against an 8h leg reads the 8h settlement for each hour it covers), intervals come from the settlements themselves, never an assumed 8h. Backtests over 1-90 days sum the settlements in the window, charge each venue's entry and exit taker fees once, and report net return, annualized net APR, days with negative carry, max drawdown of cumulative carry and coverage. A short-spot leg (spot-perp long) is charged the venue's current borrow APR pro rata where the venue publishes one (borrowApr, borrowCostIncluded).",
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "description": "`spot-perp`: one venue's spot and perp (needs `venue`). `cross-exchange`: a long perp and a short perp (needs `longVenue` and `shortVenue`).",
            "schema": {
              "default": "spot-perp",
              "type": "string",
              "enum": [
                "spot-perp",
                "cross-exchange"
              ]
            }
          },
          {
            "name": "coin",
            "in": "query",
            "description": "Base coin, for example BTC.",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32
            }
          },
          {
            "name": "venue",
            "in": "query",
            "description": "Spot-perp venue: Binance, OKX, Bybit, Bitget, Gate.io, KuCoin, MEXC, BingX or HTX.",
            "schema": {
              "type": "string",
              "maxLength": 32
            }
          },
          {
            "name": "contract",
            "in": "query",
            "description": "Spot-perp: the venue's perp contract symbol, for example BTCUSDT. Optional: without it the venue's contract for the coin with the largest current open interest is used.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "direction",
            "in": "query",
            "description": "Spot-perp: `short` buys spot and shorts the perp (collects positive funding); `long` sells spot and longs the perp (the venue's current borrow APR is charged where it publishes one: `borrowCostIncluded`).",
            "schema": {
              "default": "short",
              "type": "string",
              "enum": [
                "short",
                "long"
              ]
            }
          },
          {
            "name": "longVenue",
            "in": "query",
            "description": "Cross-exchange: the venue of the long perp.",
            "schema": {
              "type": "string",
              "maxLength": 32
            }
          },
          {
            "name": "longContract",
            "in": "query",
            "description": "Cross-exchange: the long perp's contract symbol. Optional, resolved as `contract` is.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "shortVenue",
            "in": "query",
            "description": "Cross-exchange: the venue of the short perp.",
            "schema": {
              "type": "string",
              "maxLength": 32
            }
          },
          {
            "name": "shortContract",
            "in": "query",
            "description": "Cross-exchange: the short perp's contract symbol. Optional, resolved as `contract` is.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "days",
            "in": "query",
            "description": "Backtest window in days (1-90): the series covers it, and `backtests` lists it after the shorter standard windows.",
            "schema": {
              "default": 30,
              "type": "integer",
              "minimum": 1,
              "maximum": 90
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Spread series and backtests returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FundingSpreadHistoryResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Data-Source": {
                "$ref": "#/components/headers/X-Data-Source"
              },
              "X-Data-Stale": {
                "$ref": "#/components/headers/X-Data-Stale"
              },
              "X-Data-As-Of": {
                "$ref": "#/components/headers/X-Data-As-Of"
              },
              "X-Freshness-Sla-Seconds": {
                "$ref": "#/components/headers/X-Freshness-Sla-Seconds"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "funding_rates_history",
        "x-freshness-sla-seconds": 600
      }
    },
    "/v1/arbitrage/futures-calendar-spread": {
      "get": {
        "operationId": "getArbitrageFuturesCalendarSpread",
        "tags": [
          "Arbitrage"
        ],
        "summary": "Futures calendar spread scanner",
        "description": "Returns near-versus-far dated futures spreads (every adjacent pair, plus every pair of last-Friday monthly and quarterly contracts at least 7 days apart) using the buy leg ask and sell leg bid, with direction and curve from mark (else mid) prices. Pairs meeting the tenor floors (near leg at least 3 days out, legs at least 7 days apart) rank first; within them executable pairs that clear their fees, then such pairs executable on a live read (`snapshot_quote`), then the rest, each by signed post-fee net roll APY.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ArbitrageCoinParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageExchangesParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMinAprParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMinOiUsdParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMinVolumeUsdParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMinDepthUsdParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMarginTypeParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageNotionalParam"
          },
          {
            "$ref": "#/components/parameters/LimitParam"
          },
          {
            "$ref": "#/components/parameters/CursorParam"
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Scanner rows returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FuturesCalendarSpreadResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": [
          "arbitrage_dated_quotes",
          "futures_term_structure"
        ],
        "x-freshness-sla-seconds": 600
      }
    },
    "/v1/arbitrage/perp-dated-carry": {
      "get": {
        "operationId": "getArbitragePerpDatedCarry",
        "tags": [
          "Arbitrage"
        ],
        "summary": "Perp versus dated futures carry scanner",
        "description": "Returns perp-versus-dated carry rows: the dated contract's basis against the perp at the chosen trade's executable sides, against the funding the perp is expected to pay to expiry (the 7-day realised average; the current print under 3 days), with fee-adjusted annualized net carry used for filtering and ranking. Rows at least 3 days from expiry rank first; within them executable rows, then rows executable on a live read (`snapshot_quote`), then the rest. The perp and dated legs are often on different venues (`crossVenue`): separate accounts and collateral.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ArbitrageCoinParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageExchangesParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMinAprParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMinOiUsdParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMinVolumeUsdParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMinDepthUsdParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageMarginTypeParam"
          },
          {
            "$ref": "#/components/parameters/ArbitrageNotionalParam"
          },
          {
            "$ref": "#/components/parameters/LimitParam"
          },
          {
            "$ref": "#/components/parameters/CursorParam"
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Scanner rows returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PerpDatedCarryResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": [
          "arbitrage_dated_quotes",
          "futures_term_structure"
        ],
        "x-freshness-sla-seconds": 600
      }
    },
    "/v1/arbitrage/spot-perp": {
      "get": {
        "operationId": "getSpotPerpArbitrage",
        "tags": [
          "Arbitrage"
        ],
        "summary": "Spot-perp arbitrage",
        "description": "Returns spot-perpetual funding-capture rows with live funding, verified spot or margin availability, diagnostic basis, gross APR, and net APR after the venue's taker fees, the adverse entry basis and (where public) the borrow cost of a reverse carry. Executable rows (both legs priced, one instrument within 5%, fresh quotes, depth reported on both legs covering $10,000) rank first, then rows whose only gap is unproven depth (`no_spot_depth`: spot prices are last trades with no book, so this is every clean row today), then the other indicative rows.",
        "parameters": [
          {
            "name": "exchange",
            "in": "query",
            "description": "Filter by exchange name, or \"all\" for all exchanges.",
            "schema": {
              "default": "all",
              "type": "string"
            }
          },
          {
            "name": "direction",
            "in": "query",
            "description": "Filter by perpetual-leg direction: short for positive funding capture, long for negative funding capture.",
            "schema": {
              "default": "all",
              "type": "string",
              "enum": [
                "all",
                "long",
                "short"
              ]
            }
          },
          {
            "name": "minOiUsd",
            "in": "query",
            "description": "Minimum open interest in USD on the perpetual leg (`perpOpenInterestUsd`). Default 0 (no floor). A row whose open interest is unknown fails a positive floor, and so does a row on a venue left out of the API's open-interest totals (MEXC: `openInterestExcludedVenues` elsewhere), whose stored value is kept on the row.",
            "schema": {
              "default": 0,
              "type": "number",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Rows per page (1-1000), in board order. Omitted with no `cursor`: every row. On v1 a paged answer carries `pagination`.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque cursor from the previous page's `pagination.cursor` (100 rows a page when `limit` is omitted).",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Arbitrage opportunities returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpotPerpArbitrageResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Data-Missing": {
                "$ref": "#/components/headers/X-Data-Missing"
              },
              "X-Data-Venues": {
                "$ref": "#/components/headers/X-Data-Venues"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "arbitrage_boards",
        "x-freshness-sla-seconds": 600
      }
    },
    "/v1/briefing": {
      "get": {
        "operationId": "getBriefing",
        "tags": [
          "Reports"
        ],
        "summary": "Market briefing",
        "description": "A market briefing rendered as markdown: total market cap, 24h volume, BTC dominance and the Fear & Greed Index; the top 5 and bottom 3 narratives by 24h change as the API ranks them; the funding book's highest and lowest markets by 8h-equivalent rate among fresh markets with at least $1M of open interest, printed as APR with each venue's `rate_kind` (mostly the estimate of the next payment, not yet charged); and the whole-market funding estimated over the next 24 hours at current rates. `inputs` lists each read with the freshness of its answer; a read that fails leaves a gap in the report, not an error.",
        "responses": {
          "200": {
            "description": "The briefing, rendered.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BriefingResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": [
          "sectors",
          "narratives",
          "funding_rates_current",
          "funding_fee_settlement"
        ],
        "x-freshness-sla-seconds": 600
      }
    },
    "/v1/coins/{coin}/analysis": {
      "get": {
        "operationId": "getCoinAnalysis",
        "tags": [
          "Reports"
        ],
        "summary": "Coin analysis",
        "description": "One coin's analysis rendered as markdown: its price-prediction score and signals (when the asset is in the prediction coverage list), the price with its as-of; its current funding on its 10 largest markets by open interest (8h-equivalent rate and APR, each labelled with its `rate_kind`: on most venues the estimate of the next payment, not yet charged) with the average and median across venues; the asset's open-interest total from the global board in USD notional, with its 1h/24h change beside the 24h price change (USD open interest moves with price); and the dollars its funding is estimated to move over the next 24 hours at current rates. `inputs` lists each read with the freshness of its answer; a read that fails leaves a gap in the report, not an error.",
        "parameters": [
          {
            "name": "coin",
            "in": "path",
            "description": "Coin ticker (`BTC`, `ETH`, `1000PEPE`), any case. The funding reads resolve it to its asset (PEPE brings its 1000PEPE and KPEPE contracts); the price prediction is matched in the coverage list by that asset, else by ticker, never by a guessed slug. The settlement read matches the ticker as written, and the report names the asset's other spellings it leaves out.",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The coin's analysis, rendered.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoinAnalysisResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": [
          "price_prediction_inputs",
          "funding_rates_current",
          "global_overview_snapshot",
          "funding_fee_settlement"
        ],
        "x-freshness-sla-seconds": 600
      }
    },
    "/v1/correlation/matrix": {
      "get": {
        "operationId": "getCorrelationMatrix",
        "tags": [
          "Market Data"
        ],
        "summary": "Correlation matrix",
        "description": "Returns a price correlation matrix for the requested coins over the specified period.",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "description": "Lookback period for correlation calculation.",
            "schema": {
              "default": "30d",
              "type": "string",
              "enum": [
                "30d",
                "90d",
                "1y",
                "3y"
              ]
            }
          },
          {
            "name": "ids",
            "in": "query",
            "description": "Comma-separated asset ids: CoinGecko ids for crypto (e.g. bitcoin) and short ids for TradFi (e.g. sp500, gold). Maximum 10. If omitted, returns the default set. Ids no source recognises are listed in an optional `unresolved` array (partial success, as on the free route); a selection none of whose ids is recognised returns 404 resource_not_found naming them.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Correlation matrix returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CorrelationMatrixResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "correlation_prices",
        "x-freshness-sla-seconds": 172800
      }
    },
    "/v1/ecosystems/data": {
      "get": {
        "operationId": "getEcosystemsData",
        "tags": [
          "Categories"
        ],
        "summary": "Ecosystems data",
        "description": "Returns ecosystem-level market data (Ethereum, Solana, BNB, Arbitrum, Base, etc.) including market cap, volume, TVL, and performance metrics.",
        "parameters": [
          {
            "name": "ecosystem",
            "in": "query",
            "description": "Ecosystem to return detail for: the config id (e.g. bnb) or the URL slug (e.g. bnb-chain, ethereum, solana). An unknown value returns 400 invalid_parameter listing the valid values.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "correlation",
            "in": "query",
            "description": "Set to \"true\" to include correlation data.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "timeframe",
            "in": "query",
            "description": "Timeframe for correlation data.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "excludeNative",
            "in": "query",
            "description": "Set to \"true\" to exclude the native token from aggregated metrics.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Ecosystems data returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EcosystemsDataResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "ecosystems",
        "x-freshness-sla-seconds": 28800
      }
    },
    "/v1/funding/coins": {
      "get": {
        "operationId": "getFundingCoins",
        "tags": [
          "Derivatives"
        ],
        "summary": "Available funding coins",
        "description": "Returns every distinct base coin in the current funding-rate book with a display name and a same-origin logo path, ordered by symbol. Feeds coin pickers without downloading the full funding book; name and logo_url are null when no metadata exists.",
        "responses": {
          "200": {
            "description": "Coin list returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FundingCoinsResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "funding_rates_current",
        "x-freshness-sla-seconds": 600
      }
    },
    "/v1/funding/rates": {
      "get": {
        "operationId": "getFundingRates",
        "tags": [
          "Derivatives"
        ],
        "summary": "Funding rates",
        "description": "Returns perpetual funding rates across all supported exchanges. Supports current snapshots, accumulated rates over multiple windows, and per-coin historical rates.",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "Type of funding rate data to retrieve.",
            "schema": {
              "default": "current",
              "type": "string",
              "enum": [
                "current",
                "accumulated",
                "history"
              ]
            }
          },
          {
            "name": "coin",
            "in": "query",
            "description": "The coin to return: a ticker (e.g. BTC), a lot or venue spelling (e.g. `1000PEPE`, `kPEPE`), or the full name (e.g. `bitcoin`, resolved to BTC). Case-insensitive, one coin per request. `coin` names an asset, not a base_coin string: every contract of that asset is returned whatever its base_coin spelling, so `PEPE` also returns the 1000PEPE and KPEPE lot contracts (read `lot_multiplier`), and a ticker two assets share (BB is BounceBit and BlackBerry) returns both, narrowed by `asset_class`. Optional filter for type=current and type=accumulated; required when type=history. A value that no perpetual in the funding book has ever settled returns 400 rather than an empty result set; GET /api/funding/coins lists every ticker carried.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "days",
            "in": "query",
            "description": "Number of days of history to retrieve (type=history only).",
            "schema": {
              "default": 30,
              "type": "integer",
              "minimum": 1,
              "maximum": 1095
            }
          },
          {
            "name": "exchange",
            "in": "query",
            "description": "Filter to a single venue. Accepts the slug (e.g. `gate-io`), the display name as returned in the `exchange` field (e.g. `Gate.io`), or the ccxt id. The venue registry is not frozen, so read the `sharpe://exchanges` MCP resource or /api/funding/rates for the current list. An unrecognized value returns 400.",
            "schema": {
              "type": "string",
              "maxLength": 32
            }
          },
          {
            "name": "asset_class",
            "in": "query",
            "description": "Narrow the response to one underlying category. The funding book is not crypto-only. Tokenized equity, commodity, index and FX perps trade on the same venues, so this is unfiltered by default. Applies to type=current and type=accumulated; ignored for type=history. An unrecognized value returns 400.",
            "schema": {
              "type": "string",
              "enum": [
                "crypto",
                "equity",
                "commodity",
                "fx",
                "index"
              ]
            }
          },
          {
            "name": "margin",
            "in": "query",
            "description": "Narrow the response to one collateral convention: `linear` for quote-margined contracts, `inverse` for coin-margined ones. Unfiltered by default. Applies to type=current and type=accumulated; ignored for type=history. An unrecognized value returns 400.",
            "schema": {
              "type": "string",
              "enum": [
                "linear",
                "inverse"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of records to return per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor from a previous response.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "type=current only: order the rows by `open_interest`, ascending, or descending with the leading `-`. Rows with unknown open interest come last either way. Applied before `limit`/`cursor`. Default: the book's order (base_coin, exchange, symbol).",
            "schema": {
              "type": "string",
              "enum": [
                "open_interest",
                "-open_interest"
              ]
            }
          },
          {
            "name": "extremes",
            "in": "query",
            "description": "type=current only: answer with the N highest and N lowest rows by `rate_8h` (`extremes.highest`, `extremes.lowest`) among fresh rows with a usable interval, and how many rows each check left out (`extremes.omitted`). The other filters narrow the rows first. Returns an object instead of rows; cannot be combined with `limit`, `cursor` or `sort`.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "min_oi_usd",
            "in": "query",
            "description": "type=current, with `extremes` only: leave out rows whose open interest in USD is below this floor. A row with unknown open interest fails a floor above 0.",
            "schema": {
              "type": "number",
              "minimum": 0
            }
          },
          {
            "name": "stats",
            "in": "query",
            "description": "type=current only: `1` answers with the whole book's funding (`market`: mean and open-interest-weighted APR, and the count of positive and negative rates). Returns an object instead of rows; cannot be combined with `coin`, `exchange`, `margin`, `asset_class`, `limit`, `cursor` or `sort`.",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "name": "summary",
            "in": "query",
            "description": "type=current, with `coin` only: `1` answers with the coin's funding across venues (`summary`: average and median 8-hour rate, how they were reduced, and the venues behind them). Returns an object instead of rows; cannot be combined with `limit`, `cursor` or `sort`.",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Funding rates returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FundingRatesResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Data-Source": {
                "$ref": "#/components/headers/X-Data-Source"
              },
              "X-Data-Stale": {
                "$ref": "#/components/headers/X-Data-Stale"
              },
              "X-Data-As-Of": {
                "$ref": "#/components/headers/X-Data-As-Of"
              },
              "X-Freshness-Sla-Seconds": {
                "$ref": "#/components/headers/X-Freshness-Sla-Seconds"
              },
              "X-Coverage-Start": {
                "$ref": "#/components/headers/X-Coverage-Start"
              },
              "X-Requested-Start": {
                "$ref": "#/components/headers/X-Requested-Start"
              },
              "X-Coverage-Complete": {
                "$ref": "#/components/headers/X-Coverage-Complete"
              },
              "X-Days-Clamped": {
                "$ref": "#/components/headers/X-Days-Clamped"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": {
          "by": "type",
          "map": {
            "current": "funding_rates_current",
            "accumulated": "funding_accumulated",
            "history": "funding_rates_history"
          }
        },
        "x-freshness-sla-seconds": {
          "by": "type",
          "map": {
            "current": 600,
            "accumulated": 1800,
            "history": 600
          }
        }
      }
    },
    "/v1/funding/settlement": {
      "get": {
        "operationId": "getFundingSettlement",
        "tags": [
          "Derivatives"
        ],
        "summary": "Funding fee settlement",
        "description": "Returns how many dollars actually changed hands at funding settlement, and which side paid it. fee_usd = open_interest_usd x rate, priced at the one-sided open interest (each contract counted once, the side that pays) recorded at or before each settlement. `current` is the next 24 hours at current rates (each contract's forward rate x 24 / its own interval hours), computed live; `1d`/`3d`/`7d` are realised windows from a materialized view. Every window reports both long_paid and short_paid alongside net, and the `totals` block reconciles: the five classes (crypto, equity, commodity, fx, index), and crypto + rwa, each sum to all. Venues in settlementMeta.oi_excluded_venues are priced per venue (venues[].excluded_from_totals) but left out of every coin row and the totals.",
        "parameters": [
          {
            "$ref": "#/components/parameters/SettlementWindowParam"
          },
          {
            "$ref": "#/components/parameters/SettlementClassParam"
          },
          {
            "$ref": "#/components/parameters/SettlementCoinParam"
          },
          {
            "$ref": "#/components/parameters/SettlementExchangeParam"
          },
          {
            "$ref": "#/components/parameters/LimitParam"
          },
          {
            "$ref": "#/components/parameters/SettlementOffsetParam"
          },
          {
            "$ref": "#/components/parameters/SettlementSortParam"
          },
          {
            "$ref": "#/components/parameters/SettlementExpandParam"
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Funding fee settlement data returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SettlementResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": {
          "by": "window",
          "map": {
            "current": "funding_rates_current",
            "1d": "funding_fee_settlement",
            "3d": "funding_fee_settlement",
            "7d": "funding_fee_settlement"
          }
        },
        "x-freshness-sla-seconds": {
          "by": "window",
          "map": {
            "current": 600,
            "1d": 1800,
            "3d": 1800,
            "7d": 1800
          }
        }
      }
    },
    "/v1/futures/coins": {
      "get": {
        "operationId": "getFuturesCoins",
        "tags": [
          "Derivatives"
        ],
        "summary": "Available futures coins",
        "description": "Returns up to 1000 coins with futures data, including funding, open-interest, liquidation, long/short, CVD, and dated-basis capability flags plus observed venue coverage and market-cap rank.",
        "responses": {
          "200": {
            "description": "Coin list returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FuturesCoinsResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "futures_coins",
        "x-freshness-sla-seconds": 43200
      }
    },
    "/v1/futures/data": {
      "get": {
        "operationId": "getFuturesData",
        "tags": [
          "Derivatives"
        ],
        "summary": "Futures chart data",
        "description": "Returns time-series data for a specific futures chart. Supports open interest (one-sided USD notional per venue), volume, funding rate history, liquidations, long/short ratios, basis, term structure, OHLCV, and more. A database read that fails before returning any row answers 503 (Retry-After) rather than an empty dataset; one that fails part-way returns the rows it has, with coverage.status \"partial\", coverage.warnings and an X-Data-Partial header. chart=cvd serves OHLCV candle rows with the CVD precomputed: each candle with a taker volume carries `cvd_delta_usd` ((2 * taker_buy_volume - volume) * close) and `cvd_usd`, the running sum per venue from the first candle in the window (Binance only today; coverage.warnings names the venues without one). The free route also joins open-interest overlay rows (open_interest_value, no close) into cvd to normalise CVD by open interest; tell the two apart by close. returns-session, returns-heatmap, returns-hour and returns-day serve the raw 1h candles of the highest-volume venue (the averages are computed by the client). Composite charts (perp-dislocation, funding-cost, crowding-risk, flow-confirmation, carry-curve) serve their raw input rows tagged with `_type`. Liquidation `quantity` is USD notional.",
        "parameters": [
          {
            "name": "chart",
            "in": "query",
            "description": "Futures chart identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "perp-dislocation",
                "funding-cost",
                "crowding-risk",
                "flow-confirmation",
                "carry-curve",
                "perpetual-price",
                "liquidations",
                "oi-stacked",
                "oi-change",
                "oi-daily-change",
                "oi-snapshot",
                "oi-volume",
                "volume-snapshot",
                "volume-history",
                "cvd",
                "long-short-ratio",
                "funding-rate",
                "top-trader-ls",
                "returns-session",
                "returns-heatmap",
                "returns-hour",
                "returns-day",
                "annualized-basis",
                "term-structure"
              ]
            }
          },
          {
            "name": "coin",
            "in": "query",
            "description": "Base coin ticker.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "default": "BTC"
            }
          },
          {
            "name": "timeframe",
            "in": "query",
            "description": "Lookback window for the data.",
            "schema": {
              "default": "3M",
              "type": "string",
              "enum": [
                "1W",
                "2W",
                "1M",
                "3M",
                "6M",
                "1Y",
                "3Y"
              ]
            }
          },
          {
            "name": "exchanges",
            "in": "query",
            "description": "Comma-separated list of exchanges to include (e.g. Binance,Bybit).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of data points per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor from a previous response.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Futures chart data returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FuturesDataResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Data-Partial": {
                "$ref": "#/components/headers/X-Data-Partial"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": {
          "by": "chart",
          "map": {
            "oi-stacked": "futures_open_interest",
            "oi-change": "futures_open_interest",
            "oi-daily-change": "futures_open_interest",
            "oi-snapshot": "futures_open_interest",
            "oi-volume": "futures_open_interest",
            "funding-rate": "funding_rates_history",
            "funding-cost": "funding_rates_history",
            "long-short-ratio": "futures_long_short_ratio",
            "top-trader-ls": "futures_long_short_ratio",
            "liquidations": "futures_liquidations",
            "term-structure": "futures_term_structure",
            "carry-curve": "futures_term_structure",
            "annualized-basis": "futures_term_structure",
            "perp-dislocation": "futures_basis",
            "perpetual-price": "futures_ohlcv",
            "cvd": "futures_ohlcv",
            "volume-snapshot": "futures_ohlcv",
            "volume-history": "futures_ohlcv",
            "returns-session": "futures_ohlcv",
            "returns-heatmap": "futures_ohlcv",
            "returns-hour": "futures_ohlcv",
            "returns-day": "futures_ohlcv",
            "crowding-risk": "futures_long_short_ratio",
            "flow-confirmation": "futures_ohlcv"
          }
        },
        "x-freshness-sla-seconds": {
          "by": "chart",
          "map": {
            "oi-stacked": 1200,
            "oi-change": 1200,
            "oi-daily-change": 1200,
            "oi-snapshot": 1200,
            "oi-volume": 1200,
            "funding-rate": 600,
            "funding-cost": 600,
            "long-short-ratio": 1200,
            "top-trader-ls": 1200,
            "liquidations": 1200,
            "term-structure": 7200,
            "carry-curve": 7200,
            "annualized-basis": 7200,
            "perp-dislocation": 1200,
            "perpetual-price": 7200,
            "cvd": 7200,
            "volume-snapshot": 7200,
            "volume-history": 7200,
            "returns-session": 7200,
            "returns-heatmap": 7200,
            "returns-hour": 7200,
            "returns-day": 7200,
            "crowding-risk": 1200,
            "flow-confirmation": 7200
          }
        }
      }
    },
    "/v1/gem-finder/data": {
      "get": {
        "operationId": "getGemFinderData",
        "tags": [
          "Market Data"
        ],
        "summary": "Gem finder",
        "description": "Returns up to 1,000 market-ranked token rows, optionally scoped to one chain with `chain`, with market cap, nullable FDV and FDV/MCap ratio, volume, nullable price and market-cap changes, circulating supply, ATH and ATL history, preferred chain scope, and observed exchange availability. Stablecoins, wrapped/bridged/pegged and liquid-staking derivative assets, tokenized stocks, assets whose upstream quote is more than 24 hours old (delisted or halted markets that would otherwise report a weeks-old price change as if it were current), and rows below minimum market-cap or volume thresholds are excluded. Ambiguous same-ticker assets do not receive symbol-only exchange attribution. Enrichment coverage is exposed in syncStatus. No wallet signal or proprietary token score is returned.",
        "parameters": [
          {
            "name": "chain",
            "in": "query",
            "description": "Keep only assets whose home chain (chainSlug) is this chain. A token bridged to the chain (chainSlugs) does not match: Chainlink is an Ethereum asset, not a Solana one. A chain's own coin is homed on that chain (SOL under solana, BNB under bsc); a coin or token whose home chain is unsupported (BTC, ICP) matches none. An unknown chain is a 400.",
            "schema": {
              "type": "string",
              "enum": [
                "ethereum",
                "solana",
                "base",
                "arbitrum",
                "bsc",
                "avalanche",
                "polygon",
                "optimism",
                "fantom",
                "blast",
                "linea",
                "mantle",
                "scroll",
                "zksync",
                "tron",
                "cronos",
                "celo",
                "berachain"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of tokens to return per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque, snapshot-bound pagination cursor from a previous response. Cursors expire when the cache refreshes; restart without a cursor after an expiry error.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Gem finder data returned successfully. Returns a paginated envelope when the `limit` query parameter is supplied, otherwise the full dataset in a success envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GemFinderResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "gem_finder",
        "x-freshness-sla-seconds": 43200
      }
    },
    "/v1/global/overview": {
      "get": {
        "operationId": "getGlobalOverview",
        "tags": [
          "Derivatives"
        ],
        "summary": "Global market overview",
        "description": "Whole-market derivatives board. Returns market-wide metrics (total open interest -- one-sided USD notional, each contract counted once, summed over every venue except metrics.openInterestExcludedVenues -- with its crypto-versus-RWA split, 24h liquidations on Binance, Bybit and Deribit only (a lower bound, not the market total), average Wilder RSI(14) across the top 100 crypto perps by market cap, the Altcoin Season Index, and open interest by asset class) plus a ranked per-asset row table for the requested tab. Liquidations are crypto-only: no RWA perp venue publishes a liquidation feed. Market cap is absent on the preipo and index tabs. When composing the board fails or runs past its 20-second budget, the crypto tab answers from the last composed snapshot with X-Data-Stale true and X-Data-As-Of set to that snapshot's own time, not cached; other tabs answer the last board the server composed for the tab, flagged the same way, when it has one, and 503 (Retry-After: 30) otherwise. A tab with no rows returns 503.",
        "parameters": [
          {
            "name": "tab",
            "in": "query",
            "description": "Universe to return rows for. The metric block is identical on every tab.",
            "schema": {
              "default": "crypto",
              "type": "string",
              "enum": [
                "crypto",
                "equity",
                "preipo",
                "etf",
                "index",
                "commodity",
                "fx"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows per page (1-1000). Enables cursor pagination.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor from a previous response.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Global market overview returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalOverviewResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Data-Source": {
                "$ref": "#/components/headers/X-Data-Source"
              },
              "X-Data-Stale": {
                "$ref": "#/components/headers/X-Data-Stale"
              },
              "X-Data-As-Of": {
                "$ref": "#/components/headers/X-Data-As-Of"
              },
              "X-Freshness-Sla-Seconds": {
                "$ref": "#/components/headers/X-Freshness-Sla-Seconds"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": {
          "by": "tab",
          "map": {
            "crypto": "global_overview_snapshot",
            "equity": "rwa_perp_rates_current",
            "preipo": "rwa_perp_rates_current",
            "etf": "rwa_perp_rates_current",
            "index": "rwa_perp_rates_current",
            "commodity": "rwa_perp_rates_current",
            "fx": "rwa_perp_rates_current"
          }
        },
        "x-freshness-sla-seconds": {
          "by": "tab",
          "map": {
            "crypto": 600,
            "equity": 3600,
            "preipo": 3600,
            "etf": 3600,
            "index": 3600,
            "commodity": 3600,
            "fx": 3600
          }
        }
      }
    },
    "/v1/health": {
      "get": {
        "operationId": "getHealth",
        "tags": [
          "System"
        ],
        "summary": "Health check",
        "description": "Returns database reachability and News article freshness. The service is degraded when the database is unavailable or the newest News article is stale or has unknown freshness. It also lists per-dataset freshness (`datasets`) read from the snapshot index and the cache rows; a stale dataset does not make the service degraded. No authentication required.",
        "security": [],
        "responses": {
          "200": {
            "description": "Service is healthy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            }
          },
          "503": {
            "description": "Service is degraded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/heatmap/data": {
      "get": {
        "operationId": "getHeatmapData",
        "tags": [
          "Market Data"
        ],
        "summary": "Market heatmap",
        "description": "Returns the market heatmap: coins (a Top N universe, or one narrative's or ecosystem's members) or one tile per narrative or ecosystem. Eligible coins: a 24h price change, market cap at least $1M, plausible 24h spot volume (at most 50x market cap) at least $100K, CoinGecko data under 48 hours old, and not a stablecoin, wrapped, bridged or staked copy, LP token, tokenized metal, fund, stock, ETF or pre-IPO token. A category tile covers every eligible member: price changes are cap-weighted, funding is open-interest weighted, OI value change and RVOL are ratios of member sums, and RSI is the median member; each tile carries `constituents` (members with a value and the share of weight they carry) and its `median` member, and a value is null below its floor. `ex` leaves coins out in every mode; aggregate tiles are rebuilt without them. `y.1h`, `y.4h`, `fundingApr`, `rsi`, `median` and `constituents` are rounded (percent and RVOL to 2 dp, RSI to 1 dp, `weightCoverage` to 3 dp, `largest.marketCapShare` to 4 dp); every other field keeps full precision. Aggregate modes expose complete or partial category coverage. The cache is rebuilt every three hours; X-Data-Stale is true once updated_at is more than six hours old (X-Freshness-Sla-Seconds 21600) or missing, and X-Data-As-Of repeats updated_at. Candle and funding metrics carry their own times in `as_of`.",
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "description": "Heatmap grouping mode.",
            "schema": {
              "default": "coins",
              "type": "string",
              "enum": [
                "coins",
                "narratives",
                "ecosystems"
              ]
            }
          },
          {
            "name": "category",
            "in": "query",
            "description": "Coins-mode universe. `top10`, `top20`, `top30` and `top50` (the default) are the N largest eligible coins by market cap; the legacy `top-100` is an alias of `top50`. Otherwise one of the 15 narrative ids or 20 ecosystem ids (e.g. `layer-1`, `solana-ecosystem`), an alias such as `defi` or `sol`, or a /heatmap/<slug> page slug: the category's eligible members, of which the 50 largest are served; an ecosystem's members are the coins whose home chain it is. Ignored in the aggregate modes. Eligible coins: a 24h price change, market cap at least $1M, plausible 24h spot volume (at most 50x market cap) at least $100K, CoinGecko data under 48 hours old, and not a stablecoin, wrapped, bridged or staked copy, LP token, tokenized metal, fund, stock, ETF or pre-IPO token.",
            "schema": {
              "default": "top50",
              "type": "string"
            }
          },
          {
            "name": "ex",
            "in": "query",
            "description": "Comma-separated CoinGecko coin ids to leave out, lower case (e.g. `bitcoin,ethereum`). Coins mode: removed after the Top N cut and never refilled, so `top10` with two member ids answers 8 coins. Aggregate modes: every tile is rebuilt from its members without them; a tile left with no member is dropped and counted in `omitted`. `excluded` lists the ids that were applied; the others are ignored and named in `meta.warnings`.",
            "schema": {
              "type": "string",
              "maxLength": 2000,
              "pattern": "^[a-z0-9_.-]+(,[a-z0-9_.-]+)*$"
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Heatmap data returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeatmapDataResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Data-Stale": {
                "$ref": "#/components/headers/X-Data-Stale"
              },
              "X-Data-As-Of": {
                "$ref": "#/components/headers/X-Data-As-Of"
              },
              "X-Freshness-Sla-Seconds": {
                "$ref": "#/components/headers/X-Freshness-Sla-Seconds"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "heatmap_cache",
        "x-freshness-sla-seconds": 21600
      }
    },
    "/v1/insider-selling/data": {
      "get": {
        "operationId": "getInsiderSellingData",
        "tags": [
          "Signals"
        ],
        "summary": "Insider selling pressure",
        "description": "Composite score (0-10) flagging coins with persistent negative funding rates across the perpetual futures venues Sharpe reads funding from (`exchange_count` is how many carry the coin). Higher scores indicate stronger evidence of systematic short positioning. Updates every 30 minutes. Units: `oi_change_24h` is a fraction (0.07 = +7%) of USD-notional open interest over 24 h on the venues read at both ends, so a price move alone moves it; `price_change_24h` / `price_change_7d` are percent (5.4 = +5.4%) read from the market tracker cache (refreshed every few hours, accepted up to 24 h old), not measured by the 30-minute scoring run; `holders_change_pct`, `liquidity_change_pct` and `volume_change_pct` are fractions between the two most recent distinct on-chain snapshots (about 3 h apart), null on a run with no newer snapshot. Basis and CVD exist only for the futures-covered majors, so most altcoin rows carry them null. A `coin` answer is dated by that coin's own row (`updated_at`): a coin that stopped qualifying keeps the inputs of its last qualifying run and reads stale.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of coins to return.",
            "schema": {
              "default": 100,
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          },
          {
            "name": "min_score",
            "in": "query",
            "description": "Filter to coins scoring at or above this value.",
            "schema": {
              "default": 0,
              "type": "number",
              "minimum": 0,
              "maximum": 10
            }
          },
          {
            "name": "coin",
            "in": "query",
            "description": "One coin by its CoinGecko id (e.g. pepe): its row exactly as the scorer wrote it, whatever its score, and the answer is dated by that row's own `updated_at`. A coin that stopped qualifying answers `score: null` with its sub-scores and phase cleared, keeps the other inputs of its last qualifying run, and reads stale with a warning; an id with no row answers an empty list. `limit`, `min_score` and `phase` do not apply.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsiderSellingResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Sharpe-Data-State": {
                "description": "Freshness state using the 1-hour market-manipulation SLA.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "ok",
                    "stale"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "insider_pressure",
        "x-freshness-sla-seconds": 3600
      }
    },
    "/v1/listings/data": {
      "get": {
        "operationId": "getListingsData",
        "tags": [
          "New Listings"
        ],
        "summary": "New listings hub data",
        "description": "Returns aggregated weekly and monthly compatibility listing counts plus the last-90-day recent listings for the New Listings product. Optionally filter by narrative slug or exchange. Counts and `recent` include only resolved spot listings (status `active`: a CoinGecko id and a mapped narrative); brand-new tokens still awaiting resolution (`needs_review`/`uncategorized`) are left out, so the newest listings are undercounted. Every observed listing, perps included, is in the canonical event feed at `/v1/listings/events`; enabled listing connectors refresh hourly.",
        "parameters": [
          {
            "name": "narrative",
            "in": "query",
            "description": "Filter to a single narrative slug (e.g. `ai-agents`, `memes`, `layer-1`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "exchange",
            "in": "query",
            "description": "Filter to a single exchange.",
            "schema": {
              "type": "string",
              "enum": [
                "binance",
                "okx",
                "bybit",
                "gateio",
                "mexc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Hub payload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingsDataResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "listings",
        "x-freshness-sla-seconds": 7200
      }
    },
    "/v1/listings/events": {
      "get": {
        "operationId": "getListingEvents",
        "tags": [
          "New Listings"
        ],
        "summary": "Canonical listing events",
        "description": "Returns canonical listing lifecycle events across CEXs and Perp DEXs, including Spot listings, Perp listings, delistings, suspensions, resumptions, scheduled trading starts, source URLs, source confidence, source-observation freshness, and per-provider health. The opaque cursor advances the persisted database and official live-overlay streams independently so either source can fill a page without stranding the other.",
        "parameters": [
          {
            "name": "exchange",
            "in": "query",
            "description": "Filter to a single exchange or perp DEX.",
            "schema": {
              "type": "string",
              "enum": [
                "binance",
                "okx",
                "bybit",
                "gateio",
                "mexc",
                "bitget",
                "kucoin",
                "bingx",
                "bitmart",
                "deepcoin",
                "coinbase",
                "kraken",
                "crypto_com",
                "upbit",
                "bithumb",
                "htx",
                "bitfinex",
                "bitstamp",
                "gemini",
                "bitmex",
                "deribit",
                "phemex",
                "lbank",
                "bitrue",
                "coinex",
                "backpack",
                "hashkey",
                "whitebit",
                "toobit",
                "hyperliquid",
                "aster",
                "dydx",
                "aevo"
              ]
            }
          },
          {
            "name": "venue_type",
            "in": "query",
            "description": "Filter by venue type.",
            "schema": {
              "type": "string",
              "enum": [
                "cex",
                "perp_dex",
                "dex"
              ]
            }
          },
          {
            "name": "market_type",
            "in": "query",
            "description": "Filter by market type.",
            "schema": {
              "type": "string",
              "enum": [
                "spot",
                "perp",
                "futures",
                "options",
                "margin"
              ]
            }
          },
          {
            "name": "event_type",
            "in": "query",
            "description": "Filter by listing lifecycle event type.",
            "schema": {
              "type": "string",
              "enum": [
                "listing",
                "delisting",
                "suspension",
                "resumption",
                "prelaunch"
              ]
            }
          },
          {
            "name": "asset_class",
            "in": "query",
            "description": "Filter by listed instrument class.",
            "schema": {
              "type": "string",
              "enum": [
                "token",
                "spot_pair",
                "perp_contract",
                "futures_contract",
                "options_contract"
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Filter by event status.",
            "schema": {
              "type": "string",
              "enum": [
                "announced",
                "scheduled",
                "live",
                "completed",
                "cancelled",
                "needs_review"
              ]
            }
          },
          {
            "name": "narrative",
            "in": "query",
            "description": "Filter by Sharpe narrative slug.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "confidence",
            "in": "query",
            "description": "Filter by source confidence.",
            "schema": {
              "type": "string",
              "enum": [
                "authoritative",
                "high",
                "medium",
                "low",
                "proxy",
                "manual"
              ]
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "ISO date or datetime lower bound.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "ISO date or datetime upper bound.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "days",
            "in": "query",
            "description": "Lookback window in days.",
            "schema": {
              "default": 90,
              "type": "integer",
              "minimum": 1,
              "maximum": 365
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Max rows returned.",
            "schema": {
              "default": 200,
              "type": "integer",
              "minimum": 1,
              "maximum": 1000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque two-stream cursor returned by the previous page. Pass it through unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Listing events payload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingEventsResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "listings",
        "x-freshness-sla-seconds": 7200
      }
    },
    "/v1/listings/exchanges": {
      "get": {
        "operationId": "getListingExchanges",
        "tags": [
          "New Listings"
        ],
        "summary": "New listings exchange registry",
        "description": "Returns the typed listing connector registry, including supported market types, source URLs, parser confidence, connector status, and market coverage for each exchange.",
        "parameters": [
          {
            "name": "venue_type",
            "in": "query",
            "description": "Filter exchange coverage by venue type.",
            "schema": {
              "type": "string",
              "enum": [
                "cex",
                "perp_dex",
                "dex"
              ]
            }
          },
          {
            "name": "market_type",
            "in": "query",
            "description": "Filter exchange coverage by supported market type.",
            "schema": {
              "type": "string",
              "enum": [
                "spot",
                "perp",
                "futures",
                "options",
                "margin"
              ]
            }
          },
          {
            "name": "enabled",
            "in": "query",
            "description": "Filter to enabled or disabled connectors.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Exchange coverage payload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingExchangesResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v1/listings/recent": {
      "get": {
        "operationId": "getListingsRecent",
        "tags": [
          "New Listings"
        ],
        "summary": "Recent new listings",
        "description": "Returns a flat list of recent listings (token, exchange, narrative, listing date). Defaults remain backward-compatible with the legacy spot feed; event-specific filters switch to the canonical event feed while preserving the recent-feed row shape. The legacy feed (no event filter, no `from`/`to`/`cursor`, and `exchange` unset or one of binance, okx, bybit, gateio, mexc) holds only resolved spot listings (status `active`: a CoinGecko id and a mapped narrative), so brand-new tokens awaiting resolution and perps are missing; it has no `next_cursor`, so `limit` truncates it. Any event filter, `from`/`to`, `cursor` or another exchange answers from the event feed: spot and perp, every status, cursor-paged.",
        "parameters": [
          {
            "name": "narrative",
            "in": "query",
            "description": "Filter to a single narrative slug.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "exchange",
            "in": "query",
            "description": "Filter to a single exchange.",
            "schema": {
              "type": "string",
              "enum": [
                "binance",
                "okx",
                "bybit",
                "gateio",
                "mexc",
                "bitget",
                "kucoin",
                "bingx",
                "bitmart",
                "deepcoin",
                "coinbase",
                "kraken",
                "crypto_com",
                "upbit",
                "bithumb",
                "htx",
                "bitfinex",
                "bitstamp",
                "gemini",
                "bitmex",
                "deribit",
                "phemex",
                "lbank",
                "bitrue",
                "coinex",
                "backpack",
                "hashkey",
                "whitebit",
                "toobit",
                "hyperliquid",
                "aster",
                "dydx",
                "aevo"
              ]
            }
          },
          {
            "name": "venue_type",
            "in": "query",
            "description": "Optional event-feed venue type filter.",
            "schema": {
              "type": "string",
              "enum": [
                "cex",
                "perp_dex",
                "dex"
              ]
            }
          },
          {
            "name": "market_type",
            "in": "query",
            "description": "Optional event-feed market type filter.",
            "schema": {
              "type": "string",
              "enum": [
                "spot",
                "perp",
                "futures",
                "options",
                "margin"
              ]
            }
          },
          {
            "name": "event_type",
            "in": "query",
            "description": "Optional event-feed lifecycle event filter.",
            "schema": {
              "type": "string",
              "enum": [
                "listing",
                "delisting",
                "suspension",
                "resumption",
                "prelaunch"
              ]
            }
          },
          {
            "name": "asset_class",
            "in": "query",
            "description": "Optional listed instrument class filter.",
            "schema": {
              "type": "string",
              "enum": [
                "token",
                "spot_pair",
                "perp_contract",
                "futures_contract",
                "options_contract"
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Optional event status filter.",
            "schema": {
              "type": "string",
              "enum": [
                "announced",
                "scheduled",
                "live",
                "completed",
                "cancelled",
                "needs_review"
              ]
            }
          },
          {
            "name": "confidence",
            "in": "query",
            "description": "Optional source confidence filter.",
            "schema": {
              "type": "string",
              "enum": [
                "authoritative",
                "high",
                "medium",
                "low",
                "proxy",
                "manual"
              ]
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "ISO date or datetime lower bound.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "ISO date or datetime upper bound.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "days",
            "in": "query",
            "description": "How many days back to include. Default 90.",
            "schema": {
              "default": 90,
              "type": "integer",
              "minimum": 1,
              "maximum": 365
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Max rows returned.",
            "schema": {
              "default": 200,
              "type": "integer",
              "minimum": 1,
              "maximum": 1000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Cursor returned by previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Recent listings.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingsRecentResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "listings",
        "x-freshness-sla-seconds": 7200
      }
    },
    "/v1/market-cap/search": {
      "get": {
        "operationId": "searchMarketCap",
        "tags": [
          "Market Data"
        ],
        "summary": "Market cap search",
        "description": "Search crypto and supported TradFi assets by name or ticker. Returns up to 20 matching assets with asset class, market cap, nullable price and 24h change, plus nullable crypto FDV and estimated ATH fields.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Search query (2-100 characters).",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 100
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Search results returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketCapSearchResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "market_cap_search",
        "x-freshness-sla-seconds": 300
      }
    },
    "/v1/market/derivatives-overview": {
      "get": {
        "operationId": "getDerivativesOverview",
        "tags": [
          "Market Data"
        ],
        "summary": "Market-wide derivatives overview",
        "description": "Returns aggregated derivatives metrics: total open interest, average and OI-weighted 8-hour-equivalent funding rates, top coins by open interest, exchange count, coin count, and update timestamp. Open interest is one-sided USD notional per venue (each contract counted once); venues listed in oi_excluded_venues are left out of every open-interest total and weight. total_oi_usd is the market-wide open interest GET /v1/global/overview publishes (metrics.openInterestUsd): every crypto asset holding at least $100K plus the RWA perps. The funding averages are over each (venue, asset) primary contract with a fresh rate (600 s), an asset being the funding grid's row (PEPE, 1000PEPE and KPEPE are one asset), exactly as GET /api/funding/rates?stats=1 computes them; the OI-weighted average weights each rate by that contract's own open interest. The request fails closed when either source dataset is unavailable.",
        "responses": {
          "200": {
            "description": "Derivatives overview returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DerivativesOverviewResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": [
          "futures_open_interest",
          "funding_rates_current"
        ],
        "x-freshness-sla-seconds": 600
      }
    },
    "/v1/memecoins/data": {
      "get": {
        "operationId": "getMemecoinsData",
        "tags": [
          "Categories"
        ],
        "summary": "Memecoins data",
        "description": "Returns memecoin narrative data across grouped aggregate, theme, chain, and launchpad categories with market cap, market share, freshness, coverage, volume, performance, and momentum metadata.",
        "parameters": [
          {
            "name": "narrative",
            "in": "query",
            "description": "Memecoin narrative slug to filter by (e.g. dog-coins, cat-coins, frog-coins, ai-memes, trump-coins).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "historical",
            "in": "query",
            "description": "Include historical time-series data for the specified window.",
            "schema": {
              "type": "string",
              "enum": [
                "24h",
                "7d",
                "30d",
                "1y"
              ]
            }
          },
          {
            "name": "coinHistory",
            "in": "query",
            "description": "Include per-coin price history where retained. Enum: 24h, 7d, 1m, 1y.",
            "schema": {
              "type": "string",
              "enum": [
                "24h",
                "7d",
                "1m",
                "1y"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Memecoins data returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemecoinsDataResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "memecoins",
        "x-freshness-sla-seconds": 43200
      }
    },
    "/v1/memecoins/launches": {
      "get": {
        "operationId": "getMemecoinLaunches",
        "tags": [
          "Categories"
        ],
        "summary": "Memecoin launches",
        "description": "Returns recently launched tokens from recognized memecoin launchpads, screened by age, liquidity, volume, and transaction count. Generic new DEX pairs are excluded. Responses expose complete/partial chain coverage and return 503 when every requested chain scanner fails. This is a discovery feed, not a contract-security verdict.",
        "parameters": [
          {
            "name": "chains",
            "in": "query",
            "description": "Comma-separated chain IDs. Default `solana,bsc`: the chains with a recognised meme launchpad (Pump.fun on Solana; Four.meme and Flap on BNB Chain). Other chains are scanned but return no rows until a launchpad signal exists for them.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "days",
            "in": "query",
            "description": "Launch lookback window in days, from 1 to 30.",
            "schema": {
              "default": 7,
              "type": "integer",
              "minimum": 1,
              "maximum": 30
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum launch rows to return, from 1 to 200.",
            "schema": {
              "default": 80,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "profile",
            "in": "query",
            "description": "Screening profile for liquidity, volume, and transaction thresholds.",
            "schema": {
              "default": "balanced",
              "type": "string",
              "enum": [
                "discovery",
                "balanced",
                "strict"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Memecoin launches returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemecoinLaunchesResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "memecoin_launches",
        "x-freshness-sla-seconds": 300
      }
    },
    "/v1/meta/coverage": {
      "get": {
        "operationId": "getCoverage",
        "tags": [
          "System"
        ],
        "summary": "API data coverage",
        "description": "Returns metadata about available data products, supported exchanges, coins, chart types, and timeframes. No authentication required.",
        "security": [],
        "responses": {
          "200": {
            "description": "Coverage metadata returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/v1/meta/datasets": {
      "get": {
        "operationId": "getDatasetCatalog",
        "tags": [
          "System"
        ],
        "summary": "Data Ocean dataset catalog",
        "description": "Returns metadata for Sharpe Data Ocean datasets, including fields, allowed filter operators, source labels, freshness SLAs, default selections, and row limits. No authentication required.",
        "security": [],
        "responses": {
          "200": {
            "description": "Dataset catalog metadata returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetCatalogResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/v1/mindshare/data": {
      "get": {
        "operationId": "getMindshareData",
        "tags": [
          "Market Data"
        ],
        "summary": "Mindshare data",
        "description": "Returns narrative mindshare rankings, token rows, rolling windows, or historical snapshots.",
        "parameters": [
          {
            "name": "tokens",
            "in": "query",
            "description": "Set to true for token rows.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "narrative",
            "in": "query",
            "description": "Optional narrative slug.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "historical",
            "in": "query",
            "description": "Set to true for historical snapshots.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "timeframe",
            "in": "query",
            "description": "Historical timeframe.",
            "schema": {
              "type": "string",
              "enum": [
                "1W",
                "1M",
                "3M",
                "6M",
                "1Y",
                "3Y"
              ]
            }
          },
          {
            "name": "window",
            "in": "query",
            "description": "Rolling snapshot window.",
            "schema": {
              "type": "string",
              "enum": [
                "now",
                "24h",
                "7d",
                "30d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Mindshare data returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MindshareDataResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "mindshare",
        "x-freshness-sla-seconds": 86400
      }
    },
    "/v1/narratives/data": {
      "get": {
        "operationId": "getNarrativesData",
        "tags": [
          "Categories"
        ],
        "summary": "Narratives data",
        "description": "Returns narrative-level market data (L1, L2, DeFi, AI Agents, etc.) including market cap, volume, performance, and social metrics.",
        "parameters": [
          {
            "name": "narrative",
            "in": "query",
            "description": "Narrative to return detail for: the config id (e.g. dex) or the URL slug (e.g. dex-tokens, layer-1, ai-agents). An unknown value returns 400 invalid_parameter listing the valid values.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "correlation",
            "in": "query",
            "description": "Set to \"true\" to include correlation data.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "timeframe",
            "in": "query",
            "description": "Timeframe for correlation data.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "List only: order `narratives` by 24h change, highest (`-change24h`) or lowest (`change24h`) first; a narrative without a 24h change is last either way.",
            "schema": {
              "type": "string",
              "enum": [
                "-change24h",
                "change24h"
              ]
            }
          },
          {
            "name": "top",
            "in": "query",
            "description": "List only: add `top`, the N narratives with the highest 24h change.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "bottom",
            "in": "query",
            "description": "List only: add `bottom`, the N narratives with the lowest 24h change.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Narratives data returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NarrativesDataResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "narratives",
        "x-freshness-sla-seconds": 28800
      }
    },
    "/v1/news/feed": {
      "get": {
        "operationId": "getNewsFeed",
        "tags": [
          "Market Data"
        ],
        "summary": "News feed",
        "description": "Returns aggregated crypto news articles from multiple sources, with optional filtering by category or coin.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of articles to return.",
            "schema": {
              "default": 200,
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Number of articles to skip for pagination.",
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "category",
            "in": "query",
            "description": "Filter by news category.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "crypto",
                "tradfi",
                "macro",
                "research",
                "ai",
                "geopolitics"
              ]
            }
          },
          {
            "name": "coin",
            "in": "query",
            "description": "Filter by coin ticker.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "since",
            "in": "query",
            "description": "ISO 8601 timestamp. Only return articles published after this time.",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Search article titles across the stored news corpus.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "News articles returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NewsFeedResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "news",
        "x-freshness-sla-seconds": 1800
      }
    },
    "/v1/opportunities": {
      "get": {
        "operationId": "getOpportunities",
        "tags": [
          "Reports"
        ],
        "summary": "Arbitrage opportunities",
        "description": "The funding-arbitrage opportunities rendered as markdown: the top 10 spot-perp basis trades (perp legs with at least $1M of open interest) and the top 10 cross-exchange funding pairs (both legs with at least $1M of open interest and 24h volume), each in its board's order with its gross and fee-adjusted net APR and status flags (the spot-perp section counts the executable rows and marks open interest on a venue the API leaves out of its totals as unverified; a cross-exchange row prints its funding spread apart from its entry price gap), and the funding book's market stats (mean and OI-weighted APR, markets paying each way). `inputs` lists each read with the freshness of its answer; a read that fails leaves a gap in the report, not an error.",
        "responses": {
          "200": {
            "description": "The opportunities report, rendered.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunitiesResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": [
          "arbitrage_boards",
          "funding_rates_current"
        ],
        "x-freshness-sla-seconds": 600
      }
    },
    "/v1/price-prediction/data": {
      "get": {
        "operationId": "getPricePredictionData",
        "tags": [
          "Market Data"
        ],
        "summary": "Price prediction",
        "description": "Returns deterministic directional scores and sub-signal breakdowns. Optional 7D/30D values are heuristic scenarios: a signal-weighted midpoint, not a price target, with low/high as an 80% range under lognormal moves at the coin's realized volatility (not backtested). `confidence` and `modelConfidence` are signal breadth, not probabilities.",
        "parameters": [
          {
            "name": "coin",
            "in": "query",
            "description": "Ticker, canonical coin slug, or CoinGecko ID to get predictions for (for example, `BTC` or `bitcoin`). A curated coin's ticker resolves to its slug.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Prediction data returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricePredictionResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "price_prediction_inputs",
        "x-freshness-sla-seconds": 43200
      }
    },
    "/v1/pump-dump/data": {
      "get": {
        "operationId": "getPumpDumpData",
        "tags": [
          "Signals"
        ],
        "summary": "Pump and dump detection",
        "description": "Composite score (0-10) flagging coins where price is rising while funding is negative, a divergence pattern consistent with pump-and-dump activity. Gated on negative 72h average funding AND positive 7d price change. Updates every 30 minutes. Units: `oi_change_24h` is a fraction (0.07 = +7%) of USD-notional open interest over 24 h on the venues read at both ends, so a price move alone moves it; `price_change_24h` / `price_change_7d` are percent (5.4 = +5.4%) read from the market tracker cache (refreshed every few hours, accepted up to 24 h old), not measured by the 30-minute scoring run; `holders_change_pct`, `liquidity_change_pct` and `volume_change_pct` are fractions between the two most recent distinct on-chain snapshots (about 3 h apart), null on a run with no newer snapshot. Basis and CVD exist only for the futures-covered majors, so most altcoin rows carry them null. A `coin` answer is dated by that coin's own row (`updated_at`): a coin that stopped qualifying keeps the inputs of its last qualifying run and reads stale.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of coins to return.",
            "schema": {
              "default": 100,
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          },
          {
            "name": "min_score",
            "in": "query",
            "description": "Filter to coins scoring at or above this value.",
            "schema": {
              "default": 0,
              "type": "number",
              "minimum": 0,
              "maximum": 10
            }
          },
          {
            "name": "phase",
            "in": "query",
            "description": "Filter to one manipulation phase label.",
            "schema": {
              "type": "string",
              "enum": [
                "setup",
                "markup",
                "distribution",
                "dump",
                "dumping"
              ]
            }
          },
          {
            "name": "coin",
            "in": "query",
            "description": "One coin by its CoinGecko id (e.g. pepe): its row exactly as the scorer wrote it, whatever its score, and the answer is dated by that row's own `updated_at`. A coin that stopped qualifying answers `score: null` with its sub-scores and phase cleared, keeps the other inputs of its last qualifying run, and reads stale with a warning; an id with no row answers an empty list. `limit`, `min_score` and `phase` do not apply.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PumpDumpResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Sharpe-Data-State": {
                "description": "Freshness state using the 1-hour market-manipulation SLA.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "ok",
                    "stale"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "pump_dump",
        "x-freshness-sla-seconds": 3600
      }
    },
    "/v1/rug-check/security": {
      "get": {
        "operationId": "getRugCheckSecurity",
        "tags": [
          "Screener"
        ],
        "summary": "Rug Check token security",
        "description": "Returns token contract security and liquidity risk signals, and the Rug Check score computed from them with the token's market and holder data: `score` (0-100, verdict, completeness, engine version, reasons) and `checks`, the same score and rows the /rug-check page shows. When GoPlus (the security provider) is unavailable, the answer is the token's last good record (`stale: true`, `dataAsOf`, at most 7 days old); without one, on Ethereum, BNB Smart Chain and Base, a partial record from Honeypot.is (`partial: true`: only `isHoneypot` is known); otherwise 503 with Retry-After. GoPlus throttling is never answered 429, which is your own rate limit.",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "description": "Token contract address.",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "chainId",
            "in": "query",
            "description": "EVM chain ID (1 Ethereum, 56 BNB Smart Chain, 8453 Base, 42161 Arbitrum, 137 Polygon, 10 Optimism, 43114 Avalanche, 146 Sonic, 80094 Berachain, and 29 more), or 1399811149 for Solana and 728126428 for Tron. An unsupported chain returns 400.",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Rug-check security data returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RugCheckSecurityResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "rug_check_inputs",
        "x-freshness-sla-seconds": 300
      }
    },
    "/v1/rug-check/trending": {
      "get": {
        "operationId": "getRugCheckTrending",
        "tags": [
          "Screener"
        ],
        "summary": "Rug Check trending tokens",
        "description": "Returns trending tokens suitable for rug-check review.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum tokens to return.",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Trending tokens returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RugCheckTrendingResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "rug_check_trending",
        "x-freshness-sla-seconds": 1800
      }
    },
    "/v1/rwa-perps/rates": {
      "get": {
        "operationId": "getRwaPerpRates",
        "tags": [
          "Derivatives"
        ],
        "summary": "RWA perp funding rates",
        "description": "Returns funding and carry for RWA perpetuals across 13 registry-driven venues: CEXs, perp DEXs and Hyperliquid HIP-3 builder markets. Rates are interval-true and mechanism-true: funding_apr annualizes each market's reported settlement interval, while both-sides rollover is reported as borrow_apr_annual and never mixed into funding spreads. The default payload omits venue-internal metadata. type=history returns stored session-tagged settlements (market / after_hours / weekend / holiday) for Hyperliquid (the trade.xyz HIP-3 dex) and Kraken only, stored from 2026-07-28; no other venue's settlement history is served. type=stats returns trusted, canonical-market carry/spread/OI aggregates and freshness: best carry is trailing-24h realised funding, spreads use only comparable funding (funding_status live or zero), and weekendPremiumApr is the mean annualized weekend settlement minus the mean weekday (market and after-hours) settlement over the trailing 7 days of the stored Hyperliquid (trade.xyz) and Kraken settlements, each settlement weighted equally (not OI-weighted, not market-wide).",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "Type of rwa-perp data to retrieve.",
            "schema": {
              "default": "current",
              "type": "string",
              "enum": [
                "current",
                "history",
                "stats"
              ]
            }
          },
          {
            "name": "symbol",
            "in": "query",
            "description": "Underlying ticker (e.g. TSLA, XAU, US500), case-insensitive. Required when type=history. GOOG and GOOGL are distinct share classes.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "venue",
            "in": "query",
            "description": "Filter to a single venue, case-insensitive (e.g. Binance, Bybit, OKX, Kraken, Aster, Lighter, Pacifica, or the Hyperliquid HIP-3 builder venue: Hyperliquid). The venue list is registry-driven and grows over time; an unknown venue is a 400 that names the valid ones.",
            "schema": {
              "type": "string",
              "maxLength": 32
            }
          },
          {
            "name": "days",
            "in": "query",
            "description": "Days of settlement history to retrieve (type=history only).",
            "schema": {
              "default": 7,
              "type": "integer",
              "minimum": 1,
              "maximum": 90
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of records to return per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque pagination cursor from a previous response.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Stock-perp funding data returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RwaPerpRatesResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Data-Source": {
                "$ref": "#/components/headers/X-Data-Source"
              },
              "X-Data-Stale": {
                "$ref": "#/components/headers/X-Data-Stale"
              },
              "X-Data-As-Of": {
                "$ref": "#/components/headers/X-Data-As-Of"
              },
              "X-Freshness-Sla-Seconds": {
                "$ref": "#/components/headers/X-Freshness-Sla-Seconds"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": {
          "by": "type",
          "map": {
            "current": "rwa_perp_rates_current",
            "stats": "rwa_perp_rates_current"
          }
        },
        "x-freshness-sla-seconds": {
          "by": "type",
          "map": {
            "current": 3600,
            "stats": 3600
          }
        }
      }
    },
    "/v1/stablecoins/data": {
      "get": {
        "operationId": "getStablecoinsData",
        "tags": [
          "Market Data"
        ],
        "summary": "Stablecoins data",
        "description": "Returns hourly stablecoin overview, detail, or yield data with nominal supply at peg, live marked value, nullable peg metrics, chain supply/TVL ratios, velocity coverage, freshness, and APY risk flags. NAV-accrual assets do not receive fixed-$1 depeg scores; ambiguous same-symbol yield pools are omitted.",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "Payload type.",
            "schema": {
              "default": "overview",
              "type": "string",
              "enum": [
                "overview",
                "detail",
                "yields"
              ]
            }
          },
          {
            "name": "slug",
            "in": "query",
            "description": "Stablecoin slug. Required when type=detail.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Stablecoins data returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StablecoinsDataResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Data-Partial": {
                "description": "Present with value true when a degraded component or FX fallback makes the overview or yields snapshot partial.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "stablecoins",
        "x-freshness-sla-seconds": 7200
      }
    },
    "/v1/tracker/market-overview": {
      "get": {
        "operationId": "getMarketOverview",
        "tags": [
          "Market Data"
        ],
        "summary": "Market overview",
        "description": "Returns the latest BTC and ETH prices and 24h changes, Fear & Greed Index, total crypto market cap, 24h volume, BTC dominance, market-cap change, and snapshot timestamp. Auxiliary metrics are nullable when unavailable.",
        "parameters": [
          {
            "$ref": "#/components/parameters/FormatParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Market overview returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketOverviewResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "sectors",
        "x-freshness-sla-seconds": 21600
      }
    },
    "/v1/usage": {
      "get": {
        "operationId": "getUsage",
        "tags": [
          "Account"
        ],
        "summary": "API usage and quota",
        "description": "Returns your current plan tier, rate limits, monthly quota usage, and a breakdown of requests by endpoint over the last 24 hours.",
        "responses": {
          "200": {
            "description": "Usage data returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        }
      }
    },
    "/v1/web-traffic/data": {
      "get": {
        "operationId": "getWebTrafficData",
        "tags": [
          "Market Data"
        ],
        "summary": "Web traffic data",
        "description": "Returns CoinGecko watchlist rankings and snapshots, or market-level signals, for coins, narratives, and exchanges. No web-traffic (site visits) data is measured. Exchange rankings carry CoinGecko trust score, trust rank, and 24h BTC volume; coin and narrative rankings carry watchlist and up-vote readings.",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "Entity type.",
            "schema": {
              "default": "exchange",
              "type": "string",
              "enum": [
                "exchange",
                "coin",
                "narrative"
              ]
            }
          },
          {
            "name": "mode",
            "in": "query",
            "description": "Payload mode.",
            "schema": {
              "default": "rankings",
              "type": "string",
              "enum": [
                "rankings",
                "snapshots",
                "market"
              ]
            }
          },
          {
            "name": "tf",
            "in": "query",
            "description": "Requested history lookback for snapshots. The route clamps to available history when the requested range is unavailable.",
            "schema": {
              "default": "30d",
              "type": "string",
              "enum": [
                "7d",
                "30d",
                "90d",
                "1y",
                "3y",
                "all"
              ]
            }
          },
          {
            "name": "entities",
            "in": "query",
            "description": "Comma-separated entity IDs for snapshots.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sub",
            "in": "query",
            "description": "Market dataset to return. Required when mode=market; ignored by other modes.",
            "schema": {
              "type": "string",
              "enum": [
                "trending",
                "categories",
                "global"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Web traffic data returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebTrafficDataResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-dataset": "web_traffic",
        "x-freshness-sla-seconds": 172800
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Pass your API key as a Bearer token in the Authorization header: `Authorization: Bearer sk_live_...`"
      },
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Alternatively, pass your API key via the X-API-Key header."
      }
    },
    "parameters": {
      "ArbitrageCoinParam": {
        "name": "coin",
        "in": "query",
        "description": "Optional base coin ticker, for example BTC, ETH, or SOL.",
        "schema": {
          "type": "string",
          "minLength": 1
        }
      },
      "ArbitrageExchangesParam": {
        "name": "exchanges",
        "in": "query",
        "description": "Comma-separated exchange filter, for example Binance,Bybit,OKX.",
        "schema": {
          "type": "string"
        }
      },
      "ArbitrageMinAprParam": {
        "name": "minApr",
        "in": "query",
        "description": "Minimum of the board's ranking figure, in percentage points: `netAprPct` on the dated basis board, `netRollApyPct` on the calendar board, `netCarryAprPct` (the fee-adjusted annualized net carry, not the edge to expiry) on the perp-dated carry board, `netProfitPct` (per trip, not annualized) on the CEX transfer board.",
        "schema": {
          "type": "number"
        }
      },
      "ArbitrageMinDepthUsdParam": {
        "name": "minDepthUsd",
        "in": "query",
        "description": "Minimum executable depth in USD when available.",
        "schema": {
          "type": "number",
          "minimum": 0
        }
      },
      "ArbitrageNotionalParam": {
        "name": "notional",
        "in": "query",
        "description": "Position notional in USD. On the dated-futures basis, calendar-spread and perp-dated carry scanners a row is executable only when its book depth (level 1 on the stored snapshot; on a live read a top-20 walk where level 1 is thin, the side then priced at that walk's VWAP), any reported open interest and its 24h volume are at least this notional (and its quotes are at most 10 minutes old). The CEX spot transfer scanner sizes its order-book fills with it.",
        "schema": {
          "default": 10000,
          "type": "number",
          "minimum": 0,
          "exclusiveMinimum": true,
          "maximum": 1000000000
        }
      },
      "LimitParam": {
        "name": "limit",
        "in": "query",
        "description": "Maximum number of rows returned.",
        "schema": {
          "default": 100,
          "type": "integer",
          "minimum": 1,
          "maximum": 1000
        }
      },
      "CursorParam": {
        "name": "cursor",
        "in": "query",
        "description": "Opaque cursor from the previous page.",
        "schema": {
          "type": "string"
        }
      },
      "FormatParam": {
        "name": "format",
        "in": "query",
        "description": "Response format. When set to \"csv\", the response Content-Type is text/csv instead of JSON.",
        "schema": {
          "default": "json",
          "type": "string",
          "enum": [
            "json",
            "csv"
          ]
        }
      },
      "ArbitrageMinOiUsdParam": {
        "name": "minOiUsd",
        "in": "query",
        "description": "Minimum open interest in USD.",
        "schema": {
          "type": "number",
          "minimum": 0
        }
      },
      "ArbitrageMinVolumeUsdParam": {
        "name": "minVolumeUsd",
        "in": "query",
        "description": "Minimum 24h futures or spot volume in USD.",
        "schema": {
          "type": "number",
          "minimum": 0
        }
      },
      "ArbitrageMarginTypeParam": {
        "name": "marginType",
        "in": "query",
        "description": "Futures margin filter.",
        "schema": {
          "type": "string",
          "enum": [
            "linear",
            "inverse",
            "both"
          ]
        }
      },
      "SettlementWindowParam": {
        "name": "window",
        "in": "query",
        "description": "Settlement window. `current` is the next 24 hours of funding at current rates (each contract's forward rate x 24 / its own interval hours, priced live off open interest) and labelled `estimated`. `1d`/`3d`/`7d` are realised windows from the funding_fee_settlement matview.",
        "schema": {
          "default": "current",
          "type": "string",
          "enum": [
            "current",
            "1d",
            "3d",
            "7d"
          ]
        }
      },
      "SettlementClassParam": {
        "name": "class",
        "in": "query",
        "description": "Asset-class scope, the same categories as the funding board: `all`, `crypto`, `equity`, `commodity`, `fx` or `index` (one `asset_class` each). `rwa` is every non-crypto class at once (equity + commodity + fx + index). In the `totals` block the five classes, and `crypto` + `rwa`, reconcile exactly to `all`.",
        "schema": {
          "default": "all",
          "type": "string",
          "enum": [
            "all",
            "crypto",
            "equity",
            "commodity",
            "fx",
            "index",
            "rwa"
          ]
        }
      },
      "SettlementCoinParam": {
        "name": "coin",
        "in": "query",
        "description": "Comma-separated coins, for example BTC,ETH. Each names an asset as on /funding/rates: full names resolve (bitcoin -> BTC) and a ticker brings its lot spellings (PEPE -> PEPE, 1000PEPE, KPEPE), each still its own row. Unfiltered by default.",
        "schema": {
          "type": "string"
        }
      },
      "SettlementExchangeParam": {
        "name": "exchange",
        "in": "query",
        "description": "Filter to coins settling on a single venue. Accepts the slug, the display name as returned in the `venues[].exchange` field, or the ccxt id. The venue registry is not frozen, so read the `sharpe://exchanges` MCP resource or /api/funding/rates for the current list. An unrecognized value returns 400. Implies the per-venue breakdown internally; the response still omits `venues` unless `expand=venues` is also set.",
        "schema": {
          "type": "string",
          "maxLength": 32
        }
      },
      "SettlementOffsetParam": {
        "name": "offset",
        "in": "query",
        "description": "Zero-based row offset for pagination.",
        "schema": {
          "default": 0,
          "type": "integer",
          "minimum": 0
        }
      },
      "SettlementSortParam": {
        "name": "sort",
        "in": "query",
        "description": "Sort field for the selected `window`, optionally prefixed with \"-\" for descending. Rows with no value for the sort field (an unpriced coin) always sort last, regardless of direction.",
        "schema": {
          "type": "string",
          "enum": [
            "base_coin",
            "net",
            "long_paid",
            "short_paid",
            "open_interest_usd",
            "-base_coin",
            "-net",
            "-long_paid",
            "-short_paid",
            "-open_interest_usd"
          ]
        }
      },
      "SettlementExpandParam": {
        "name": "expand",
        "in": "query",
        "description": "Set to `venues` to include each row's per-venue breakdown. Omitted by default to keep the default payload small.",
        "schema": {
          "type": "string",
          "enum": [
            "venues"
          ]
        }
      }
    },
    "schemas": {
      "ApiMeta": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "description": "Unique request identifier.",
            "example": "req_a1b2c3d4e5f6g7h8i9j0"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "ISO 8601 timestamp of the response."
          },
          "elapsed_ms": {
            "type": "integer",
            "minimum": 0,
            "description": "Server processing time in milliseconds."
          },
          "dataset_id": {
            "type": "string",
            "enum": [
              "funding_rates_current",
              "funding_rates_history",
              "funding_accumulated",
              "funding_fee_settlement",
              "global_overview_snapshot",
              "futures_open_interest",
              "futures_basis",
              "futures_term_structure",
              "futures_liquidations",
              "futures_long_short_ratio",
              "futures_ohlcv",
              "futures_coins",
              "rwa_perp_rates_current",
              "arbitrage_tickers",
              "arbitrage_boards",
              "arbitrage_dated_quotes",
              "narratives",
              "ecosystems",
              "memecoins",
              "mindshare",
              "sectors",
              "chains",
              "sector_coins",
              "chain_coins",
              "gem_finder",
              "web_traffic",
              "heatmap_cache",
              "stablecoins",
              "news",
              "listings",
              "memecoin_launches",
              "rug_check_inputs",
              "rug_check_trending",
              "pump_dump",
              "insider_pressure",
              "price_prediction_inputs",
              "correlation_prices",
              "market_cap_search",
              "coingecko_coin_list",
              "boros_markets",
              "margin_borrow_rates"
            ],
            "description": "The dataset the answer is read from; /v1/meta/coverage lists each product's datasets with their cadence and SLA."
          },
          "as_of": {
            "nullable": true,
            "type": "string",
            "format": "date-time",
            "description": "When the data was current: the dataset's own time (the newest live row, the snapshot or refresh time, the fetch time), not the response time. Null when unknown."
          },
          "stale_after": {
            "nullable": true,
            "type": "string",
            "format": "date-time",
            "description": "`as_of` plus the freshness SLA: after this instant the data is stale, whenever the body is read (a cached copy can be re-judged against it)."
          },
          "freshness_sla_seconds": {
            "type": "number",
            "description": "Seconds after `as_of` the data stays fresh: the writer's cadence plus one skipped run."
          },
          "freshness_status": {
            "type": "string",
            "enum": [
              "fresh",
              "stale",
              "unknown"
            ],
            "description": "`fresh` within the SLA at `generated_at`, `stale` past it, `unknown` when `as_of` is null."
          },
          "runtime_status": {
            "type": "string",
            "enum": [
              "ok",
              "degraded"
            ],
            "description": "`degraded` when this read was incomplete: a leg timed out or failed, a row budget was hit, or a fallback answered. Degraded answers are never cached."
          },
          "served_from": {
            "type": "string",
            "enum": [
              "snapshot",
              "table",
              "matview",
              "live",
              "last-good"
            ],
            "description": "Where the rows came from: a precomputed snapshot, a table or materialized view, the upstream on request, or the server's last good answer."
          },
          "generated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When this answer was built (the instant `freshness_status` is judged at)."
          },
          "source": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The upstream sources behind the rows (source ids such as `binance`, `coingecko`)."
          },
          "coverage": {
            "type": "object",
            "properties": {
              "expected": {
                "type": "number"
              },
              "used": {
                "type": "number"
              },
              "dropped": {
                "type": "object",
                "additionalProperties": {
                  "type": "number"
                }
              },
              "missing": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "expected",
              "used",
              "dropped"
            ],
            "description": "How complete the stored data is (never whether it is cached): `used` of `expected` inputs counted; `dropped` counts the rest by reason (a halted market is `not_live`, outside `expected`); `missing` names the late ones when known."
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "What the read could not do, in words (an unreadable table, a late writer)."
          },
          "truncated": {
            "type": "boolean",
            "description": "True when a row budget cut the answer short."
          }
        },
        "required": [
          "request_id",
          "timestamp",
          "elapsed_ms"
        ]
      },
      "SuccessEnvelope": {
        "type": "object",
        "properties": {
          "data": {
            "description": "Endpoint-specific response payload. See the operation response schema."
          },
          "meta": {
            "$ref": "#/components/schemas/ApiMeta"
          }
        },
        "required": [
          "data",
          "meta"
        ]
      },
      "PaginationInfo": {
        "type": "object",
        "properties": {
          "cursor": {
            "nullable": true,
            "type": "string"
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "cursor",
          "has_more",
          "total"
        ]
      },
      "PaginatedEnvelope": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {},
            "description": "Endpoint-specific result items."
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationInfo"
          },
          "meta": {
            "$ref": "#/components/schemas/ApiMeta"
          }
        },
        "required": [
          "data",
          "pagination",
          "meta"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "description": "URI identifying the error type.",
            "example": "https://www.sharpe.ai/errors/invalid_parameter"
          },
          "title": {
            "type": "string",
            "description": "Short human-readable summary.",
            "example": "Invalid Parameter"
          },
          "status": {
            "type": "integer",
            "description": "HTTP status code.",
            "example": 400
          },
          "detail": {
            "type": "string",
            "description": "Human-readable explanation specific to this occurrence.",
            "example": "Invalid parameter \"coin\": must not be empty"
          },
          "request_id": {
            "type": "string",
            "description": "Unique request identifier for support reference.",
            "example": "req_a1b2c3d4e5f6g7h8i9j0"
          },
          "doc_url": {
            "type": "string",
            "format": "uri",
            "description": "Link to the relevant documentation page for troubleshooting.",
            "example": "https://www.sharpe.ai/docs/errors#error-codes"
          },
          "suggested_action": {
            "type": "string",
            "description": "Actionable suggestion for resolving the error.",
            "example": "Check the 'coin' parameter value and ensure it is a valid ticker symbol."
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "request_id",
          "doc_url",
          "suggested_action"
        ],
        "description": "Error response following RFC 9457 (Problem Details for HTTP APIs)."
      },
      "StablecoinChainSupply": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "share": {
            "type": "number"
          },
          "value": {
            "type": "number"
          }
        },
        "required": [
          "name",
          "share",
          "value"
        ]
      },
      "StablecoinTopChain": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "share": {
            "type": "number"
          }
        },
        "required": [
          "name",
          "share"
        ]
      },
      "StablecoinPegStability": {
        "type": "object",
        "properties": {
          "inside_0_1": {
            "type": "number"
          },
          "inside_0_5": {
            "type": "number"
          },
          "inside_1_0": {
            "type": "number"
          },
          "sampleCount": {
            "type": "integer"
          },
          "earliestSampleAt": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "inside_0_1",
          "inside_0_5",
          "inside_1_0",
          "sampleCount",
          "earliestSampleAt"
        ]
      },
      "StablecoinItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "detailId": {
            "nullable": true,
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "peg": {
            "type": "string",
            "enum": [
              "USD",
              "XAU",
              "EUR",
              "GBP",
              "JPY",
              "CNY",
              "CHF",
              "CAD",
              "AUD",
              "MXN",
              "SGD",
              "TRY",
              "BRL",
              "OTHER"
            ]
          },
          "mechanism": {
            "type": "string",
            "enum": [
              "fiat-backed",
              "crypto-backed",
              "algorithmic",
              "yield-bearing",
              "rwa-backed",
              "other"
            ]
          },
          "priceModel": {
            "type": "string",
            "enum": [
              "fixed-peg",
              "nav-accrual",
              "unknown"
            ]
          },
          "yieldBearing": {
            "type": "boolean"
          },
          "image": {
            "nullable": true,
            "type": "string"
          },
          "price": {
            "nullable": true,
            "type": "number"
          },
          "pegDeviationPct": {
            "nullable": true,
            "description": "Signed deviation of the price from the reference peg, in percent: negative below the peg (a discount), positive above it. Rank depegs by its absolute value. Null for NAV-accrual and unclassified yield tokens, or without a usable price or FX rate.",
            "type": "number"
          },
          "pegQuality": {
            "nullable": true,
            "description": "`measured` when 24h volume is at least $10K and the price at most 6 h old; otherwise `indicative` (an illiquid or stale print, shown and ranked after the measured deviations). Null when there is no deviation.",
            "type": "string",
            "enum": [
              "measured",
              "indicative"
            ]
          },
          "volume24hUsd": {
            "nullable": true,
            "description": "Trailing 24h trading volume in USD over the venues CoinGecko tracks; null when CoinGecko does not list the coin.",
            "type": "number"
          },
          "priceUpdatedAt": {
            "nullable": true,
            "description": "Newest time the price can be vouched for (ISO 8601); null when neither CoinGecko's quote time nor the DeFi Llama snapshot stamp is known.",
            "format": "date-time",
            "type": "string"
          },
          "nominalSupplyValue": {
            "type": "number"
          },
          "markedMarketValue": {
            "nullable": true,
            "type": "number"
          },
          "marketCap": {
            "type": "number",
            "description": "Use nominalSupplyValue.",
            "deprecated": true
          },
          "circulating": {
            "type": "number",
            "description": "USD value, not a token count: circulating units translated to USD at the peg's FX rate, the same number as nominalSupplyValue (equal to the unit count only for USD pegs; a EUR or gold peg reads its supply times the EUR or gold rate). Divide by the peg rate for units."
          },
          "change24hUsd": {
            "nullable": true,
            "type": "number"
          },
          "change7dUsd": {
            "nullable": true,
            "type": "number"
          },
          "change30dUsd": {
            "nullable": true,
            "type": "number"
          },
          "change24h": {
            "nullable": true,
            "type": "number"
          },
          "change7d": {
            "nullable": true,
            "type": "number"
          },
          "change30d": {
            "nullable": true,
            "type": "number"
          },
          "chainCount": {
            "type": "integer"
          },
          "dominance": {
            "type": "number"
          },
          "chainSupplies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinChainSupply"
            }
          },
          "topChains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinTopChain"
            }
          },
          "velocity": {
            "nullable": true,
            "type": "number"
          },
          "velocityNonEvmSharePct": {
            "type": "number"
          },
          "velocityCoveragePct": {
            "type": "number"
          },
          "velocityUnavailableReason": {
            "nullable": true,
            "type": "string"
          },
          "pegStability30d": {
            "$ref": "#/components/schemas/StablecoinPegStability"
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "symbol",
          "peg",
          "mechanism",
          "priceModel",
          "yieldBearing",
          "image",
          "price",
          "pegDeviationPct",
          "nominalSupplyValue",
          "markedMarketValue",
          "marketCap",
          "circulating",
          "change24h",
          "change7d",
          "change30d",
          "chainCount",
          "dominance",
          "topChains"
        ]
      },
      "StablecoinHistoryPoint": {
        "type": "object",
        "properties": {
          "t": {
            "type": "integer",
            "format": "int64"
          },
          "v": {
            "type": "number"
          }
        },
        "required": [
          "t",
          "v"
        ]
      },
      "StablecoinDailyNetIssuancePoint": {
        "type": "object",
        "properties": {
          "t": {
            "type": "integer",
            "format": "int64"
          },
          "net": {
            "type": "number"
          }
        },
        "required": [
          "t",
          "net"
        ]
      },
      "StablecoinYieldPool": {
        "type": "object",
        "properties": {
          "project": {
            "type": "string"
          },
          "chain": {
            "type": "string"
          },
          "poolMeta": {
            "nullable": true,
            "type": "string"
          },
          "apy": {
            "type": "number"
          },
          "apyBase": {
            "nullable": true,
            "type": "number"
          },
          "apyReward": {
            "nullable": true,
            "type": "number"
          },
          "apyPct7D": {
            "nullable": true,
            "type": "number"
          },
          "tvlUsd": {
            "type": "number"
          }
        },
        "required": [
          "project",
          "chain",
          "poolMeta",
          "apy",
          "apyBase",
          "apyReward",
          "apyPct7D",
          "tvlUsd"
        ]
      },
      "StablecoinYieldRow": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "stablecoinId": {
            "nullable": true,
            "type": "string"
          },
          "detailId": {
            "nullable": true,
            "type": "string"
          },
          "bestApy": {
            "type": "number"
          },
          "bestApyBase": {
            "nullable": true,
            "type": "number"
          },
          "bestApyReward": {
            "nullable": true,
            "type": "number"
          },
          "bestApyPct7D": {
            "nullable": true,
            "type": "number"
          },
          "bestProject": {
            "type": "string"
          },
          "bestChain": {
            "type": "string"
          },
          "bestPoolMeta": {
            "nullable": true,
            "type": "string"
          },
          "bestTvlUsd": {
            "type": "number"
          },
          "bestRiskFlag": {
            "nullable": true,
            "type": "string"
          },
          "pools": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinYieldPool"
            }
          }
        },
        "required": [
          "symbol",
          "slug",
          "bestApy",
          "bestApyBase",
          "bestApyReward",
          "bestApyPct7D",
          "bestProject",
          "bestChain",
          "bestPoolMeta",
          "bestTvlUsd",
          "bestRiskFlag",
          "pools"
        ]
      },
      "StablecoinYieldsCache": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinYieldRow"
            }
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "degraded": {
            "type": "boolean"
          },
          "lastSuccessfulAt": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "lastAttemptAt": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "degradedReason": {
            "nullable": true,
            "type": "string",
            "enum": [
              "upstream-empty",
              "partial-result"
            ]
          }
        },
        "required": [
          "rows",
          "updatedAt"
        ]
      },
      "StablecoinsAggregate": {
        "type": "object",
        "properties": {
          "totalMarketCap": {
            "type": "number"
          },
          "change24h": {
            "nullable": true,
            "type": "number"
          },
          "change7d": {
            "nullable": true,
            "type": "number"
          },
          "change30d": {
            "nullable": true,
            "type": "number"
          },
          "mechanismSplit": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "mechanism": {
                  "type": "string"
                },
                "share": {
                  "type": "number"
                },
                "mcap": {
                  "type": "number"
                }
              },
              "required": [
                "mechanism",
                "share",
                "mcap"
              ]
            }
          },
          "assetConcentration": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "share": {
                  "type": "number"
                },
                "mcap": {
                  "type": "number"
                }
              },
              "required": [
                "name",
                "share",
                "mcap"
              ]
            }
          },
          "issuerSplit": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "share": {
                  "type": "number"
                },
                "mcap": {
                  "type": "number"
                }
              },
              "required": [
                "name",
                "share",
                "mcap"
              ]
            }
          },
          "count": {
            "type": "integer"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "totalMarketCap",
          "change24h",
          "change7d",
          "change30d",
          "mechanismSplit",
          "assetConcentration",
          "issuerSplit",
          "count",
          "updatedAt"
        ]
      },
      "StablecoinChainRow": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "trackerId": {
            "nullable": true,
            "type": "string"
          },
          "totalUSD": {
            "type": "number"
          },
          "share": {
            "type": "number"
          }
        },
        "required": [
          "name",
          "trackerId",
          "totalUSD",
          "share"
        ]
      },
      "StablecoinOverviewPayload": {
        "type": "object",
        "properties": {
          "aggregate": {
            "$ref": "#/components/schemas/StablecoinsAggregate"
          },
          "universeItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinItem"
            }
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinItem"
            }
          },
          "history90d": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinHistoryPoint"
            }
          },
          "history365d": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinHistoryPoint"
            }
          },
          "dailyNetIssuance90d": {
            "description": "Daily net issuance in USD per UTC day (`t`, unix seconds), like for like: the day's change in supply at peg less any stablecoin DeFi Llama starts or stops charting that day. Differencing `history90d` counts those coins as mints and redemptions.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinDailyNetIssuancePoint"
            }
          },
          "fxFallbackCoins": {
            "type": "integer"
          },
          "chains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinChainRow"
            }
          },
          "degradedComponents": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "componentUpdatedAt": {
            "type": "object",
            "properties": {
              "overview": {
                "nullable": true,
                "type": "string",
                "format": "date-time"
              },
              "history": {
                "nullable": true,
                "type": "string",
                "format": "date-time"
              },
              "chains": {
                "nullable": true,
                "type": "string",
                "format": "date-time"
              },
              "details": {
                "nullable": true,
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "history",
              "chains",
              "details"
            ]
          },
          "componentSources": {
            "type": "object",
            "properties": {
              "overview": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "history": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "chains": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "details": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "overview",
              "history",
              "chains",
              "details"
            ]
          },
          "lastAttemptAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Oldest contributing component timestamp; retained components prevent partial refreshes from advancing it."
          },
          "partial": {
            "type": "boolean"
          },
          "source": {
            "type": "string",
            "enum": [
              "DeFiLlama"
            ]
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "DeFiLlama",
                "CoinGecko",
                "Supabase"
              ]
            }
          },
          "as_of": {
            "type": "string",
            "format": "date-time",
            "description": "Oldest contributing component timestamp for the served snapshot."
          },
          "stale": {
            "type": "boolean"
          },
          "cache_age_seconds": {
            "type": "integer",
            "minimum": 0
          },
          "freshness_sla_seconds": {
            "type": "integer",
            "enum": [
              3600
            ]
          }
        },
        "required": [
          "aggregate",
          "items",
          "history90d",
          "history365d",
          "chains",
          "updatedAt",
          "partial",
          "source",
          "sources",
          "as_of",
          "stale",
          "cache_age_seconds",
          "freshness_sla_seconds"
        ]
      },
      "StablecoinChainBreakdown": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string"
          },
          "trackerId": {
            "nullable": true,
            "type": "string"
          },
          "circulating": {
            "type": "number",
            "description": "USD value of the stablecoin's supply on this chain (units translated at the peg's FX rate), not a token count."
          },
          "share": {
            "type": "number"
          },
          "supplyTvlRatioPct": {
            "nullable": true,
            "type": "number"
          },
          "tvlShare": {
            "nullable": true,
            "deprecated": true,
            "type": "number"
          }
        },
        "required": [
          "chain",
          "trackerId",
          "circulating",
          "share"
        ]
      },
      "StablecoinChainHistory": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string"
          },
          "trackerId": {
            "nullable": true,
            "type": "string"
          },
          "points": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinHistoryPoint"
            }
          }
        },
        "required": [
          "chain",
          "trackerId",
          "points"
        ]
      },
      "StablecoinMintBurnPoint": {
        "type": "object",
        "properties": {
          "bucketDate": {
            "type": "string",
            "format": "date"
          },
          "mintsUsd": {
            "type": "number"
          },
          "burnsUsd": {
            "type": "number"
          },
          "netUsd": {
            "type": "number"
          }
        },
        "required": [
          "bucketDate",
          "mintsUsd",
          "burnsUsd",
          "netUsd"
        ]
      },
      "StablecoinBridgeFlowRow": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string"
          },
          "trackerId": {
            "nullable": true,
            "type": "string"
          },
          "chainDeltaUsd": {
            "type": "number"
          },
          "netBridgeFlowUsd": {
            "type": "number"
          },
          "direction": {
            "type": "string",
            "enum": [
              "inbound",
              "outbound",
              "flat",
              "mint-dominated",
              "burn-dominated"
            ]
          }
        },
        "required": [
          "chain",
          "trackerId",
          "chainDeltaUsd",
          "netBridgeFlowUsd",
          "direction"
        ]
      },
      "StablecoinDetailPayload": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "peg": {
            "type": "string",
            "enum": [
              "USD",
              "XAU",
              "EUR",
              "GBP",
              "JPY",
              "CNY",
              "CHF",
              "CAD",
              "AUD",
              "MXN",
              "SGD",
              "TRY",
              "BRL",
              "OTHER"
            ]
          },
          "mechanism": {
            "type": "string",
            "enum": [
              "fiat-backed",
              "crypto-backed",
              "algorithmic",
              "yield-bearing",
              "rwa-backed",
              "other"
            ]
          },
          "priceModel": {
            "type": "string",
            "enum": [
              "fixed-peg",
              "nav-accrual",
              "unknown"
            ]
          },
          "yieldBearing": {
            "type": "boolean"
          },
          "image": {
            "nullable": true,
            "type": "string"
          },
          "price": {
            "nullable": true,
            "type": "number"
          },
          "pegDeviationPct": {
            "nullable": true,
            "description": "Signed deviation of the price from the reference peg, in percent: negative below the peg (a discount), positive above it. Rank depegs by its absolute value. Null for NAV-accrual and unclassified yield tokens, or without a usable price or FX rate.",
            "type": "number"
          },
          "pegQuality": {
            "nullable": true,
            "description": "`measured` when 24h volume is at least $10K and the price at most 6 h old; otherwise `indicative` (an illiquid or stale print, shown and ranked after the measured deviations). Null when there is no deviation.",
            "type": "string",
            "enum": [
              "measured",
              "indicative"
            ]
          },
          "volume24hUsd": {
            "nullable": true,
            "description": "Trailing 24h trading volume in USD over the venues CoinGecko tracks; null when CoinGecko does not list the coin.",
            "type": "number"
          },
          "priceUpdatedAt": {
            "nullable": true,
            "description": "Newest time the price can be vouched for (ISO 8601); null when neither CoinGecko's quote time nor the DeFi Llama snapshot stamp is known.",
            "format": "date-time",
            "type": "string"
          },
          "nominalSupplyValue": {
            "type": "number"
          },
          "markedMarketValue": {
            "nullable": true,
            "type": "number"
          },
          "marketCap": {
            "type": "number",
            "deprecated": true
          },
          "circulating": {
            "type": "number",
            "description": "USD value, not a token count: circulating units translated to USD at the peg's FX rate, the same number as nominalSupplyValue (equal to the unit count only for USD pegs; a EUR or gold peg reads its supply times the EUR or gold rate). Divide by the peg rate for units."
          },
          "change24hUsd": {
            "nullable": true,
            "type": "number"
          },
          "change7dUsd": {
            "nullable": true,
            "type": "number"
          },
          "change30dUsd": {
            "nullable": true,
            "type": "number"
          },
          "change24h": {
            "nullable": true,
            "type": "number"
          },
          "change7d": {
            "nullable": true,
            "type": "number"
          },
          "change30d": {
            "nullable": true,
            "type": "number"
          },
          "history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinHistoryPoint"
            }
          },
          "chainBreakdown": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinChainBreakdown"
            }
          },
          "chainHistory": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinChainHistory"
            }
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "url": {
            "nullable": true,
            "format": "uri",
            "type": "string"
          },
          "twitter": {
            "nullable": true,
            "type": "string"
          },
          "auditLinks": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "velocity": {
            "nullable": true,
            "type": "number"
          },
          "velocityNonEvmSharePct": {
            "type": "number"
          },
          "velocityCoveragePct": {
            "type": "number"
          },
          "velocityUnavailableReason": {
            "nullable": true,
            "type": "string"
          },
          "pegStability30d": {
            "$ref": "#/components/schemas/StablecoinPegStability"
          },
          "mintBurn90d": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinMintBurnPoint"
            }
          },
          "bridgeFlow24h": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinBridgeFlowRow"
            }
          },
          "mintRedeemDescription": {
            "nullable": true,
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "source": {
            "type": "string",
            "enum": [
              "DeFiLlama"
            ]
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "DeFiLlama",
                "CoinGecko",
                "Supabase"
              ]
            }
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "stale": {
            "type": "boolean"
          },
          "cache_age_seconds": {
            "type": "integer",
            "minimum": 0
          },
          "freshness_sla_seconds": {
            "type": "integer",
            "enum": [
              3600
            ]
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "symbol",
          "peg",
          "mechanism",
          "priceModel",
          "yieldBearing",
          "image",
          "price",
          "pegDeviationPct",
          "nominalSupplyValue",
          "markedMarketValue",
          "marketCap",
          "circulating",
          "change24h",
          "change7d",
          "change30d",
          "history",
          "chainBreakdown",
          "chainHistory",
          "description",
          "url",
          "twitter",
          "auditLinks",
          "updatedAt",
          "source",
          "sources",
          "as_of",
          "stale",
          "cache_age_seconds",
          "freshness_sla_seconds"
        ]
      },
      "StablecoinYieldsPayload": {
        "type": "object",
        "properties": {
          "yields": {
            "$ref": "#/components/schemas/StablecoinYieldsCache"
          },
          "partial": {
            "type": "boolean"
          },
          "source": {
            "type": "string",
            "enum": [
              "DeFiLlama"
            ]
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "DeFiLlama",
                "CoinGecko",
                "Supabase"
              ]
            }
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "stale": {
            "type": "boolean"
          },
          "cache_age_seconds": {
            "type": "integer",
            "minimum": 0
          },
          "freshness_sla_seconds": {
            "type": "integer",
            "enum": [
              3600
            ]
          }
        },
        "required": [
          "yields",
          "partial",
          "source",
          "sources",
          "as_of",
          "stale",
          "cache_age_seconds",
          "freshness_sla_seconds"
        ]
      },
      "StablecoinsDataPayload": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/StablecoinOverviewPayload"
          },
          {
            "$ref": "#/components/schemas/StablecoinDetailPayload"
          },
          {
            "$ref": "#/components/schemas/StablecoinYieldsPayload"
          }
        ]
      },
      "StablecoinsDataResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/StablecoinsDataPayload"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "DataMeta": {
        "type": "object",
        "properties": {
          "dataset_id": {
            "type": "string"
          },
          "source": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "as_of": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "freshness_status": {
            "type": "string",
            "enum": [
              "fresh",
              "stale",
              "unknown"
            ]
          },
          "cache_status": {
            "type": "string",
            "enum": [
              "live",
              "hit",
              "miss"
            ]
          },
          "runtime_status": {
            "type": "string",
            "enum": [
              "ok",
              "degraded"
            ]
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "required": [
          "dataset_id",
          "source",
          "as_of",
          "freshness_status",
          "cache_status",
          "runtime_status",
          "warnings",
          "truncated"
        ]
      },
      "DatasetPagination": {
        "type": "object",
        "properties": {
          "cursor": {
            "nullable": true,
            "type": "string"
          },
          "has_more": {
            "type": "boolean"
          }
        },
        "required": [
          "cursor",
          "has_more"
        ]
      },
      "AnalyticsFundingCurrentRow": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "base_coin": {
            "type": "string"
          },
          "rate": {
            "type": "number"
          },
          "interval_hours": {
            "type": "number"
          },
          "next_funding_time": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "minProperties": 1
      },
      "AnalyticsFundingAccumulatedRow": {
        "type": "object",
        "properties": {
          "base_coin": {
            "type": "string"
          },
          "exchange": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "acc_1d": {
            "nullable": true,
            "type": "number"
          },
          "acc_7d": {
            "nullable": true,
            "type": "number"
          },
          "acc_30d": {
            "nullable": true,
            "type": "number"
          },
          "acc_90d": {
            "nullable": true,
            "type": "number"
          },
          "acc_1y": {
            "nullable": true,
            "type": "number"
          },
          "settlements_1d": {
            "type": "integer"
          },
          "settlements_7d": {
            "type": "integer"
          },
          "settlements_30d": {
            "type": "integer"
          },
          "settlements_90d": {
            "type": "integer"
          },
          "settlements_1y": {
            "type": "integer"
          }
        },
        "additionalProperties": false,
        "minProperties": 1
      },
      "AnalyticsStablecoinSnapshot": {
        "type": "object",
        "properties": {
          "aggregate": {
            "$ref": "#/components/schemas/StablecoinsAggregate"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinItem"
            }
          },
          "history90d": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinHistoryPoint"
            }
          },
          "history365d": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinHistoryPoint"
            }
          },
          "chains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablecoinChainRow"
            }
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "minProperties": 1
      },
      "AnalyticsFundingCurrentResult": {
        "type": "object",
        "properties": {
          "dataset_id": {
            "type": "string",
            "enum": [
              "funding_rates_current"
            ]
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnalyticsFundingCurrentRow"
            }
          },
          "data_meta": {
            "$ref": "#/components/schemas/DataMeta"
          },
          "pagination": {
            "$ref": "#/components/schemas/DatasetPagination"
          }
        },
        "required": [
          "dataset_id",
          "rows",
          "data_meta",
          "pagination"
        ]
      },
      "AnalyticsFundingAccumulatedResult": {
        "type": "object",
        "properties": {
          "dataset_id": {
            "type": "string",
            "enum": [
              "funding_accumulated"
            ]
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnalyticsFundingAccumulatedRow"
            }
          },
          "data_meta": {
            "$ref": "#/components/schemas/DataMeta"
          },
          "pagination": {
            "$ref": "#/components/schemas/DatasetPagination"
          }
        },
        "required": [
          "dataset_id",
          "rows",
          "data_meta",
          "pagination"
        ]
      },
      "AnalyticsStablecoinsResult": {
        "type": "object",
        "properties": {
          "dataset_id": {
            "type": "string",
            "enum": [
              "stablecoins_metrics"
            ]
          },
          "snapshot": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/AnalyticsStablecoinSnapshot"
              }
            ]
          },
          "data_meta": {
            "$ref": "#/components/schemas/DataMeta"
          },
          "pagination": {
            "$ref": "#/components/schemas/DatasetPagination"
          }
        },
        "required": [
          "dataset_id",
          "snapshot",
          "data_meta",
          "pagination"
        ]
      },
      "AnalyticsQueryResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/AnalyticsFundingCurrentResult"
                  },
                  {
                    "$ref": "#/components/schemas/AnalyticsFundingAccumulatedResult"
                  },
                  {
                    "$ref": "#/components/schemas/AnalyticsStablecoinsResult"
                  }
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "BorrowRateQuote": {
        "type": "object",
        "properties": {
          "venue": {
            "type": "string",
            "description": "Venue display name."
          },
          "hourlyRate": {
            "type": "number",
            "description": "Interest per hour on the borrowed amount, a fraction (0.0000049 = 0.00049% an hour). A venue that publishes a daily rate is divided by 24."
          },
          "annualRate": {
            "type": "number",
            "description": "hourlyRate × 8,760, simple (not compounded), a fraction (0.043 = 4.3% a year)."
          },
          "source": {
            "type": "string",
            "description": "The L0 endpoint contract the rate came from (bybit.spot-margin-data, okx.interest-rate-loan-quota, binance.margin-vip-spec, gate.unified-history-loan-rate)."
          },
          "asOf": {
            "type": "string",
            "format": "date-time",
            "description": "When the venue stamped the rate (Bybit's server time, Gate's rate hour), else when Sharpe fetched it (OKX, Binance)."
          },
          "limit": {
            "nullable": true,
            "description": "The venue's per-account borrow limit for the coin at its entry tier: a cheap rate on a small limit cannot fund a large short. `null` when the venue publishes none (unknown, not unlimited).",
            "type": "object",
            "properties": {
              "amount": {
                "type": "number",
                "description": "The most one account can borrow, in `unit`."
              }
            },
            "required": [
              "amount",
              "unit"
            ]
          }
        },
        "required": [
          "venue",
          "hourlyRate",
          "annualRate",
          "source",
          "asOf",
          "limit"
        ]
      },
      "BorrowRateRow": {
        "type": "object",
        "properties": {
          "coin": {
            "type": "string",
            "description": "Borrowed asset, upper case."
          },
          "rates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BorrowRateQuote"
            },
            "description": "One quote per venue that prices the coin, cheapest first. A venue that does not price the coin is absent, never 0."
          },
          "venueCount": {
            "type": "integer"
          },
          "lowestAnnualRate": {
            "type": "number"
          },
          "lowestVenue": {
            "type": "string"
          },
          "highestAnnualRate": {
            "type": "number"
          },
          "highestVenue": {
            "type": "string"
          }
        },
        "required": [
          "coin",
          "rates",
          "venueCount",
          "lowestAnnualRate",
          "lowestVenue",
          "highestAnnualRate",
          "highestVenue"
        ]
      },
      "BorrowRateVenue": {
        "type": "object",
        "properties": {
          "venue": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "stale",
              "failed",
              "unsupported"
            ],
            "description": "ok: fresh (≤ 5 minutes). stale: the last refresh failed and the last good answer (≤ 15 minutes old) is served. failed: nothing usable, the venue's coins are absent. unsupported: the venue publishes no keyless borrow rate."
          },
          "coins": {
            "type": "integer"
          },
          "fetchedAt": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "reason": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "venue",
          "status",
          "coins",
          "fetchedAt",
          "reason"
        ]
      },
      "BorrowRatesData": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BorrowRateRow"
            }
          },
          "venues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BorrowRateVenue"
            }
          }
        },
        "required": [
          "rows",
          "venues"
        ]
      },
      "BorrowRatesResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/BorrowRatesData"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "CexTransferScan": {
        "type": "object",
        "properties": {
          "coinsScanned": {
            "type": "integer"
          },
          "scannedCoins": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "venuesAnswering": {
            "type": "integer",
            "description": "Selected venues that returned at least one order book and one transfer network."
          },
          "venues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "exchange": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "ok",
                    "not_live",
                    "no_books",
                    "no_networks",
                    "failed"
                  ],
                  "description": "not_live: the venue's public spot ticker shows no live book (left out of coverage); failed/no_books/no_networks make the answer degraded."
                }
              },
              "required": [
                "exchange",
                "status"
              ]
            }
          },
          "routesEvaluated": {
            "type": "integer",
            "description": "Directed (coin, buy venue, sell venue) routes with a computed net: both books fill the notional on one common open network."
          },
          "routesProfitable": {
            "type": "integer",
            "description": "Evaluated routes netting above zero after fees."
          },
          "bestNetPct": {
            "nullable": true,
            "description": "Best net profit over evaluated routes, percent of the notional; null when none was evaluated.",
            "type": "number"
          }
        },
        "required": [
          "coinsScanned",
          "scannedCoins",
          "venuesAnswering",
          "venues",
          "routesEvaluated",
          "routesProfitable",
          "bestNetPct"
        ]
      },
      "ScannerMeta": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "dated-futures-basis",
              "futures-calendar-spread",
              "perp-dated-carry",
              "cex-spot-transfer"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable"
            ]
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "stale": {
            "type": "boolean",
            "description": "True when `updatedAt` is older than `freshnessSlaSeconds`. Each row carries its own `isStale` by the same threshold."
          },
          "freshnessSlaSeconds": {
            "type": "integer",
            "description": "Seconds a row's snapshot stays fresh: 7,200 on the dated basis, calendar and carry boards (the term-structure SLA; the envelope's `freshness_sla_seconds` is 7,200 when the hourly term structure answered and 600 when the 5-minute dated-quotes snapshot did, its `dataset_id` says which), 60 on the CEX transfer board (its order books, the envelope's `freshness_sla_seconds`; transfer networks are judged on 10 minutes per row)."
          },
          "source": {
            "type": "string",
            "enum": [
              "supabase",
              "supabase-stale",
              "live",
              "unavailable"
            ],
            "description": "Where the board's rows came from: the stored hourly term-structure snapshot, a stored snapshot past its SLA, the venues read live (on request, or by the 5-minute dated-quotes snapshot the arbitrage-boards cron writes: then the envelope's `dataset_id` is `arbitrage_dated_quotes` and `served_from` is `snapshot`; always `live` on the CEX transfer board), or nothing. The upstream source ids are in the X-Data-Source header."
          },
          "notionalUsd": {
            "type": "number"
          },
          "rowCount": {
            "type": "integer"
          },
          "supportedCoins": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The coins the board covers: the supported basis coins on the dated boards; the coins the scan fetched on the CEX transfer board."
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "transferScan": {
            "$ref": "#/components/schemas/CexTransferScan"
          }
        },
        "required": [
          "kind",
          "status",
          "generatedAt",
          "updatedAt",
          "stale",
          "freshnessSlaSeconds",
          "source",
          "notionalUsd",
          "rowCount",
          "supportedCoins",
          "warnings"
        ]
      },
      "CexSpotTransferRow": {
        "type": "object",
        "properties": {
          "rank": {
            "type": "integer"
          },
          "coin": {
            "type": "string"
          },
          "buyExchange": {
            "type": "string"
          },
          "sellExchange": {
            "type": "string"
          },
          "buyAsk": {
            "type": "number"
          },
          "sellBid": {
            "type": "number"
          },
          "grossSpreadPct": {
            "type": "number"
          },
          "network": {
            "type": "string"
          },
          "contractAddress": {
            "nullable": true,
            "type": "string"
          },
          "withdrawFee": {
            "type": "number"
          },
          "depositStatus": {
            "type": "string",
            "enum": [
              "Open",
              "Closed"
            ]
          },
          "withdrawStatus": {
            "type": "string",
            "enum": [
              "Open",
              "Closed"
            ]
          },
          "transferEta": {
            "type": "string",
            "description": "Deprecated: `transferConfirmations` as a label (\"15 confs\"), not a time."
          },
          "transferConfirmations": {
            "nullable": true,
            "description": "Deposit confirmations the sell venue waits for on the route's network; null when it does not report them.",
            "type": "integer"
          },
          "depthUsd": {
            "nullable": true,
            "type": "number"
          },
          "slippagePct": {
            "nullable": true,
            "type": "number"
          },
          "netProfitPct": {
            "nullable": true,
            "description": "[VWAP_sell(q - withdrawFee) x (1 - sellTakerFee) - N x (1 + buyTakerFee)] / N, percent of the notional N. At or below zero on near-miss rows (`indicativeReason: below_fees`).",
            "type": "number"
          },
          "buyTakerFeePct": {
            "type": "number",
            "description": "Spot taker fee charged on the buy fill: the venue catalog's own when it reports one, else the shared venue fee table."
          },
          "sellTakerFeePct": {
            "type": "number"
          },
          "spreadLifetimeSeconds": {
            "nullable": true,
            "description": "How long this server instance has seen the route continuously; resets on a cold start or another instance.",
            "type": "number"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "The older of the two order books (quote time)."
          },
          "networkUpdatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "The older of the two venues' transfer-network reads."
          },
          "isStale": {
            "type": "boolean",
            "description": "An order book older than the 60 s quote SLA, or a transfer-network read older than 10 minutes."
          },
          "executionStatus": {
            "type": "string",
            "enum": [
              "executable",
              "indicative"
            ],
            "description": "Executable: fresh books and networks, both books fill the notional, net profit above zero."
          },
          "indicativeReason": {
            "nullable": true,
            "type": "string",
            "enum": [
              "below_fees",
              "stale_quote",
              "stale_network"
            ]
          }
        },
        "required": [
          "rank",
          "coin",
          "buyExchange",
          "sellExchange",
          "buyAsk",
          "sellBid",
          "grossSpreadPct",
          "network",
          "contractAddress",
          "withdrawFee",
          "depositStatus",
          "withdrawStatus",
          "transferEta",
          "transferConfirmations",
          "depthUsd",
          "slippagePct",
          "netProfitPct",
          "buyTakerFeePct",
          "sellTakerFeePct",
          "spreadLifetimeSeconds",
          "updatedAt",
          "networkUpdatedAt",
          "isStale",
          "executionStatus",
          "indicativeReason"
        ]
      },
      "CexSpotTransferResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "rows": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/CexSpotTransferRow"
                    }
                  },
                  "scannerMeta": {
                    "$ref": "#/components/schemas/ScannerMeta"
                  },
                  "pagination": {
                    "nullable": true,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/PaginationInfo"
                      }
                    ]
                  }
                },
                "required": [
                  "rows",
                  "scannerMeta",
                  "pagination"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "CrossExchangeOpportunity": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string"
          },
          "assetClass": {
            "type": "string",
            "enum": [
              "crypto",
              "equity",
              "commodity",
              "fx",
              "index"
            ],
            "description": "Underlying category from the funding book: `crypto`, `equity`, `commodity`, `fx` or `index`. A pair's two legs always share it."
          },
          "longExchange": {
            "type": "string"
          },
          "shortExchange": {
            "type": "string"
          },
          "longRate": {
            "type": "number"
          },
          "shortRate": {
            "type": "number"
          },
          "netFundingRate": {
            "type": "number"
          },
          "apr": {
            "type": "number"
          },
          "grossApr": {
            "type": "number"
          },
          "netApr": {
            "nullable": true,
            "description": "`apr` − (2 perpetual taker fills on each venue at its standard fee + the adverse entry spread) × 365 / 30, a decimal fraction per year. A favourable (negative) spread is never credited. Only on a book-priced spread whose legs are within 20% of each other; else `null`.",
            "type": "number"
          },
          "spreadRate": {
            "nullable": true,
            "description": "The entry price gap between the legs, not a funding spread: (long-leg ask − short-leg bid) ÷ their midpoint, a fraction (from last or mark prices when a book is missing, see `spreadSource`). Positive costs the trade on entry, negative is favourable. The funding spread is `netFundingRate`.",
            "type": "number"
          },
          "spreadSource": {
            "nullable": true,
            "description": "Where `spreadRate` comes from: `book` (both legs' order books), `reference` (last or mark prices), or `null` when either leg has no price.",
            "type": "string",
            "enum": [
              "book",
              "reference"
            ]
          },
          "longAsk": {
            "nullable": true,
            "description": "Best ask on the long venue, per asset unit (the contract's price ÷ its lot multiplier: a 1000PEPE contract's ask ÷ 1000).",
            "type": "number"
          },
          "shortBid": {
            "nullable": true,
            "description": "Best bid on the short venue, per asset unit.",
            "type": "number"
          },
          "executableDepthUsd": {
            "nullable": true,
            "description": "Top-of-book depth in USD the entry can fill: the smallest of the long venue's ask size and the short venue's bid size among the legs that report one. When only one venue reports depth it is that leg's figure, an upper bound, and the row is `indicative` (`no_depth`, or `thin_book` when it is under $10,000); `null` when neither venue reports depth (`no_depth`).",
            "type": "number"
          },
          "holdingDays": {
            "type": "number"
          },
          "executionStatus": {
            "type": "string",
            "enum": [
              "executable",
              "indicative"
            ],
            "description": "Whether the row can be traded on the figures shown. \"executable\" needs a book-priced spread (spreadSource \"book\"), leg prices within 5% of each other, both quotes within the board's 10-minute SLA at the time of the request, no leg reporting open interest under $10,000, and top-of-book depth REPORTED by both venues and at least $10,000 (unknown depth is not evidence of a fill). Anything else is \"indicative\" with `indicativeReason`; past a 20% gap the legs read as two instruments and `netApr` is null. Indicative rows keep every figure and sort below executable ones: first those whose only gap is unreported depth (`no_depth`), then the rest."
          },
          "oiLong": {
            "nullable": true,
            "type": "number"
          },
          "oiShort": {
            "nullable": true,
            "type": "number"
          },
          "volumeLong24hUsd": {
            "nullable": true,
            "description": "24h perp turnover in USD on the long venue; `null` when the venue does not report it.",
            "type": "number"
          },
          "volumeShort24hUsd": {
            "nullable": true,
            "description": "24h perp turnover in USD on the short venue; `null` when the venue does not report it.",
            "type": "number"
          },
          "nextSettlement": {
            "nullable": true,
            "description": "The sooner of the two legs' next settlements; each leg's own is `longNextSettlement` / `shortNextSettlement`.",
            "type": "string",
            "format": "date-time"
          },
          "intervalHours": {
            "type": "number"
          },
          "pairStatus": {
            "type": "string",
            "enum": [
              "eligible",
              "unpriced",
              "identity_mismatch",
              "not_live",
              "contract_type",
              "margin_type",
              "price_gap"
            ],
            "description": "Whether the two legs are one instrument: `eligible`, `unpriced` when a leg has no price to check, else the first check that failed; `price_gap` means the legs' prices are more than 20% apart."
          },
          "fundingAsOf": {
            "nullable": true,
            "description": "When the older leg's funding rate was written; `null` when either is unknown.",
            "type": "string",
            "format": "date-time"
          },
          "pricesAsOf": {
            "nullable": true,
            "description": "When the older of the two legs' quotes behind the spread and depth was read; `null` when neither leg has a quote.",
            "type": "string",
            "format": "date-time"
          },
          "indicativeReason": {
            "nullable": true,
            "description": "Why the row is `indicative`; `null` when executable. `reference_only`: no book on a leg (spread from last or mark prices); `price_gap`: legs 5-20% apart (net APR kept) or past 20% (none); `thin_book`: reported top-of-book depth under $10,000; `oi_below_notional`: a leg reports open interest under $10,000 (unknown open interest is no evidence either way); `stale_quote`: a quote older than the board's 10-minute SLA; `no_depth`: every other check passes but a venue reports no top-of-book size, so the fill is unproven (ranks right after the executable rows).",
            "type": "string",
            "enum": [
              "unpriced",
              "identity_mismatch",
              "not_live",
              "contract_type",
              "margin_type",
              "price_gap",
              "reference_only",
              "thin_book",
              "stale_quote",
              "no_depth",
              "oi_below_notional"
            ]
          },
          "roundTripFeeRate": {
            "nullable": true,
            "description": "Two perpetual taker fills on each venue at its standard (VIP 0) fee, a decimal fraction of notional.",
            "type": "number"
          },
          "breakEvenDays": {
            "nullable": true,
            "description": "Days of carry that pay back the one-time costs: (fees + adverse entry spread) ÷ (`apr` / 365). `null` without a `netApr`.",
            "type": "number"
          },
          "longSymbol": {
            "nullable": true,
            "description": "The long venue's own contract symbol (e.g. `1000PEPEUSDT`, `kPEPE`): legs of one asset pair across lot sizes.",
            "type": "string"
          },
          "shortSymbol": {
            "nullable": true,
            "description": "The short venue's own contract symbol.",
            "type": "string"
          },
          "longIntervalHours": {
            "nullable": true,
            "description": "The long leg's own funding interval in hours: `longRate` is per this many hours (`intervalHours` is the faster of the two legs).",
            "type": "number"
          },
          "shortIntervalHours": {
            "nullable": true,
            "description": "The short leg's own funding interval in hours: `shortRate` is per this many hours.",
            "type": "number"
          },
          "longPricesAsOf": {
            "nullable": true,
            "description": "When the long venue's quote was read; `null` without one.",
            "type": "string",
            "format": "date-time"
          },
          "shortPricesAsOf": {
            "nullable": true,
            "description": "When the short venue's quote was read; `null` without one.",
            "type": "string",
            "format": "date-time"
          },
          "longNextSettlement": {
            "nullable": true,
            "description": "The long leg's own next funding settlement; `null` when the venue does not report it. On a mixed-interval pair the slower leg's larger print lands here or in `shortNextSettlement`, not in `nextSettlement`.",
            "type": "string",
            "format": "date-time"
          },
          "shortNextSettlement": {
            "nullable": true,
            "description": "The short leg's own next funding settlement; `null` when the venue does not report it.",
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "symbol",
          "assetClass",
          "longExchange",
          "shortExchange",
          "longRate",
          "shortRate",
          "netFundingRate",
          "apr",
          "grossApr",
          "netApr",
          "spreadRate",
          "spreadSource",
          "longAsk",
          "shortBid",
          "executableDepthUsd",
          "holdingDays",
          "executionStatus",
          "oiLong",
          "oiShort",
          "volumeLong24hUsd",
          "volumeShort24hUsd",
          "nextSettlement",
          "intervalHours"
        ]
      },
      "CrossExchangeArbitrageResponse": {
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/SuccessEnvelope"
              },
              {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/CrossExchangeOpportunity"
                    }
                  }
                },
                "required": [
                  "data"
                ]
              }
            ]
          },
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaginatedEnvelope"
              },
              {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/CrossExchangeOpportunity"
                    }
                  }
                },
                "required": [
                  "data"
                ]
              }
            ]
          }
        ]
      },
      "FuturesBasisRow": {
        "type": "object",
        "properties": {
          "rank": {
            "type": "integer"
          },
          "coin": {
            "type": "string"
          },
          "spotVenue": {
            "type": "string"
          },
          "futuresVenue": {
            "type": "string"
          },
          "contract": {
            "type": "string"
          },
          "expiry": {
            "type": "string",
            "format": "date-time"
          },
          "days": {
            "type": "number"
          },
          "spotAsk": {
            "type": "number"
          },
          "futureBid": {
            "type": "number"
          },
          "basisUsd": {
            "type": "number"
          },
          "basisPct": {
            "type": "number"
          },
          "annualizedBasisPct": {
            "type": "number"
          },
          "netAprPct": {
            "type": "number"
          },
          "volume24hUsd": {
            "nullable": true,
            "type": "number"
          },
          "openInterestUsd": {
            "nullable": true,
            "type": "number"
          },
          "oiToVolume": {
            "nullable": true,
            "type": "number"
          },
          "depthUsd": {
            "nullable": true,
            "type": "number"
          },
          "executionStatus": {
            "type": "string",
            "enum": [
              "executable",
              "indicative"
            ],
            "description": "Whether the row can be traded at the requested notional on the figures shown. \"executable\" needs all of: a snapshot inside the freshness SLA; book depth behind the spot ask and futures bid of at least notional (level 1 on a stored snapshot row, `depth_beyond_top_of_book` when thinner; on a live read a side thinner at level 1 than the default notional is walked 20 levels deep and priced at that walk's VWAP); no reported open interest on the contract below notional (unknown open interest does not demote); 24h volume of at least notional; a non-negative basis; and quotes at most 10 minutes old (a live read, not the hourly snapshot). Otherwise \"indicative\" with `indicativeReason`: every figure is kept. Indicative rows sort below executable ones."
          },
          "indicativeReason": {
            "description": "Why the row is indicative, the first failing check in this order: `stale_snapshot` (past the term-structure SLA), `no_perp_book` (carry: the perp has no bid/ask for its own contract), `no_depth`, `depth_below_notional` (the top-20 book walked is thinner than the notional), `depth_beyond_top_of_book` (the depth known is level 1 only and thinner than the notional: the rest would fill beyond the quote the row is priced at), `oi_below_notional`, `no_volume` (no 24h volume, or less than the notional), `backwardation_needs_borrow` (basis: a negative basis, and calendar: a backwardated Sell Near / Buy Far lock-in; the reverse trade needs a spot borrow the board does not price), `snapshot_quote` (every other check passes but the quotes are older than 10 minutes: executable on a live read). Null when executable. Absent on answers before 2026-09-30.",
            "nullable": true,
            "type": "string",
            "enum": [
              "stale_snapshot",
              "no_perp_book",
              "no_depth",
              "depth_below_notional",
              "depth_beyond_top_of_book",
              "oi_below_notional",
              "no_volume",
              "backwardation_needs_borrow",
              "snapshot_quote"
            ]
          },
          "nearExpiry": {
            "description": "Under 3 days to expiry: the round-trip fee annualized over the days left dominates the APR. Served, ranked after every row at least 3 days out. Absent on answers before 2026-09-30.",
            "type": "boolean"
          },
          "feesPct": {
            "type": "number",
            "description": "Round-trip fees: 2 spot and 2 dated-futures taker fills at the venue's standard fee (engine/derive/venue-fees.ts), percent, not annualized."
          },
          "marginType": {
            "type": "string",
            "enum": [
              "linear",
              "inverse"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "isStale": {
            "type": "boolean"
          }
        },
        "required": [
          "rank",
          "coin",
          "spotVenue",
          "futuresVenue",
          "contract",
          "expiry",
          "days",
          "spotAsk",
          "futureBid",
          "basisUsd",
          "basisPct",
          "annualizedBasisPct",
          "netAprPct",
          "volume24hUsd",
          "openInterestUsd",
          "oiToVolume",
          "depthUsd",
          "executionStatus",
          "feesPct",
          "marginType",
          "updatedAt",
          "isStale"
        ]
      },
      "FuturesBasisAggregate": {
        "type": "object",
        "properties": {
          "coin": {
            "type": "string"
          },
          "totalOpenInterestUsd": {
            "type": "number"
          },
          "oiWeightedAprPct": {
            "type": "number"
          },
          "bestVenue": {
            "type": "string"
          },
          "bestAprPct": {
            "type": "number"
          },
          "contractCount": {
            "type": "integer"
          }
        },
        "required": [
          "coin",
          "totalOpenInterestUsd",
          "oiWeightedAprPct",
          "bestVenue",
          "bestAprPct",
          "contractCount"
        ],
        "description": "Per-coin summary over the ranked contracts at least three days from expiry (one day until 2026-09-30). Contracts closer to expiry stay in rows but are left out, because a round-trip fee annualized over a few days dominates the APR; a coin with no qualifying contract has no entry."
      },
      "DatedFuturesBasisResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "rows": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/FuturesBasisRow"
                    }
                  },
                  "scannerMeta": {
                    "$ref": "#/components/schemas/ScannerMeta"
                  },
                  "pagination": {
                    "nullable": true,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/PaginationInfo"
                      }
                    ]
                  },
                  "aggregate": {
                    "nullable": true,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/FuturesBasisAggregate"
                    }
                  }
                },
                "required": [
                  "rows",
                  "scannerMeta",
                  "pagination"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "FixedFloatingFundingRow": {
        "type": "object",
        "properties": {
          "marketId": {
            "type": "integer",
            "description": "Boros market id (the key: one venue contract can list twice on different collateral)."
          },
          "market": {
            "type": "string",
            "description": "Boros market symbol, e.g. BINANCE-BTCUSDT-30OCT2026."
          },
          "venue": {
            "type": "string",
            "description": "The venue whose perp funding the market settles against, as Boros names it (Binance, OKX, Hyperliquid, Gate, Kucoin, Lighter, Bybit)."
          },
          "coin": {
            "type": "string"
          },
          "fundingExchange": {
            "nullable": true,
            "description": "Our funding store's exchange for the matched contract (Gate.io, KuCoin, tradeXYZ for Hyperliquid's xyz dex); null when not covered.",
            "type": "string"
          },
          "fundingContract": {
            "nullable": true,
            "description": "The matched perp's native symbol as /v1/funding/rates serves it (BTCUSDT, BTC-USDT-SWAP, XBTUSDTM, BTC-USD, xyz:BRENTOIL); null when not covered.",
            "type": "string"
          },
          "collateral": {
            "nullable": true,
            "description": "Boros collateral token (BTC, ETH, USDT, HYPE, BNB).",
            "type": "string"
          },
          "maturity": {
            "type": "string",
            "format": "date-time"
          },
          "daysToMaturity": {
            "type": "number",
            "description": "Fractional days from the answer's generation to maturity."
          },
          "settlementIntervalHours": {
            "type": "number",
            "description": "The underlying perp's settlement interval, hours (Boros paymentPeriod)."
          },
          "settlementsToMaturity": {
            "type": "integer"
          },
          "nextSettlementAt": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "enum": [
              "trading",
              "close_only",
              "paused"
            ]
          },
          "impliedApr": {
            "type": "number",
            "description": "Boros implied (fixed) APR: the market's mark (fair-value) rate."
          },
          "midApr": {
            "type": "number"
          },
          "bestBidApr": {
            "nullable": true,
            "description": "Best bid APR: the fixed rate a seller of yield (receive fixed, pay floating) gets now.",
            "type": "number"
          },
          "bestAskApr": {
            "nullable": true,
            "type": "number"
          },
          "floatingApr": {
            "type": "number",
            "description": "The underlying (floating) APR as Boros reports it: the venue's current funding annualised by Boros's oracle."
          },
          "realised7dApr": {
            "nullable": true,
            "description": "Our realised funding for the same venue contract over the last 7 days, annualised: acc_7d × 365 / 7 (funding_accumulated).",
            "type": "number"
          },
          "realised7dNullReason": {
            "nullable": true,
            "type": "string",
            "enum": [
              "venue_not_covered",
              "contract_not_in_store",
              "store_unavailable",
              "accumulated_stale",
              "listed_within_window",
              "history_stale"
            ],
            "description": "Why the realised figure is null (never 0): venue_not_covered (Boros quotes a venue or Hyperliquid builder dex our funding store does not track), contract_not_in_store (no accumulated funding row for the contract), store_unavailable (the funding store could not be read), accumulated_stale (the 7/30-day sums are past their freshness SLA), listed_within_window (the contract's first stored settlement is inside the window), history_stale (its last stored settlement is over a day old)."
          },
          "realised30dApr": {
            "nullable": true,
            "description": "Realised funding over the last 30 days, annualised: acc_30d × 365 / 30.",
            "type": "number"
          },
          "realised30dNullReason": {
            "nullable": true,
            "type": "string",
            "enum": [
              "venue_not_covered",
              "contract_not_in_store",
              "store_unavailable",
              "accumulated_stale",
              "listed_within_window",
              "history_stale"
            ],
            "description": "Why the realised figure is null (never 0): venue_not_covered (Boros quotes a venue or Hyperliquid builder dex our funding store does not track), contract_not_in_store (no accumulated funding row for the contract), store_unavailable (the funding store could not be read), accumulated_stale (the 7/30-day sums are past their freshness SLA), listed_within_window (the contract's first stored settlement is inside the window), history_stale (its last stored settlement is over a day old)."
          },
          "spread7dApr": {
            "nullable": true,
            "description": "impliedApr − realised7dApr. Positive: locking the fixed rate beats what the floating leg paid over 7 days. Gross: no Boros or venue fees.",
            "type": "number"
          },
          "spread30dApr": {
            "nullable": true,
            "description": "impliedApr − realised30dApr: a valuation at the mark, not the rank key (netEdge30dApr is). Gross: no Boros or venue fees.",
            "type": "number"
          },
          "edge7dApr": {
            "nullable": true,
            "description": "The 7-day executable edge: bestBidApr − realised7dApr to receive fixed, realised7dApr − bestAskApr to pay fixed, the larger. Gross of fees; null without a quote or the realised figure.",
            "type": "number"
          },
          "edge30dApr": {
            "nullable": true,
            "description": "The 30-day executable edge: bestBidApr − realised30dApr to receive fixed, realised30dApr − bestAskApr to pay fixed, the larger. Gross of fees; null without a quote or the realised figure.",
            "type": "number"
          },
          "edge30dSide": {
            "nullable": true,
            "description": "The side edge30dApr trades: receive_fixed (sell yield at the bid) or pay_fixed (buy yield at the ask); null without an edge.",
            "type": "string",
            "enum": [
              "receive_fixed",
              "pay_fixed"
            ]
          },
          "takerFeeApr": {
            "nullable": true,
            "description": "Boros taker fee, a fraction per year of the time to maturity (config.takerFee / 1e18): a taker entry held to maturity costs this much a year. Null when Boros does not report it.",
            "type": "number"
          },
          "settleFeeApr": {
            "nullable": true,
            "description": "Boros settlement fee, a fraction per year charged on each settlement (extConfig.settleFeeRate / 1e18). Null when Boros does not report it.",
            "type": "number"
          },
          "netEdge30dApr": {
            "nullable": true,
            "description": "edge30dApr − takerFeeApr − settleFeeApr: the 30-day executable edge net of Boros fees, held to maturity (the rank key). Gross of any venue fee on a perp held beside it. Null without the edge or either fee.",
            "type": "number"
          },
          "openInterestUsd": {
            "nullable": true,
            "description": "Boros open interest, one side: notionalOI (yield units of the collateral token) × the collateral's USD price.",
            "type": "number"
          },
          "volume24hUsd": {
            "nullable": true,
            "type": "number"
          },
          "tradeUrl": {
            "type": "string",
            "description": "The market on boros.pendle.finance."
          },
          "borosAsOf": {
            "type": "string",
            "format": "date-time",
            "description": "Block time of the Boros indexer head the market was read at."
          },
          "fundingAsOf": {
            "nullable": true,
            "description": "When the funding_accumulated view behind the realised figures was refreshed; null when not covered.",
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "marketId",
          "market",
          "venue",
          "coin",
          "fundingExchange",
          "fundingContract",
          "collateral",
          "maturity",
          "daysToMaturity",
          "settlementIntervalHours",
          "settlementsToMaturity",
          "nextSettlementAt",
          "status",
          "impliedApr",
          "midApr",
          "bestBidApr",
          "bestAskApr",
          "floatingApr",
          "realised7dApr",
          "realised7dNullReason",
          "realised30dApr",
          "realised30dNullReason",
          "spread7dApr",
          "spread30dApr",
          "edge7dApr",
          "edge30dApr",
          "edge30dSide",
          "takerFeeApr",
          "settleFeeApr",
          "netEdge30dApr",
          "openInterestUsd",
          "volume24hUsd",
          "tradeUrl",
          "borosAsOf",
          "fundingAsOf"
        ]
      },
      "FixedFloatingFundingSummary": {
        "type": "object",
        "properties": {
          "markets": {
            "type": "integer"
          },
          "matched": {
            "type": "integer",
            "description": "Markets with a realised 7-day figure."
          },
          "unmatched": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "Markets without a realised 7-day figure, by realised7dNullReason."
          },
          "borosSyncedAt": {
            "type": "string",
            "format": "date-time"
          },
          "fundingAccumulatedAt": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "markets",
          "matched",
          "unmatched",
          "borosSyncedAt",
          "fundingAccumulatedAt"
        ]
      },
      "FixedFloatingFundingData": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FixedFloatingFundingRow"
            }
          },
          "summary": {
            "$ref": "#/components/schemas/FixedFloatingFundingSummary"
          }
        },
        "required": [
          "rows",
          "summary"
        ]
      },
      "FixedFloatingFundingResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/FixedFloatingFundingData"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "FundingSpreadHistoryLeg": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "perp",
              "long",
              "short"
            ],
            "description": "`perp` on a spot-perp pair (its side is `direction`); `long` and `short` on a cross-exchange pair."
          },
          "venue": {
            "type": "string"
          },
          "contract": {
            "type": "string",
            "description": "The venue's native contract symbol the settlements are read for."
          },
          "contractSource": {
            "type": "string",
            "enum": [
              "given",
              "resolved"
            ],
            "description": "`given`: the query named the contract. `resolved`: the venue's contract for the coin with the largest current open interest (unknown open interest last), then the most settlements in the window, the latest settlement, the symbol."
          },
          "side": {
            "type": "string",
            "enum": [
              "long",
              "short"
            ],
            "description": "The position on this perp: a short leg receives positive funding, a long leg pays it."
          },
          "intervalHours": {
            "nullable": true,
            "description": "The interval of the leg's latest settlement, in hours, read from the gap to the settlement before it (else the stored interval); null when none was readable. Never assumed 8.",
            "type": "number"
          },
          "settlements": {
            "type": "integer",
            "description": "Settlements read for the leg (the window plus a 2-day margin)."
          },
          "firstSettledAt": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "lastSettledAt": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "takerFee": {
            "type": "number",
            "description": "The venue's standard perp taker fee per fill (src/engine/derive/venue-fees.ts)."
          }
        },
        "required": [
          "role",
          "venue",
          "contract",
          "contractSource",
          "side",
          "intervalHours",
          "settlements",
          "firstSettledAt",
          "lastSettledAt",
          "takerFee"
        ]
      },
      "FundingSpreadHistoryPoint": {
        "type": "object",
        "properties": {
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "A settlement instant of either leg."
          },
          "spreadApr": {
            "nullable": true,
            "description": "The position's funding spread at `at`, annualized simply: Σ over the legs of ±(rate × 8,760 / interval hours), + for a short leg, − for a long leg. Each leg is read at the settlement whose interval covers `at` (legs aligned by time, never by index); null when a leg has no covering settlement (a gap, or its interval has not settled yet).",
            "type": "number"
          },
          "legAprs": {
            "type": "array",
            "items": {
              "nullable": true,
              "type": "number"
            },
            "description": "Each leg's own funding at `at`, annualized (rate × 8,760 / interval hours, the venue's sign), in `legs` order; null where the leg is uncovered."
          },
          "cashflow": {
            "type": "number",
            "description": "Funding the position received at `at` (fraction of one leg's notional, negative when paid): the settlements of the legs that settle at this instant."
          },
          "cumulativeCarry": {
            "type": "number",
            "description": "Running sum of `cashflow` from the start of the requested window's backtest; fees are not included."
          },
          "estimated": {
            "type": "boolean",
            "description": "True when a leg is read at an estimated settlement at `at`: the funding cron's last pre-settlement rate, either not yet replaced by the venue's own record by the reconcile job (stored `source: inferred`; its `legAprs`, `spreadApr` and `cashflow` can still change) or on a venue that publishes no settlement record (stored `source: estimate`, LBank and Variational; final). False for venue-recorded settlements and for rows stored before provenance was tracked (2026-09-26)."
          }
        },
        "required": [
          "at",
          "spreadApr",
          "legAprs",
          "cashflow",
          "cumulativeCarry",
          "estimated"
        ]
      },
      "FundingSpreadBacktest": {
        "type": "object",
        "properties": {
          "days": {
            "type": "integer",
            "description": "The window held: the last `days` days to `end`."
          },
          "start": {
            "type": "string",
            "format": "date-time",
            "description": "Where the backtest starts: `end` − `days`, or later when a leg's history begins inside the window."
          },
          "end": {
            "type": "string",
            "format": "date-time",
            "description": "The latest instant every leg's funding is realised: the earliest of the legs' last settlements (`windowEnd`)."
          },
          "coveredDays": {
            "type": "number",
            "description": "Days from `start` to `end`: the span the figures cover and annualize over."
          },
          "complete": {
            "type": "boolean",
            "description": "Every leg has history from the window's start and its settlements price at least 90% of the covered span. Coverage only: it does not say the settlements are final; see `estimatedSettlements`."
          },
          "coverageRatio": {
            "nullable": true,
            "description": "The least-covered leg's share of the covered span its settlements price (Σ settlement interval ÷ span, at most 1). Missing settlements lower it; they are never read as zero funding.",
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "estimatedSettlements": {
            "type": "integer",
            "minimum": 0,
            "description": "Settlements in (start, end], over all legs, that are the funding cron's pre-settlement estimates rather than the venue's record (series points marked `estimated`). Above 0, `fundingCollected` and the figures built on it can still move once those settlements are reconciled."
          },
          "fundingCollected": {
            "nullable": true,
            "description": "Sum of the position's funding settlements in (start, end], fraction of one leg's notional; funding is paid at the settlement instant, so a settlement counts in full.",
            "type": "number"
          },
          "fees": {
            "type": "number",
            "description": "Entry and exit taker fees, fraction of one leg's notional: 2 spot + 2 perp fills on the venue (spot-perp), 2 fills on each perp (cross-exchange). Same as `roundTripFees`."
          },
          "netReturn": {
            "nullable": true,
            "description": "`fundingCollected − fees`, less `borrowApr × coveredDays / 365` when `borrowCostIncluded`.",
            "type": "number"
          },
          "grossApr": {
            "nullable": true,
            "description": "`fundingCollected × 365 / coveredDays`.",
            "type": "number"
          },
          "netApr": {
            "nullable": true,
            "description": "`netReturn × 365 / coveredDays` (so `borrowApr` lower when `borrowCostIncluded`): fees are charged once, so short windows carry them heavily.",
            "type": "number"
          },
          "negativeCarryDays": {
            "nullable": true,
            "description": "24-hour periods, counted back from `end` (not UTC days), whose settlements summed below zero.",
            "type": "integer"
          },
          "daysObserved": {
            "nullable": true,
            "description": "Full 24-hour periods inside the covered span that held at least one settlement.",
            "type": "integer"
          },
          "maxDrawdown": {
            "nullable": true,
            "description": "Largest fall of cumulative funding from its running peak (starting at 0 at `start`), fraction of one leg's notional; fees excluded.",
            "type": "number",
            "minimum": 0
          },
          "breakEvenDays": {
            "nullable": true,
            "description": "`fees` ÷ the realised average daily funding (net of `borrowApr / 365` when `borrowCostIncluded`); null unless that is positive.",
            "type": "number"
          }
        },
        "required": [
          "days",
          "start",
          "end",
          "coveredDays",
          "complete",
          "coverageRatio",
          "estimatedSettlements",
          "fundingCollected",
          "fees",
          "netReturn",
          "grossApr",
          "netApr",
          "negativeCarryDays",
          "daysObserved",
          "maxDrawdown",
          "breakEvenDays"
        ]
      },
      "FundingSpreadHistory": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "spot-perp",
              "cross-exchange"
            ]
          },
          "coin": {
            "type": "string"
          },
          "direction": {
            "nullable": true,
            "description": "Spot-perp only: `short` = buy spot, short the perp (collects positive funding); `long` = sell spot, long the perp. Null on cross-exchange.",
            "type": "string",
            "enum": [
              "short",
              "long"
            ]
          },
          "days": {
            "type": "integer"
          },
          "legs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FundingSpreadHistoryLeg"
            }
          },
          "spot": {
            "nullable": true,
            "description": "Spot-perp only: the spot leg (same venue; spot pays no funding) and its taker fee per fill.",
            "type": "object",
            "properties": {
              "venue": {
                "type": "string"
              },
              "takerFee": {
                "type": "number"
              }
            },
            "required": [
              "venue",
              "takerFee"
            ]
          },
          "roundTripFees": {
            "type": "number"
          },
          "requiresBorrow": {
            "type": "boolean",
            "description": "True for a spot-perp `long` direction: the coin must be borrowed on margin to sell spot."
          },
          "borrowCostIncluded": {
            "type": "boolean",
            "description": "True when every backtest charges `borrowApr`: a `long` spot-perp carry on a venue that publishes its borrow rate for the coin (Binance, OKX, Bybit, Gate.io). False otherwise; on a `long` carry a warning names why the borrow is left out."
          },
          "borrowApr": {
            "nullable": true,
            "description": "The venue's current spot-margin borrow APR for the coin (simple, a fraction: hourly × 8,760), the rate the spot-perp board nets. Charged pro rata over each backtest's covered days; the history stores no borrow rates, so a past window is charged today's rate. `null` when none is charged.",
            "type": "number"
          },
          "windowEnd": {
            "nullable": true,
            "description": "Every backtest's `end`; null when a leg has no usable settlement.",
            "type": "string",
            "format": "date-time"
          },
          "series": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FundingSpreadHistoryPoint"
            },
            "description": "The spread at every settlement instant of either leg over the requested window's backtest span, ascending."
          },
          "backtests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FundingSpreadBacktest"
            },
            "description": "One per window: 1, 7, 14, 30 and 60 days where shorter than `days`, then `days` itself, ascending."
          }
        },
        "required": [
          "mode",
          "coin",
          "direction",
          "days",
          "legs",
          "spot",
          "roundTripFees",
          "requiresBorrow",
          "borrowCostIncluded",
          "borrowApr",
          "windowEnd",
          "series",
          "backtests"
        ]
      },
      "FundingSpreadHistoryResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/FundingSpreadHistory"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "FuturesCalendarSpreadRow": {
        "type": "object",
        "properties": {
          "rank": {
            "type": "integer"
          },
          "coin": {
            "type": "string"
          },
          "exchange": {
            "type": "string"
          },
          "nearContract": {
            "type": "string"
          },
          "nearExpiry": {
            "type": "string",
            "format": "date-time"
          },
          "farContract": {
            "type": "string"
          },
          "farExpiry": {
            "type": "string",
            "format": "date-time"
          },
          "nearBasisPct": {
            "type": "number",
            "description": "The near contract's reference price (mark, else book mid; never the last trade since 2026-09-30) against the venue's spot reference, percent."
          },
          "farBasisPct": {
            "type": "number",
            "description": "The far contract's reference price against the same spot reference, percent."
          },
          "forwardYieldPct": {
            "type": "number",
            "description": "Executable forward APR: (sell leg bid / buy leg ask − 1) × 365 / gapDays, percent, the legs chosen by `direction`."
          },
          "curve": {
            "type": "string",
            "enum": [
              "Contango",
              "Backwardation",
              "Flat"
            ]
          },
          "direction": {
            "type": "string",
            "enum": [
              "Buy Near / Sell Far",
              "Sell Near / Buy Far"
            ],
            "description": "From the reference prices (mark, else mid): the far contract above the near one buys near and sells far."
          },
          "netRollApyPct": {
            "type": "number",
            "description": "Lock-in net APR: (executable spread − feesPct / 100) × 365 / gapDays × 100. May be negative."
          },
          "minOpenInterestUsd": {
            "nullable": true,
            "type": "number"
          },
          "minDepthUsd": {
            "nullable": true,
            "type": "number"
          },
          "executionStatus": {
            "type": "string",
            "enum": [
              "executable",
              "indicative"
            ],
            "description": "Whether the row can be traded at the requested notional on the figures shown. \"executable\" needs all of: both snapshots inside the freshness SLA; book depth behind both legs of at least notional (level 1 on a stored snapshot row, `depth_beyond_top_of_book` when thinner; on a live read a side thinner at level 1 than the default notional is walked 20 levels deep and priced at that walk's VWAP); a contango pair (a backwardated Sell Near / Buy Far lock-in needs a spot borrow: `backwardation_needs_borrow`); no reported open interest on the smaller leg below notional (unknown open interest does not demote); 24h volume on the thinner leg of at least notional; and quotes at most 10 minutes old (a live read). Otherwise \"indicative\" with `indicativeReason`: every figure is kept."
          },
          "indicativeReason": {
            "description": "Why the row is indicative, the first failing check in this order: `stale_snapshot` (past the term-structure SLA), `no_perp_book` (carry: the perp has no bid/ask for its own contract), `no_depth`, `depth_below_notional` (the top-20 book walked is thinner than the notional), `depth_beyond_top_of_book` (the depth known is level 1 only and thinner than the notional: the rest would fill beyond the quote the row is priced at), `oi_below_notional`, `no_volume` (no 24h volume, or less than the notional), `backwardation_needs_borrow` (basis: a negative basis, and calendar: a backwardated Sell Near / Buy Far lock-in; the reverse trade needs a spot borrow the board does not price), `snapshot_quote` (every other check passes but the quotes are older than 10 minutes: executable on a live read). Null when executable. Absent on answers before 2026-09-30.",
            "nullable": true,
            "type": "string",
            "enum": [
              "stale_snapshot",
              "no_perp_book",
              "no_depth",
              "depth_below_notional",
              "depth_beyond_top_of_book",
              "oi_below_notional",
              "no_volume",
              "backwardation_needs_borrow",
              "snapshot_quote"
            ]
          },
          "nearDays": {
            "description": "Fractional days from the request to the near expiry.",
            "type": "number"
          },
          "gapDays": {
            "description": "Fractional days between the two expiries: the annualization denominator.",
            "type": "number"
          },
          "belowTenorFloor": {
            "description": "The near leg is under 3 days from expiry or the legs expire under 7 days apart: served, ranked after every pair meeting both floors.",
            "type": "boolean"
          },
          "referenceForwardYieldPct": {
            "description": "Reference forward APR, (F_far / F_near − 1) × 365 / gapDays on mark (else mid) prices, percent: it sets `curve` and `direction`.",
            "type": "number"
          },
          "priceReference": {
            "description": "What the reference prices are: `mark` when the venue reported a mark price for both legs, else `mid` (book mid on at least one leg).",
            "type": "string",
            "enum": [
              "mark",
              "mid"
            ]
          },
          "feesPct": {
            "description": "Lock-in round-trip fees: 4 dated-futures and 2 spot taker fills at the venue's standard fees, percent, not annualized.",
            "type": "number"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "isStale": {
            "type": "boolean"
          }
        },
        "required": [
          "rank",
          "coin",
          "exchange",
          "nearContract",
          "nearExpiry",
          "farContract",
          "farExpiry",
          "nearBasisPct",
          "farBasisPct",
          "forwardYieldPct",
          "curve",
          "direction",
          "netRollApyPct",
          "minOpenInterestUsd",
          "minDepthUsd",
          "executionStatus",
          "updatedAt",
          "isStale"
        ]
      },
      "FuturesCalendarSpreadResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "rows": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/FuturesCalendarSpreadRow"
                    }
                  },
                  "scannerMeta": {
                    "$ref": "#/components/schemas/ScannerMeta"
                  },
                  "pagination": {
                    "nullable": true,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/PaginationInfo"
                      }
                    ]
                  }
                },
                "required": [
                  "rows",
                  "scannerMeta",
                  "pagination"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "PerpDatedCarryRow": {
        "type": "object",
        "properties": {
          "rank": {
            "type": "integer"
          },
          "coin": {
            "type": "string"
          },
          "perpVenue": {
            "type": "string"
          },
          "datedVenue": {
            "type": "string"
          },
          "datedContract": {
            "type": "string"
          },
          "expiry": {
            "type": "string",
            "format": "date-time"
          },
          "days": {
            "type": "number"
          },
          "perpFundingAprPct": {
            "type": "number",
            "description": "The perp's current funding print annualized (rate × 8,760 / interval), percent. Same number as `currentFundingAprPct`. Rows with the same (`coin`, `perpVenue`) can carry different perps (a USDT-margined and an inverse contract of the venue pay different rates), and the row does not name the perp contract: read `perpFundingAprPct` as that venue's funding for the coin, not as a specific contract's."
          },
          "expectedFundingToExpiryPct": {
            "type": "number",
            "description": "Funding the perp is expected to pay to expiry, percent: the projected rate (`fundingProjection`) per settlement × `fundingSettlementsToExpiry` (was the current print × days / 365 until 2026-09-30)."
          },
          "datedBasisPct": {
            "type": "number",
            "description": "The dated contract's basis against the PERP at the chosen trade's executable sides, percent: (F_bid / P_ask − 1) when shorting the dated leg, (F_ask / P_bid − 1) when buying it; on mark/last prices when the perp has no book (against spot until 2026-09-30)."
          },
          "carryEdgePct": {
            "type": "number",
            "description": "`expectedFundingToExpiryPct − datedBasisPct`, percent: positive when collecting funding on a short perp beats the basis paid on the long dated leg."
          },
          "netCarryEdgePct": {
            "type": "number",
            "description": "The chosen trade's edge to expiry less `feesPct`: `carryEdgePct − feesPct` for Perp Carry, `−carryEdgePct − feesPct` for Dated Cash-and-Carry. May be negative."
          },
          "grossCarryAprPct": {
            "type": "number",
            "description": "The chosen trade's edge before fees, annualized over `days`. May be negative when the book spread exceeds the edge."
          },
          "netCarryAprPct": {
            "type": "number"
          },
          "bestLeg": {
            "type": "string",
            "enum": [
              "Perp Carry",
              "Dated Cash-and-Carry"
            ],
            "description": "The trade with the larger edge: Perp Carry = short perp / long dated (collect funding), Dated Cash-and-Carry = long perp / short dated (keep the basis)."
          },
          "nextFunding": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "executableDepthUsd": {
            "nullable": true,
            "description": "The smaller book depth on the two sides the trade hits: the dated contract's and the perp's own contract. Null when either is unknown (a perp with no book).",
            "type": "number"
          },
          "minOpenInterestUsd": {
            "nullable": true,
            "type": "number"
          },
          "oiDepthUsd": {
            "nullable": true,
            "description": "Legacy compatibility metric. Use executableDepthUsd and minOpenInterestUsd.",
            "deprecated": true,
            "type": "number"
          },
          "executionStatus": {
            "type": "string",
            "enum": [
              "executable",
              "indicative"
            ],
            "description": "Whether the row can be traded at the requested notional on the figures shown. \"executable\" needs all of: both legs inside the freshness SLA; a book for the perp's own contract; depth on the dated side and the perp side the trade hits of at least notional (the perp's ticker level 1, and the dated side's level 1 on a stored snapshot row: `depth_beyond_top_of_book` when thinner; on a live read a thin dated side is walked 20 levels deep and priced at that walk's VWAP); no reported open interest on the smaller leg below notional (unknown open interest does not demote); the dated contract's 24h volume of at least notional; and every quote at most 10 minutes old. Otherwise \"indicative\" with `indicativeReason`: every figure is kept."
          },
          "indicativeReason": {
            "description": "Why the row is indicative, the first failing check in this order: `stale_snapshot` (past the term-structure SLA), `no_perp_book` (carry: the perp has no bid/ask for its own contract), `no_depth`, `depth_below_notional` (the top-20 book walked is thinner than the notional), `depth_beyond_top_of_book` (the depth known is level 1 only and thinner than the notional: the rest would fill beyond the quote the row is priced at), `oi_below_notional`, `no_volume` (no 24h volume, or less than the notional), `backwardation_needs_borrow` (basis: a negative basis, and calendar: a backwardated Sell Near / Buy Far lock-in; the reverse trade needs a spot borrow the board does not price), `snapshot_quote` (every other check passes but the quotes are older than 10 minutes: executable on a live read). Null when executable. Absent on answers before 2026-09-30.",
            "nullable": true,
            "type": "string",
            "enum": [
              "stale_snapshot",
              "no_perp_book",
              "no_depth",
              "depth_below_notional",
              "depth_beyond_top_of_book",
              "oi_below_notional",
              "no_volume",
              "backwardation_needs_borrow",
              "snapshot_quote"
            ]
          },
          "direction": {
            "description": "The trade the row prices, the same choice as `bestLeg`: which leg is shorted.",
            "type": "string",
            "enum": [
              "Long perp / Short dated",
              "Short perp / Long dated"
            ]
          },
          "crossVenue": {
            "description": "The perp and the dated contract trade on different venues: two accounts, each collateralized separately; the board does not price the transfer between them.",
            "type": "boolean"
          },
          "nearExpiry": {
            "description": "Under 3 days to expiry: served, ranked after every row at least 3 days out; the projection then uses the current print.",
            "type": "boolean"
          },
          "currentFundingAprPct": {
            "description": "The current funding print annualized (rate × 8,760 / interval), percent.",
            "type": "number"
          },
          "funding7dAprPct": {
            "description": "The 7-day realised funding annualized (acc_7d × 365 / 7), percent; null when the 7-day sum is unknown or the matview is past its freshness SLA.",
            "nullable": true,
            "type": "number"
          },
          "funding7dCumulativePct": {
            "description": "The 7-day cumulative funding (acc_7d × 100), percent.",
            "nullable": true,
            "type": "number"
          },
          "fundingProjection": {
            "description": "The rate `expectedFundingToExpiryPct` projects: the 7-day realised average, or the current print (under 3 days to expiry, or no current 7-day sum).",
            "type": "string",
            "enum": [
              "7d_average",
              "current_print"
            ]
          },
          "fundingIntervalHours": {
            "description": "The perp's settlement interval in hours (1, 2, 4, 8, …): the current print is per this many hours.",
            "type": "number"
          },
          "fundingSettlementsToExpiry": {
            "description": "Funding settlements between the request and expiry on the perp's own grid (a settlement at the expiry instant counts).",
            "type": "integer"
          },
          "datedLegPrice": {
            "description": "The dated price the basis uses: its bid when shorting it, its ask when buying it (mark or mid without a book).",
            "type": "number"
          },
          "perpLegPrice": {
            "description": "The perp price the basis uses: its ask when buying it, its bid when shorting it; null when the perp has no book.",
            "nullable": true,
            "type": "number"
          },
          "feesPct": {
            "description": "Round-trip fees: 2 perp and 2 dated-futures taker fills at each venue's standard fee, percent, not annualized.",
            "type": "number"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "The oldest input the row is priced on: the dated snapshot, the funding row, the perp quote."
          },
          "isStale": {
            "type": "boolean"
          }
        },
        "required": [
          "rank",
          "coin",
          "perpVenue",
          "datedVenue",
          "datedContract",
          "expiry",
          "days",
          "perpFundingAprPct",
          "expectedFundingToExpiryPct",
          "datedBasisPct",
          "carryEdgePct",
          "netCarryEdgePct",
          "grossCarryAprPct",
          "netCarryAprPct",
          "bestLeg",
          "nextFunding",
          "executableDepthUsd",
          "minOpenInterestUsd",
          "oiDepthUsd",
          "executionStatus",
          "updatedAt",
          "isStale"
        ]
      },
      "PerpDatedCarryResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "rows": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/PerpDatedCarryRow"
                    }
                  },
                  "scannerMeta": {
                    "$ref": "#/components/schemas/ScannerMeta"
                  },
                  "pagination": {
                    "nullable": true,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/PaginationInfo"
                      }
                    ]
                  }
                },
                "required": [
                  "rows",
                  "scannerMeta",
                  "pagination"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "SpotPerpOpportunity": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string"
          },
          "exchange": {
            "type": "string"
          },
          "fundingRate": {
            "type": "number",
            "description": "Funding rate as a decimal fraction per settlement interval."
          },
          "cumRate7d": {
            "nullable": true,
            "type": "number"
          },
          "apr": {
            "type": "number",
            "description": "Annualized funding return as a decimal fraction (0.30 = 30%)."
          },
          "basisRate": {
            "nullable": true,
            "description": "Spot/perpetual basis as a decimal fraction (0.001 = 0.1%).",
            "type": "number"
          },
          "netApr": {
            "nullable": true,
            "description": "Annualized return after one-time costs, a decimal fraction (0.30 = 30%): `apr` − (2 spot + 2 perp taker fills at the venue's fee + the adverse entry basis at the quoted sides) × 365 / 30 − the base coin's borrow APR on a sell-spot row when it is known. A favourable entry basis is never credited. Null when a leg is unpriced (`pairStatus` `unpriced`) or the spot and perp prices are more than 20% apart (larger / smaller − 1 > 0.20: two instruments under one ticker).",
            "type": "number"
          },
          "intervalHours": {
            "type": "number"
          },
          "direction": {
            "type": "string",
            "enum": [
              "long",
              "short"
            ]
          },
          "portfolio": {
            "type": "object",
            "properties": {
              "spotSide": {
                "type": "string",
                "enum": [
                  "buy",
                  "sell"
                ]
              },
              "perpSide": {
                "type": "string",
                "enum": [
                  "long",
                  "short"
                ]
              }
            },
            "required": [
              "spotSide",
              "perpSide"
            ]
          },
          "nextFundingTime": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "perpSymbol": {
            "type": "string",
            "description": "The venue's perpetual contract the row trades (its own symbol, e.g. `1000PEPEUSDT`)."
          },
          "perpOpenInterestUsd": {
            "nullable": true,
            "description": "One-sided open interest of that perpetual in USD: the venue ticker's figure, else the latest stored open interest of the contract (at most ~10 minutes old). `null` when neither is known, never 0.",
            "type": "number"
          },
          "fundingIsStale": {
            "type": "boolean",
            "description": "`true` when `fundingAsOf` is older than the funding book's 10-minute freshness SLA at the time of the request."
          },
          "executionStatus": {
            "type": "string",
            "enum": [
              "executable",
              "indicative"
            ],
            "description": "`executable` when both legs are priced, they are one instrument within 5% of each other (the spot price against the perp's index, else mark, else last price, per asset unit), a sell-spot row's borrow rate is known and in `netApr`, both quotes are within the board's 10-minute SLA at the time of the request, and top-of-book depth on both legs is reported and covers $10,000; `indicative` otherwise, with `indicativeReason`: its figures stand, but it is not a verified trade. The board reads spot prices as last trades with no book, so no row is executable today: a row that passes every other check is `no_spot_depth`."
          },
          "pairStatus": {
            "type": "string",
            "enum": [
              "eligible",
              "unpriced",
              "identity_mismatch",
              "not_live",
              "contract_type",
              "margin_type",
              "price_gap"
            ],
            "description": "Whether the spot and perpetual legs are one instrument: `eligible`, `unpriced` when either leg has no price to check, else the first check that failed: `identity_mismatch` (the instrument master places the legs on different assets), `price_gap` (prices more than 20% apart)."
          },
          "fundingAsOf": {
            "nullable": true,
            "description": "When the funding rate behind the row was written; `null` when unknown.",
            "type": "string",
            "format": "date-time"
          },
          "pricesAsOf": {
            "nullable": true,
            "description": "When the older of the spot and perpetual prices behind `basisRate` was read; `null` when the row has neither price.",
            "type": "string",
            "format": "date-time"
          },
          "indicativeReason": {
            "nullable": true,
            "description": "Why the row is `indicative`; `null` when executable. `price_gap`: the legs are 5-20% apart (a net APR is still computed) or more than 20% (none); `stale_quote`: a leg's quote is older than the board's 10-minute SLA at the time of the request; `borrow_unpriced`: a sell-spot / long-perp row whose borrow rate the venue does not publish (`netApr` excludes that interest, so the row ranks after executable rows); `borrow_limit`: a sell-spot / long-perp row whose venue borrow limit for the coin (a no-VIP account; Bybit, OKX, Binance in coin units valued at the spot price, Gate.io in USDT) is under $10,000, so the short-spot leg cannot be opened at the notional (a venue that publishes no limit is not demoted); `thin_book`: the perp's top-of-book depth on the side the trade hits is under $10,000; `oi_below_notional`: the perp reports open interest under $10,000; `no_spot_depth`: every other check passes but the spot leg is a last trade with no book behind it, so the fill is unproven (these rows rank right after the executable ones); `no_depth`: likewise for a perp leg that reports no size.",
            "type": "string",
            "enum": [
              "unpriced",
              "identity_mismatch",
              "not_live",
              "contract_type",
              "margin_type",
              "price_gap",
              "stale_quote",
              "borrow_unpriced",
              "borrow_limit",
              "thin_book",
              "no_spot_depth",
              "no_depth",
              "oi_below_notional"
            ]
          },
          "entryBasisRate": {
            "nullable": true,
            "description": "The entry basis at the quoted sides, positive when favourable: buy spot / short perp (perp bid − spot) / spot; sell spot / long perp (spot − perp ask) / perp ask. Spot is the venue's last trade; perp prices per asset unit. Only a negative value is charged in `netApr`.",
            "type": "number"
          },
          "roundTripFeeRate": {
            "nullable": true,
            "description": "Two spot and two perpetual taker fills at the venue's standard (VIP 0) fee, a decimal fraction of notional.",
            "type": "number"
          },
          "breakEvenDays": {
            "nullable": true,
            "description": "Days of carry that pay back the one-time costs: (fees + adverse entry basis) ÷ ((`apr` − `borrowApr`) / 365). `null` without a `netApr`.",
            "type": "number"
          },
          "requiresBorrow": {
            "type": "boolean",
            "description": "`true` on a sell-spot / long-perp row: the base coin must be borrowed on margin."
          },
          "borrowCostIncluded": {
            "type": "boolean",
            "description": "`true` when the borrow interest is subtracted from `netApr` (the venue publishes the rate); `false` when the row needs a borrow whose rate is unknown (`netApr` then overstates the carry by that interest, and the row is `indicative` `borrow_unpriced`), and on rows that need none."
          },
          "borrowApr": {
            "nullable": true,
            "description": "The borrow interest subtracted from `netApr`, a decimal fraction per year; `null` when none is.",
            "type": "number"
          },
          "apr7d": {
            "nullable": true,
            "description": "What the last 7 days of settlements paid this row's direction, annualized: `cumRate7d` × 365 / 7, sign flipped for a long-perp row. Negative when the 7-day carry ran against the direction; `null` without `cumRate7d`.",
            "type": "number"
          },
          "carrySignFlip7d": {
            "nullable": true,
            "description": "`true` when `apr7d` is negative: the current rate's direction lost money over the last 7 days. The board still ranks on the current rate.",
            "type": "boolean"
          },
          "perpLotMultiplier": {
            "nullable": true,
            "description": "Asset units per perpetual contract unit (1000 for `1000PEPEUSDT`, whose row `symbol` is PEPE); `null` when the instrument master does not know the contract.",
            "type": "number"
          },
          "spotPriceAsOf": {
            "nullable": true,
            "description": "When the spot price was read; `null` without one.",
            "type": "string",
            "format": "date-time"
          },
          "perpPriceAsOf": {
            "nullable": true,
            "description": "When the venue's perpetual ticker was read; `null` without a perp price.",
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "symbol",
          "exchange",
          "fundingRate",
          "cumRate7d",
          "apr",
          "basisRate",
          "netApr",
          "intervalHours",
          "direction",
          "portfolio",
          "nextFundingTime"
        ]
      },
      "SpotPerpArbitrageResponse": {
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/SuccessEnvelope"
              },
              {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/SpotPerpOpportunity"
                    }
                  }
                },
                "required": [
                  "data"
                ]
              }
            ]
          },
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaginatedEnvelope"
              },
              {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/SpotPerpOpportunity"
                    }
                  }
                },
                "required": [
                  "data"
                ]
              }
            ]
          }
        ]
      },
      "ReportInput": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "The read's name, as the report's `Data gaps` line names it (`funding`, `settlement`)."
          },
          "endpoint": {
            "type": "string",
            "description": "The endpoint read (its contract id, e.g. `funding-rates`), through its free route's read model."
          },
          "query": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "The query it was read with."
          },
          "dataset_id": {
            "nullable": true,
            "description": "The dataset that answered; null when the read failed.",
            "type": "string"
          },
          "as_of": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "freshness_status": {
            "nullable": true,
            "type": "string",
            "enum": [
              "fresh",
              "stale",
              "unknown"
            ]
          },
          "runtime_status": {
            "nullable": true,
            "type": "string",
            "enum": [
              "ok",
              "degraded"
            ]
          },
          "error": {
            "nullable": true,
            "description": "Why the read failed, as the report prints it under `Data gaps`; null when it answered.",
            "type": "string"
          }
        },
        "required": [
          "label",
          "endpoint",
          "query",
          "dataset_id",
          "as_of",
          "freshness_status",
          "runtime_status",
          "error"
        ],
        "description": "One read a report was composed from, with the freshness of its answer."
      },
      "BriefingReport": {
        "type": "object",
        "properties": {
          "report": {
            "type": "string",
            "enum": [
              "briefing"
            ]
          },
          "report_md": {
            "type": "string",
            "description": "The report as markdown, rendered on the server: every number is a field the endpoints it read serve, and it ends with the freshness of each answer (`**Data freshness:**`) and, when a read failed, a `**Data gaps:**` line."
          },
          "inputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportInput"
            },
            "description": "The reads, in the report's order: market-overview, narratives, funding, settlement."
          }
        },
        "required": [
          "report",
          "report_md",
          "inputs"
        ]
      },
      "BriefingResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/BriefingReport"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "CoinAnalysisReport": {
        "type": "object",
        "properties": {
          "report": {
            "type": "string",
            "enum": [
              "coin-analysis"
            ]
          },
          "coin": {
            "type": "string",
            "description": "The ticker the report covers, upper-cased."
          },
          "report_md": {
            "type": "string",
            "description": "The report as markdown, rendered on the server: every number is a field the endpoints it read serve, and it ends with the freshness of each answer (`**Data freshness:**`) and, when a read failed, a `**Data gaps:**` line."
          },
          "inputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportInput"
            },
            "description": "The reads, in the report's order: prediction, funding, funding-summary, open-interest, settlement."
          }
        },
        "required": [
          "report",
          "coin",
          "report_md",
          "inputs"
        ]
      },
      "CoinAnalysisResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/CoinAnalysisReport"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "CorrelationAsset": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "crypto",
              "tradfi"
            ]
          },
          "logoUrl": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "symbol",
          "type"
        ]
      },
      "CorrelationMatrixData": {
        "type": "object",
        "properties": {
          "assets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CorrelationAsset"
            }
          },
          "matrix": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "nullable": true,
                "type": "number"
              }
            }
          },
          "dataPoints": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          "period": {
            "type": "string",
            "enum": [
              "30d",
              "90d",
              "1y",
              "3y"
            ]
          },
          "computedAt": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "unresolved": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Requested ids no source recognises (no TradFi config, coin metadata, CoinGecko row or stored returns). Present only when non-empty; each still gets a row and column, with null correlations."
          }
        },
        "required": [
          "assets",
          "matrix",
          "dataPoints",
          "period",
          "computedAt"
        ]
      },
      "CorrelationMatrixResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/CorrelationMatrixData"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "CategoryCoverage": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "full",
              "partial",
              "insufficient",
              "unknown"
            ]
          },
          "requestedSince": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "availableSince": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "availableUntil": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "computedAt": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "pointCount": {
            "type": "integer"
          },
          "bucketSeconds": {
            "nullable": true,
            "type": "integer"
          },
          "usablePairCount": {
            "type": "integer"
          }
        },
        "required": [
          "status",
          "requestedSince",
          "availableSince",
          "availableUntil",
          "computedAt",
          "pointCount",
          "bucketSeconds",
          "usablePairCount"
        ]
      },
      "CategoryCorrelationPayload": {
        "type": "object",
        "properties": {
          "timeframe": {
            "type": "string",
            "enum": [
              "24H",
              "1W",
              "1M",
              "3M",
              "6M",
              "MTD",
              "YTD",
              "1Y"
            ]
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "matrix": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "nullable": true,
                "type": "number"
              }
            }
          },
          "coverage": {
            "$ref": "#/components/schemas/CategoryCoverage"
          },
          "availableTimeframes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "24H",
                "1W",
                "1M",
                "3M",
                "6M",
                "MTD",
                "YTD",
                "1Y"
              ]
            }
          }
        },
        "required": [
          "timeframe",
          "labels",
          "matrix"
        ]
      },
      "CategoryBasePrices": {
        "type": "object",
        "properties": {
          "btc": {
            "type": "object",
            "properties": {
              "change1h": {
                "type": "number"
              },
              "change24h": {
                "type": "number"
              },
              "change7d": {
                "type": "number"
              },
              "change30d": {
                "type": "number"
              },
              "change200d": {
                "type": "number"
              },
              "change1y": {
                "type": "number"
              }
            },
            "required": [
              "change1h",
              "change24h",
              "change7d",
              "change30d",
              "change200d",
              "change1y"
            ]
          },
          "eth": {
            "type": "object",
            "properties": {
              "change1h": {
                "type": "number"
              },
              "change24h": {
                "type": "number"
              },
              "change7d": {
                "type": "number"
              },
              "change30d": {
                "type": "number"
              },
              "change200d": {
                "type": "number"
              },
              "change1y": {
                "type": "number"
              }
            },
            "required": [
              "change1h",
              "change24h",
              "change7d",
              "change30d",
              "change200d",
              "change1y"
            ]
          },
          "sol": {
            "type": "object",
            "properties": {
              "change1h": {
                "type": "number"
              },
              "change24h": {
                "type": "number"
              },
              "change7d": {
                "type": "number"
              },
              "change30d": {
                "type": "number"
              },
              "change200d": {
                "type": "number"
              },
              "change1y": {
                "type": "number"
              }
            },
            "required": [
              "change1h",
              "change24h",
              "change7d",
              "change30d",
              "change200d",
              "change1y"
            ]
          }
        },
        "required": [
          "btc",
          "eth",
          "sol"
        ],
        "description": "BTC, ETH and SOL percent price changes from CoinGecko, used to re-base category returns into BTC, ETH or SOL terms. There are no USD prices here."
      },
      "CategorySyncCoverage": {
        "type": "object",
        "properties": {
          "expectedCount": {
            "type": "integer"
          },
          "freshCount": {
            "type": "integer"
          },
          "failedIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "retainedPreviousAggregate": {
            "type": "boolean"
          }
        },
        "required": [
          "expectedCount",
          "freshCount",
          "failedIds",
          "retainedPreviousAggregate"
        ],
        "description": "How many configured categories the last sync refreshed. When a category fetch failed and a previous aggregate existed, the previous rows are served unchanged (`retainedPreviousAggregate`)."
      },
      "EcosystemTopCoin": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string"
          },
          "image": {
            "type": "string"
          },
          "price": {
            "nullable": true,
            "type": "number"
          },
          "change24h": {
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "symbol",
          "image",
          "price",
          "change24h"
        ]
      },
      "EcosystemMarketRow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "change1h": {
            "nullable": true,
            "type": "number"
          },
          "change24h": {
            "nullable": true,
            "type": "number"
          },
          "change7d": {
            "nullable": true,
            "type": "number"
          },
          "change30d": {
            "nullable": true,
            "type": "number"
          },
          "change200d": {
            "nullable": true,
            "type": "number"
          },
          "change1y": {
            "nullable": true,
            "type": "number"
          },
          "median1h": {
            "nullable": true,
            "type": "number"
          },
          "median24h": {
            "nullable": true,
            "type": "number"
          },
          "median7d": {
            "nullable": true,
            "type": "number"
          },
          "median30d": {
            "nullable": true,
            "type": "number"
          },
          "median200d": {
            "nullable": true,
            "type": "number"
          },
          "median1y": {
            "nullable": true,
            "type": "number"
          },
          "marketCap": {
            "nullable": true,
            "type": "number"
          },
          "volume24h": {
            "nullable": true,
            "type": "number"
          },
          "openInterest": {
            "nullable": true,
            "description": "One-sided open interest across every venue, summed over the constituents' assets (each once).",
            "type": "number"
          },
          "fundingRate": {
            "nullable": true,
            "description": "Annualized, a fraction a year (0.0525 = 5.25% APR): the constituents' 8-hour-equivalent funding, weighted by their cross-venue open interest, x 1,095. Not the per-8h fraction the coin rows' fundingRate (and /global's) carry, which is ~1,000x smaller.",
            "type": "number"
          },
          "fundingApr": {
            "nullable": true,
            "type": "number"
          },
          "mcapFdvRatio": {
            "nullable": true,
            "type": "number"
          },
          "volMcapRatio": {
            "nullable": true,
            "type": "number"
          },
          "oiMcapRatio": {
            "nullable": true,
            "type": "number"
          },
          "tvl": {
            "nullable": true,
            "type": "number"
          },
          "topCoin": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/EcosystemTopCoin"
              }
            ]
          },
          "coinCount": {
            "type": "integer"
          },
          "dominance": {
            "nullable": true,
            "type": "number"
          },
          "momentum": {
            "nullable": true,
            "type": "number"
          },
          "sentimentPct": {
            "nullable": true,
            "description": "Sentiment percentage merged from the mindshare sync, or null when there is no measurement (unmeasured is not 0%).",
            "type": "number"
          },
          "mindsharePct": {
            "nullable": true,
            "description": "Mindshare percentage merged from the mindshare sync, or null when there is no measurement (unmeasured is not 0%).",
            "type": "number"
          },
          "watchlistUsers": {
            "nullable": true,
            "description": "Watchlist users merged from the mindshare sync, or null when there is no measurement (never 0 as a stand-in).",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "change1h",
          "change24h",
          "change7d",
          "change30d",
          "change200d",
          "change1y",
          "median1h",
          "median24h",
          "median7d",
          "median30d",
          "median200d",
          "median1y",
          "marketCap",
          "volume24h",
          "openInterest",
          "fundingRate",
          "mcapFdvRatio",
          "volMcapRatio",
          "oiMcapRatio",
          "tvl",
          "topCoin",
          "coinCount",
          "dominance",
          "momentum",
          "sentimentPct",
          "mindsharePct",
          "watchlistUsers"
        ]
      },
      "EcosystemCoin": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "image": {
            "type": "string"
          },
          "price": {
            "nullable": true,
            "type": "number"
          },
          "marketCap": {
            "nullable": true,
            "type": "number"
          },
          "fdv": {
            "nullable": true,
            "type": "number"
          },
          "volume24h": {
            "nullable": true,
            "type": "number"
          },
          "change1h": {
            "nullable": true,
            "type": "number"
          },
          "change24h": {
            "nullable": true,
            "type": "number"
          },
          "change7d": {
            "nullable": true,
            "type": "number"
          },
          "change30d": {
            "nullable": true,
            "type": "number"
          },
          "change200d": {
            "nullable": true,
            "type": "number"
          },
          "change1y": {
            "nullable": true,
            "type": "number"
          },
          "ath": {
            "nullable": true,
            "type": "number"
          },
          "athDistance": {
            "nullable": true,
            "type": "number"
          },
          "fundingRate": {
            "nullable": true,
            "description": "The coin's funding across venues, 8-hour-equivalent (fraction per 8 hours), open-interest-weighted over each venue's primary contract; null when no venue has a fresh rate.",
            "type": "number"
          },
          "fundingApr": {
            "nullable": true,
            "type": "number"
          },
          "openInterest": {
            "nullable": true,
            "type": "number"
          },
          "sparkline7d": {
            "type": "array",
            "items": {
              "type": "number"
            }
          }
        },
        "required": [
          "id",
          "symbol",
          "name",
          "image",
          "price",
          "marketCap",
          "fdv",
          "volume24h",
          "change1h",
          "change24h",
          "change7d",
          "change30d",
          "change200d",
          "change1y",
          "ath",
          "athDistance",
          "fundingRate",
          "fundingApr",
          "openInterest",
          "sparkline7d"
        ]
      },
      "EcosystemOverviewPayload": {
        "type": "object",
        "properties": {
          "ecosystems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EcosystemMarketRow"
            }
          },
          "totalEcosystemMcap": {
            "nullable": true,
            "type": "number"
          },
          "updatedAt": {
            "type": "string",
            "description": "ISO timestamp for populated cache data; an empty string for an empty cache response."
          },
          "basePrices": {
            "nullable": true,
            "description": "`null` when CoinGecko did not return every window for BTC, ETH and SOL; no window reads a fabricated 0.",
            "allOf": [
              {
                "$ref": "#/components/schemas/CategoryBasePrices"
              }
            ]
          },
          "lastAttemptAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the last sync ran. `updatedAt` stays at the last complete refresh when that run kept the previous rows."
          },
          "status": {
            "type": "string",
            "enum": [
              "full",
              "partial"
            ],
            "description": "`partial` when at least one category fetch failed in the last sync."
          },
          "coverage": {
            "$ref": "#/components/schemas/CategorySyncCoverage"
          },
          "totalEcosystemExposureMcap": {
            "nullable": true,
            "description": "Sum of the ecosystems' market caps, each token counted in its home ecosystem only: the denominator of `dominance`.",
            "type": "number"
          },
          "marketCapMethod": {
            "type": "string",
            "enum": [
              "eligible-home-chain-constituents",
              "home-chain-constituents",
              "deduplicated-fetched-coins"
            ],
            "description": "How `totalEcosystemMcap` and the rows' `marketCap` are computed. `eligible-home-chain-constituents` (since 2026-10-17): the coins whose home chain is the ecosystem and that are eligible: a 24h price change, market cap at least $1M, plausible 24h volume (at most 50x market cap) at least $100K, CoinGecko data under 48 hours old, and not a stablecoin, wrapped, bridged or staked copy, LP token, tokenized metal, fund, stock, ETF or pre-IPO token; the coin table, `coinCount` and every aggregate count that one set. `home-chain-constituents` (2026-09-30 to 2026-10-17): a token CoinGecko files under several ecosystems counts only in its home ecosystem (its native chain, else CoinGecko's primary asset platform), with no market-cap or volume floor on its sums. `deduplicated-fetched-coins`: the earlier method, where a multichain token counted in full in every ecosystem that listed it. A sync that kept the previous rows repeats their method."
          },
          "dominanceMethod": {
            "type": "string",
            "description": "`share-of-home-chain-market-caps` after a complete sync (`share-of-overlapping-ecosystem-exposures` before 2026-09-30). A sync that kept the previous rows repeats the previous method."
          },
          "marketCapCoinCount": {
            "type": "integer",
            "description": "Distinct constituents counted in `totalEcosystemMcap`."
          }
        },
        "required": [
          "ecosystems",
          "totalEcosystemMcap",
          "updatedAt"
        ]
      },
      "EcosystemDetailPayload": {
        "type": "object",
        "properties": {
          "ecosystems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EcosystemMarketRow"
            }
          },
          "totalEcosystemMcap": {
            "nullable": true,
            "type": "number"
          },
          "updatedAt": {
            "type": "string"
          },
          "coins": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EcosystemCoin"
            }
          },
          "sparkline": {
            "type": "array",
            "items": {
              "minItems": 2,
              "maxItems": 2,
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          "basePrices": {
            "nullable": true,
            "description": "`null` when CoinGecko did not return every window for BTC, ETH and SOL; no window reads a fabricated 0.",
            "allOf": [
              {
                "$ref": "#/components/schemas/CategoryBasePrices"
              }
            ]
          },
          "lastAttemptAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the last sync ran. `updatedAt` stays at the last complete refresh when that run kept the previous rows."
          },
          "status": {
            "type": "string",
            "enum": [
              "full",
              "partial"
            ],
            "description": "`partial` when at least one category fetch failed in the last sync."
          },
          "coverage": {
            "$ref": "#/components/schemas/CategorySyncCoverage"
          },
          "totalEcosystemExposureMcap": {
            "nullable": true,
            "description": "Sum of the ecosystems' market caps, each token counted in its home ecosystem only: the denominator of `dominance`.",
            "type": "number"
          },
          "marketCapMethod": {
            "type": "string",
            "enum": [
              "eligible-home-chain-constituents",
              "home-chain-constituents",
              "deduplicated-fetched-coins"
            ],
            "description": "How `totalEcosystemMcap` and the rows' `marketCap` are computed. `eligible-home-chain-constituents` (since 2026-10-17): the coins whose home chain is the ecosystem and that are eligible: a 24h price change, market cap at least $1M, plausible 24h volume (at most 50x market cap) at least $100K, CoinGecko data under 48 hours old, and not a stablecoin, wrapped, bridged or staked copy, LP token, tokenized metal, fund, stock, ETF or pre-IPO token; the coin table, `coinCount` and every aggregate count that one set. `home-chain-constituents` (2026-09-30 to 2026-10-17): a token CoinGecko files under several ecosystems counts only in its home ecosystem (its native chain, else CoinGecko's primary asset platform), with no market-cap or volume floor on its sums. `deduplicated-fetched-coins`: the earlier method, where a multichain token counted in full in every ecosystem that listed it. A sync that kept the previous rows repeats their method."
          },
          "dominanceMethod": {
            "type": "string",
            "description": "`share-of-home-chain-market-caps` after a complete sync (`share-of-overlapping-ecosystem-exposures` before 2026-09-30). A sync that kept the previous rows repeats the previous method."
          },
          "marketCapCoinCount": {
            "type": "integer",
            "description": "Distinct constituents counted in `totalEcosystemMcap`."
          }
        },
        "required": [
          "ecosystems",
          "totalEcosystemMcap",
          "updatedAt",
          "coins",
          "sparkline"
        ]
      },
      "EcosystemsDataResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/EcosystemOverviewPayload"
                  },
                  {
                    "$ref": "#/components/schemas/EcosystemDetailPayload"
                  },
                  {
                    "$ref": "#/components/schemas/CategoryCorrelationPayload"
                  }
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "FundingCoin": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string"
          },
          "name": {
            "nullable": true,
            "type": "string"
          },
          "logo_url": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "symbol",
          "name",
          "logo_url"
        ]
      },
      "FundingCoinsResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "coins": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/FundingCoin"
                    }
                  }
                },
                "required": [
                  "coins"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "FundingCurrentRow": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "base_coin": {
            "type": "string"
          },
          "rate": {
            "type": "number",
            "description": "Funding rate as a decimal fraction per `interval_hours`, as the venue publishes it. What it measures depends on the venue (`rate_kind`): on most venues the in-progress estimate for the settlement at `next_funding_time` (it moves until then and can differ from what the venue last charged by a multiple, or in sign); on Kraken, Crypto.com and Bitfinex the rate charged at the last settlement (`next_funding_time − interval_hours`); on Deribit the funding realised over the trailing 8 hours. The settled series is `type=history`."
          },
          "predicted_rate": {
            "nullable": true,
            "description": "The venue's own forecast for the coming settlement, when it publishes one beside `rate`: Kraken (`fundingRatePrediction`), Crypto.com (`estimated_funding_rate`, an estimate for the next 4-hour interval rather than the next hourly settlement), Pacifica (`next_funding_rate`), and Hyperliquid, where it is a copy of `rate`. `null` on every other venue (about 93% of rows), including Binance, Bybit and OKX: read `rate` and `rate_kind` there.",
            "type": "number"
          },
          "interval_hours": {
            "type": "number"
          },
          "next_funding_time": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "margin_type": {
            "type": "string",
            "enum": [
              "linear",
              "inverse"
            ],
            "description": "Collateral convention for the contract: `linear` (quote-margined) or `inverse` (coin-margined)."
          },
          "asset_class": {
            "type": "string",
            "enum": [
              "crypto",
              "equity",
              "commodity",
              "fx",
              "index"
            ],
            "description": "Underlying category: `crypto`, `equity`, `commodity`, `fx` or `index`. Tokenized-equity perps such as Bybit `TSLL` are `equity`, not `crypto`."
          },
          "mark_price": {
            "nullable": true,
            "description": "Binance's mark price for the base coin (from its premiumIndex feed), attached to every venue's row for that coin as context: it is not this venue's own mark or a traded quote. A lot contract such as `1000PEPE` carries Binance's lot price as is; a bare coin that Binance lists only as a lot is priced at the lot price divided by the lot size. `null` when Binance has no contract for the coin in the same asset class.",
            "type": "number"
          },
          "mark_price_updated_at": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "open_interest": {
            "nullable": true,
            "description": "Latest one-sided USD open interest (each contract counted once) of this contract, matched on `(exchange, symbol)`: two contracts of one coin on one venue carry their own figures. `null` when no open-interest row matched: a minority of rows, mostly on the venues Sharpe captures no open interest for. Never `0` as a stand-in for missing.",
            "type": "number"
          },
          "market_cap_rank": {
            "nullable": true,
            "description": "Market-cap rank of the base coin, where `1` is the largest. `null` when the coin is unranked. Sort unranked rows last rather than treating `null` as a rank.",
            "type": "integer"
          },
          "age_seconds": {
            "nullable": true,
            "type": "number"
          },
          "data_source": {
            "type": "string"
          },
          "freshness_sla_seconds": {
            "type": "integer"
          },
          "is_stale": {
            "type": "boolean"
          },
          "asset_id": {
            "nullable": true,
            "description": "The instrument master asset of this contract: the CoinGecko id when the asset was resolved strictly (`pepe`), otherwise `<class>:<ticker>` (`equity:bb`). Every contract of one asset carries the same id, whatever its base_coin spelling. `null` when the master does not know the contract.",
            "type": "string"
          },
          "asset_symbol": {
            "nullable": true,
            "description": "The asset ticker as a trader reads it: `PEPE` on the 1000PEPE and KPEPE contracts too. `null` when the master does not know the contract.",
            "type": "string"
          },
          "lot_multiplier": {
            "nullable": true,
            "description": "Units of the asset per unit the contract quotes: `1000` for Binance 1000PEPEUSDT, `1` for Gate.io PEPE_USDT. From the venue or a checked alias, never parsed from the symbol. `rate` is a fraction of notional and needs no scaling. `null` when unknown.",
            "type": "number"
          },
          "instrument_status": {
            "nullable": true,
            "description": "The venue's own status for the contract, as the instruments sync last read it. `null` when the master does not know the contract.",
            "type": "string",
            "enum": [
              "trading",
              "halted",
              "delisted",
              "settling",
              "pre_launch"
            ]
          },
          "is_live": {
            "nullable": true,
            "description": "`true`: trading, and the venue's contract list was read within 30 minutes. `false`: read within 30 minutes and not trading. `null`: unknown (no read in 30 minutes, a status value the sync could not interpret, or a contract the master does not know).",
            "type": "boolean"
          },
          "rate_8h": {
            "nullable": true,
            "description": "`rate` on the 8-hour basis: `rate × 8 / interval_hours`, so contracts on different intervals compare directly. `null` when the row has no rate or an interval Sharpe does not recognise, never computed from an assumed 8 hours.",
            "type": "number"
          },
          "apr": {
            "nullable": true,
            "description": "`rate` annualized over the row's own interval: `rate × 8760 / interval_hours`, a fraction (0.1 = 10%). Signed like `rate`. `null` when `rate_8h` is.",
            "type": "number"
          },
          "rate_kind": {
            "type": "string",
            "enum": [
              "estimate",
              "last_settled",
              "trailing_8h"
            ],
            "description": "What `rate` (and so `rate_8h` and `apr`) measures on this venue: `estimate`, the in-progress rate for the settlement at `next_funding_time` (most venues: Binance, Bybit, OKX, Hyperliquid, edgeX and others); `last_settled`, the rate charged at the last settlement, `next_funding_time − interval_hours` (Kraken, Crypto.com, Bitfinex); `trailing_8h`, funding realised over the last 8 hours, with `next_funding_time` on a synthetic 00/08/16 UTC grid (Deribit). Compare an `estimate` against a `last_settled` rate knowing they are one interval apart."
          }
        },
        "required": [
          "exchange",
          "symbol",
          "base_coin",
          "rate",
          "interval_hours",
          "next_funding_time",
          "updated_at",
          "margin_type",
          "asset_class",
          "mark_price",
          "mark_price_updated_at",
          "open_interest",
          "market_cap_rank",
          "age_seconds",
          "data_source",
          "freshness_sla_seconds",
          "is_stale"
        ]
      },
      "FundingAssetSummary": {
        "type": "object",
        "properties": {
          "base_coin": {
            "type": "string",
            "description": "The group's ticker: the coin's asset_symbol when the instrument master knows it, else the underlying ticker. Groups follow the funding grid: one per instrument and asset class, so `coin=PEPE` answers one `PEPE` entry over the PEPE, 1000PEPE and KPEPE contracts, KOSTOCK and NCSKKO2USD join KO, and a ticker two asset classes share answers one entry per class."
          },
          "asset_class": {
            "type": "string",
            "enum": [
              "crypto",
              "equity",
              "commodity",
              "fx",
              "index"
            ]
          },
          "funding_avg_8h": {
            "nullable": true,
            "description": "Average funding across venues on the 8-hour basis, over one primary contract per venue with a fresh rate (every venue's rate when none is fresh; see `funding_all_stale`). A `trailing_8h` rate (Deribit) is realised funding, not a current rate, and counts as stale here. Weighted by each contract's one-sided open interest when at least two venues, and a majority of them, carry open interest; otherwise the median (`funding_method`). `null` when no venue has a usable rate, never 0.",
            "type": "number"
          },
          "funding_median_8h": {
            "nullable": true,
            "description": "Median of the same venues' 8-hour rates: the companion one venue cannot move.",
            "type": "number"
          },
          "funding_method": {
            "nullable": true,
            "description": "How `funding_avg_8h` was reduced: `oi_weighted`, or `median_fallback` when too few venues carry open interest. `null` with `funding_avg_8h`.",
            "type": "string",
            "enum": [
              "oi_weighted",
              "median_fallback"
            ]
          },
          "funding_venues_used": {
            "type": "integer",
            "description": "Venues behind the figures, one primary contract each."
          },
          "funding_venues_stale": {
            "type": "integer",
            "description": "Venues left out because their rate was past the 10-minute freshness SLA, or was a `trailing_8h` rate (Deribit), while another venue was fresh."
          },
          "funding_all_stale": {
            "type": "boolean",
            "description": "`true` when no venue was fresh: the figures are then over the stale rates, and read as such."
          }
        },
        "required": [
          "base_coin",
          "asset_class",
          "funding_avg_8h",
          "funding_median_8h",
          "funding_method",
          "funding_venues_used",
          "funding_venues_stale",
          "funding_all_stale"
        ]
      },
      "FundingExtremes": {
        "type": "object",
        "properties": {
          "highest": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FundingCurrentRow"
            },
            "description": "Up to N rows with `rate_8h` ≥ 0, highest first, among fresh rows with a usable interval that clear `min_oi_usd`. Empty when no such row has a rate at or above 0."
          },
          "lowest": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FundingCurrentRow"
            },
            "description": "Up to N rows with `rate_8h` < 0, lowest first, among the same rows. A rate at or above 0 is never listed here, so this is empty when no eligible rate is below 0."
          },
          "omitted": {
            "type": "object",
            "properties": {
              "stale": {
                "type": "integer"
              },
              "no_interval": {
                "type": "integer"
              },
              "below_floor": {
                "type": "integer"
              }
            },
            "required": [
              "stale",
              "no_interval",
              "below_floor"
            ],
            "description": "Rows of the scope left out, each under the first check it failed: `stale` (past the freshness SLA), `no_interval` (no rate or no usable interval), `below_floor` (open interest below `min_oi_usd`, or unknown while the floor is above 0)."
          }
        },
        "required": [
          "highest",
          "lowest",
          "omitted"
        ]
      },
      "FundingMarketStats": {
        "type": "object",
        "properties": {
          "funding_apr_mean": {
            "nullable": true,
            "description": "Mean 8-hour funding over one primary contract per (venue, asset) with a fresh rate, every asset class included (an asset is the funding grid's row: PEPE, 1000PEPE and KPEPE are one asset, so a venue listing two of its spellings counts once), annualized (× 1,095): the computation behind `avg_funding_rate` on GET /v1/market/derivatives-overview, as an APR and without a key. `null` when no contract has a usable rate.",
            "type": "number"
          },
          "funding_apr_oi_weighted": {
            "nullable": true,
            "description": "The same, weighted by each contract's one-sided open interest (venues left out of open-interest totals carry no weight). `null` when no contract carries open interest, never the mean in its place.",
            "type": "number"
          },
          "positive": {
            "type": "integer",
            "description": "Primary contracts with a fresh rate above 0 (longs pay shorts)."
          },
          "negative": {
            "type": "integer",
            "description": "Primary contracts with a fresh rate below 0 (shorts pay longs)."
          }
        },
        "required": [
          "funding_apr_mean",
          "funding_apr_oi_weighted",
          "positive",
          "negative"
        ]
      },
      "FundingCurrentAggregates": {
        "type": "object",
        "properties": {
          "summary": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FundingAssetSummary"
            }
          },
          "extremes": {
            "$ref": "#/components/schemas/FundingExtremes"
          },
          "market": {
            "$ref": "#/components/schemas/FundingMarketStats"
          }
        }
      },
      "FundingWindowCoverage": {
        "type": "object",
        "properties": {
          "coverage_ratio": {
            "nullable": true,
            "description": "Share of the span the contract was expected to settle in that its settlements cover: from its listing (its first settlement ever) or the window start, to its halt or now, with the last settlement credited one interval, and no more than the window's `covered_hours_*` when known (so a hole inside the span reads as missing). `null` when the contract was not expected in the window at all (listed after it, or halted before it).",
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "complete": {
            "nullable": true,
            "description": "`coverage_ratio` is at least 0.9; `null` with the ratio. Complete means the span the contract was expected in is covered, not the whole window: with `halted_within_window` or `listed_within_window` true, `acc_*` sums fewer hours than the window (see `covered_hours_*`). Compare `acc_*` across contracts only on complete windows where both of those are false.",
            "type": "boolean"
          },
          "listed_within_window": {
            "type": "boolean",
            "description": "The contract's first settlement ever falls inside the window: a short history here is a new listing, not missing data."
          },
          "halted_within_window": {
            "type": "boolean",
            "description": "The contract stopped trading inside the window: the window is measured up to that halt. The halt is when the instrument master recorded the venue's status leaving trading; when the master has no such time (it first saw the contract already halted), it is the last settlement plus one interval once the contract's current row stopped updating or left the book. `false` when no halt time is known: then the window runs to now and missing settlements read as missing."
          }
        },
        "required": [
          "coverage_ratio",
          "complete",
          "listed_within_window",
          "halted_within_window"
        ]
      },
      "FundingAccumulatedRow": {
        "type": "object",
        "properties": {
          "base_coin": {
            "type": "string"
          },
          "exchange": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "acc_1d": {
            "nullable": true,
            "type": "number"
          },
          "acc_7d": {
            "nullable": true,
            "type": "number"
          },
          "acc_30d": {
            "nullable": true,
            "type": "number"
          },
          "acc_90d": {
            "nullable": true,
            "type": "number"
          },
          "acc_1y": {
            "nullable": true,
            "type": "number"
          },
          "settlements_1d": {
            "type": "integer"
          },
          "settlements_7d": {
            "type": "integer"
          },
          "settlements_30d": {
            "type": "integer"
          },
          "settlements_90d": {
            "type": "integer"
          },
          "settlements_1y": {
            "type": "integer"
          },
          "first_settled_at": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "last_settled_at": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "covered_hours_1d": {
            "nullable": true,
            "description": "Hours of funding the settlements summed in `acc_1d` stand for: the sum of their `interval_hours`. Fewer hours than the window (or than the contract's listed span inside it) means missing settlements, also in the middle of the window. It can exceed the window by up to one interval (a first settlement's interval reaches back past the window start). `null` when unknown.",
            "type": "number",
            "minimum": 0
          },
          "covered_hours_7d": {
            "nullable": true,
            "description": "Hours of funding the settlements summed in `acc_7d` stand for: the sum of their `interval_hours`. Fewer hours than the window (or than the contract's listed span inside it) means missing settlements, also in the middle of the window. It can exceed the window by up to one interval (a first settlement's interval reaches back past the window start). `null` when unknown.",
            "type": "number",
            "minimum": 0
          },
          "covered_hours_30d": {
            "nullable": true,
            "description": "Hours of funding the settlements summed in `acc_30d` stand for: the sum of their `interval_hours`. Fewer hours than the window (or than the contract's listed span inside it) means missing settlements, also in the middle of the window. It can exceed the window by up to one interval (a first settlement's interval reaches back past the window start). `null` when unknown.",
            "type": "number",
            "minimum": 0
          },
          "covered_hours_90d": {
            "nullable": true,
            "description": "Hours of funding the settlements summed in `acc_90d` stand for: the sum of their `interval_hours`. Fewer hours than the window (or than the contract's listed span inside it) means missing settlements, also in the middle of the window. It can exceed the window by up to one interval (a first settlement's interval reaches back past the window start). `null` when unknown.",
            "type": "number",
            "minimum": 0
          },
          "covered_hours_1y": {
            "nullable": true,
            "description": "Hours of funding the settlements summed in `acc_1y` stand for: the sum of their `interval_hours`. Fewer hours than the window (or than the contract's listed span inside it) means missing settlements, also in the middle of the window. It can exceed the window by up to one interval (a first settlement's interval reaches back past the window start). `null` when unknown.",
            "type": "number",
            "minimum": 0
          },
          "asset_class": {
            "nullable": true,
            "description": "Underlying category, joined in from the live contract book. `null` when no live contract matches, rather than being defaulted to `crypto`.",
            "type": "string",
            "enum": [
              "crypto",
              "equity",
              "commodity",
              "fx",
              "index"
            ]
          },
          "margin_type": {
            "nullable": true,
            "description": "Collateral convention, joined in from the live contract book. `null` when no live contract matches.",
            "type": "string",
            "enum": [
              "linear",
              "inverse"
            ]
          },
          "interval_hours": {
            "nullable": true,
            "description": "The contract's own settlement interval, joined in from the live contract book. `null` when no live contract matches `(exchange, symbol)`. Expected settlements for a window are `ceil(window_hours / interval_hours)`. Compare `settlements_*` against that, never against a fixed 8-hour assumption.",
            "type": "number"
          },
          "is_active": {
            "type": "boolean",
            "description": "`false` when the accumulated identity has no live contract behind it, meaning a delisted or renamed pair. Those rows keep their accumulated history but carry `null` metadata."
          },
          "asset_id": {
            "nullable": true,
            "description": "The instrument master asset of this contract: the CoinGecko id when the asset was resolved strictly (`pepe`), otherwise `<class>:<ticker>` (`equity:bb`). Every contract of one asset carries the same id, whatever its base_coin spelling. `null` when the master does not know the contract.",
            "type": "string"
          },
          "asset_symbol": {
            "nullable": true,
            "description": "The asset ticker as a trader reads it: `PEPE` on the 1000PEPE and KPEPE contracts too. `null` when the master does not know the contract.",
            "type": "string"
          },
          "lot_multiplier": {
            "nullable": true,
            "description": "Units of the asset per unit the contract quotes: `1000` for Binance 1000PEPEUSDT, `1` for Gate.io PEPE_USDT. From the venue or a checked alias, never parsed from the symbol. `rate` is a fraction of notional and needs no scaling. `null` when unknown.",
            "type": "number"
          },
          "instrument_status": {
            "nullable": true,
            "description": "The venue's own status for the contract, as the instruments sync last read it. `null` when the master does not know the contract.",
            "type": "string",
            "enum": [
              "trading",
              "halted",
              "delisted",
              "settling",
              "pre_launch"
            ]
          },
          "is_live": {
            "nullable": true,
            "description": "`true`: trading, and the venue's contract list was read within 30 minutes. `false`: read within 30 minutes and not trading. `null`: unknown (no read in 30 minutes, a status value the sync could not interpret, or a contract the master does not know).",
            "type": "boolean"
          },
          "coverage": {
            "type": "object",
            "properties": {
              "1d": {
                "$ref": "#/components/schemas/FundingWindowCoverage"
              },
              "7d": {
                "$ref": "#/components/schemas/FundingWindowCoverage"
              },
              "30d": {
                "$ref": "#/components/schemas/FundingWindowCoverage"
              },
              "90d": {
                "$ref": "#/components/schemas/FundingWindowCoverage"
              },
              "1y": {
                "$ref": "#/components/schemas/FundingWindowCoverage"
              }
            },
            "required": [
              "1d",
              "7d",
              "30d",
              "90d",
              "1y"
            ],
            "description": "How much of each window (`acc_1d` … `acc_1y`) the contract's settlements cover, judged against when it was listed and when it stopped trading."
          }
        },
        "required": [
          "base_coin",
          "exchange",
          "symbol",
          "acc_1d",
          "acc_7d",
          "acc_30d",
          "acc_90d",
          "acc_1y",
          "settlements_1d",
          "settlements_7d",
          "settlements_30d",
          "settlements_90d",
          "settlements_1y",
          "first_settled_at",
          "last_settled_at",
          "asset_class",
          "margin_type",
          "interval_hours",
          "is_active"
        ]
      },
      "FundingHistoryRow": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "symbol": {
            "type": "string",
            "description": "The contract that settled. A coin can span several contracts per venue (a USDT and a USDC perp, or PEPE beside 1000PEPE lots), so read series per (exchange, symbol)."
          },
          "rate": {
            "type": "number"
          },
          "interval_hours": {
            "type": "number"
          },
          "settled_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "exchange",
          "rate",
          "interval_hours",
          "settled_at"
        ]
      },
      "FundingRatesResponse": {
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/SuccessEnvelope"
              },
              {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/FundingCurrentRow"
                        },
                        {
                          "$ref": "#/components/schemas/FundingAccumulatedRow"
                        },
                        {
                          "$ref": "#/components/schemas/FundingHistoryRow"
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "data"
                ]
              }
            ]
          },
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaginatedEnvelope"
              },
              {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/FundingCurrentRow"
                        },
                        {
                          "$ref": "#/components/schemas/FundingAccumulatedRow"
                        },
                        {
                          "$ref": "#/components/schemas/FundingHistoryRow"
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "data"
                ]
              }
            ]
          },
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/SuccessEnvelope"
              },
              {
                "type": "object",
                "properties": {
                  "data": {
                    "$ref": "#/components/schemas/FundingCurrentAggregates"
                  }
                },
                "required": [
                  "data"
                ]
              }
            ]
          }
        ]
      },
      "OpenInterestExclusion": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "exchange",
          "reason"
        ],
        "description": "A venue whose stored open interest is published per venue but left out of every cross-venue total, and why. MEXC today: its holdVol moves 7.00x the position change of MEXC's own deal feed, so it fits neither side count."
      },
      "SettlementWindowValue": {
        "type": "object",
        "properties": {
          "net": {
            "nullable": true,
            "type": "number"
          },
          "long_paid": {
            "nullable": true,
            "type": "number",
            "minimum": 0
          },
          "short_paid": {
            "nullable": true,
            "type": "number",
            "minimum": 0
          },
          "estimated": {
            "type": "boolean",
            "description": "True on the current window only: priced live from the in-progress rate and latest open interest, not from the matview."
          },
          "rate_source": {
            "nullable": true,
            "description": "Where the current window's rate came from: `predicted` (the venue's `predicted_rate`, published only by Kraken, Crypto.com, Pacifica and Hyperliquid, where it equals `rate`), `current` (the row's `rate`), or `mixed` on a coin, venue or total row whose contracts used both. `current` is the normal path, and it is the forward estimate only where the funding book's `rate_kind` is `estimate`: on Bitfinex it is the last settled rate and on Deribit the trailing 8-hour realised rate, projected forward. `null` when no contract was priced.",
            "type": "string",
            "enum": [
              "predicted",
              "current",
              "mixed"
            ]
          },
          "coverage_ratio": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "Realised windows only: how much of the window is covered by priced history. Open interest accrues only forward, so a newly-priced venue's 7d column starts below 1.0. A coin, venue or total row is the open-interest-weighted mean of its contracts' ratios; a contract that stopped settling (halted or delisted) is expected only until its last priced settlement plus one interval."
          },
          "partial": {
            "type": "boolean",
            "description": "Realised windows only: true when coverage_ratio is below 0.9. The numbers still render -- partial means building history, not hidden."
          },
          "complete": {
            "type": "boolean",
            "description": "Realised windows with a coverage_ratio only: true when coverage_ratio is at least 0.9 (the opposite of `partial`)."
          },
          "listed_within_window": {
            "nullable": true,
            "description": "Realised windows with a coverage_ratio only: whether a contract behind the value was listed inside the window. Always `null` on this endpoint today: the settlement data prices seven days and carries no listing time, so a listing is unknown, never assumed.",
            "type": "boolean"
          },
          "halted_within_window": {
            "type": "boolean",
            "description": "Realised windows with a coverage_ratio only: true when a contract priced in the window stopped settling inside it: its funding row left the live book or went stale, and its last priced settlement plus one interval falls in the window. Its coverage is measured only up to that point, so a halt does not read as missing history."
          }
        },
        "required": [
          "net",
          "long_paid",
          "short_paid"
        ],
        "description": "net = long_paid - short_paid. Both legs are always present alongside net -- a $0 net can conceal $50M flowing each way. Null means an unpriced/absent contract, never a zero flow."
      },
      "SettlementWindows": {
        "type": "object",
        "properties": {
          "current": {
            "$ref": "#/components/schemas/SettlementWindowValue"
          },
          "1d": {
            "$ref": "#/components/schemas/SettlementWindowValue"
          },
          "3d": {
            "$ref": "#/components/schemas/SettlementWindowValue"
          },
          "7d": {
            "$ref": "#/components/schemas/SettlementWindowValue"
          }
        },
        "required": [
          "current",
          "1d",
          "3d",
          "7d"
        ]
      },
      "SettlementVenueRow": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "open_interest_usd": {
            "nullable": true,
            "type": "number"
          },
          "windows": {
            "$ref": "#/components/schemas/SettlementWindows"
          },
          "excluded_from_totals": {
            "type": "string",
            "description": "Present only on a venue whose open interest is priced per venue but left out of the coin row and the totals (MEXC today), with the reason."
          }
        },
        "required": [
          "exchange",
          "open_interest_usd",
          "windows"
        ]
      },
      "SettlementRow": {
        "type": "object",
        "properties": {
          "base_coin": {
            "type": "string"
          },
          "asset_class": {
            "type": "string",
            "enum": [
              "crypto",
              "equity",
              "commodity",
              "fx",
              "index"
            ]
          },
          "price": {
            "nullable": true,
            "description": "Always `null`: no price source is wired into this endpoint (the settlement, funding and open-interest tables it reads carry no spot price). Use `/v1/market-cap/search` for spot price.",
            "type": "number"
          },
          "price_change_24h_pct": {
            "nullable": true,
            "description": "Always `null`, for the same reason as `price`.",
            "type": "number"
          },
          "open_interest_usd": {
            "nullable": true,
            "type": "number"
          },
          "windows": {
            "$ref": "#/components/schemas/SettlementWindows"
          },
          "venues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SettlementVenueRow"
            },
            "description": "Present only when expand=venues is requested."
          }
        },
        "required": [
          "base_coin",
          "asset_class",
          "price",
          "price_change_24h_pct",
          "open_interest_usd",
          "windows"
        ]
      },
      "SettlementMeta": {
        "type": "object",
        "properties": {
          "class": {
            "type": "string",
            "enum": [
              "all",
              "crypto",
              "equity",
              "commodity",
              "fx",
              "index",
              "rwa"
            ]
          },
          "coins": {
            "type": "integer",
            "description": "Coins in the selected class, matching the scope of `totals` -- independent of any coin/exchange filter or pagination on this specific request."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the settlement data was refreshed (the funding_fee_settlement matview's refresh, every 15 minutes), not the request time."
          },
          "oi_excluded_venues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenInterestExclusion"
            },
            "description": "Venues whose settlement dollars are left out of every coin row and the totals (shown only in the venues breakdown), with the reason."
          },
          "total": {
            "type": "integer",
            "description": "Coins matching this request's coin/exchange filters, before pagination."
          },
          "limit": {
            "type": "integer"
          },
          "offset": {
            "type": "integer"
          }
        },
        "required": [
          "class",
          "coins",
          "updated_at",
          "total",
          "limit",
          "offset"
        ]
      },
      "SettlementResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "rows": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/SettlementRow"
                    }
                  },
                  "totals": {
                    "description": "Same net/long_paid/short_paid shape as a row, scoped to the selected `class`. The five classes, and crypto + rwa, sum to all in every window, for net, long_paid and short_paid.",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/SettlementWindows"
                      }
                    ]
                  },
                  "settlementMeta": {
                    "$ref": "#/components/schemas/SettlementMeta"
                  },
                  "pagination": {
                    "nullable": true,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/PaginationInfo"
                      }
                    ]
                  }
                },
                "required": [
                  "rows",
                  "totals",
                  "settlementMeta",
                  "pagination"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "FuturesCoin": {
        "type": "object",
        "properties": {
          "baseCoin": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "hasOI": {
            "type": "boolean"
          },
          "hasFunding": {
            "type": "boolean"
          },
          "hasLiquidations": {
            "type": "boolean"
          },
          "hasLongShort": {
            "type": "boolean"
          },
          "hasCVD": {
            "type": "boolean"
          },
          "hasBasis": {
            "type": "boolean"
          },
          "venueCount": {
            "type": "integer",
            "description": "Core venues (Binance, Bybit, OKX, Deribit, Hyperliquid) the coin sync observed listing a perp; 0 when none. Not the full venue coverage: funding and open-interest charts can serve more venues."
          },
          "venues": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The core venues counted by venueCount; empty when none was observed."
          },
          "marketCapRank": {
            "nullable": true,
            "description": "CoinGecko market-cap rank; null when the coin has none.",
            "type": "integer"
          }
        },
        "required": [
          "baseCoin",
          "displayName",
          "hasOI",
          "hasFunding",
          "hasLiquidations",
          "hasLongShort",
          "hasCVD",
          "hasBasis",
          "venueCount",
          "venues",
          "marketCapRank"
        ]
      },
      "FuturesCoinsResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "coins": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/FuturesCoin"
                    }
                  }
                },
                "required": [
                  "coins"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "FuturesCoverage": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "full",
              "partial",
              "insufficient",
              "unknown"
            ],
            "description": "\"partial\" when a database read failed or timed out after some rows arrived, or stopped at its row cap, so the oldest rows in the window can be missing; warnings says which. Omitted when every read completed."
          },
          "availableSince": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "availableUntil": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "pointCount": {
            "type": "integer"
          },
          "availableTimeframes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "1W",
                "2W",
                "1M",
                "3M",
                "6M",
                "1Y",
                "3Y"
              ]
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "One sentence per gap: an incomplete database read, a read stopped at its row cap, an open-interest history (oi-stacked, oi-change, oi-daily-change) above 30,000 rows resampled per venue to 2-, 4-, 6-, 12- or 24-hour buckets (last value per venue) to fit the response, an open-interest bucket that is the current (still filling) hour, or chart=cvd venues whose candles carry no taker buy volume."
          }
        },
        "required": [
          "availableSince",
          "availableTimeframes"
        ]
      },
      "OpenInterestPoint": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "base_coin": {
            "type": "string"
          },
          "open_interest_value": {
            "type": "number",
            "description": "One-sided open interest in USD at the sampled price: a change between two rows includes the price move, not only positions opened or closed."
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "The UTC hour bucket (its start). The value is the last ~10-minute sample the capture saw inside that hour, so it is about the OI at the bucket's END (it lines up with Binance openInterestHist at the next hour). The newest bucket is still filling while its hour runs; coverage.warnings names it."
          },
          "_type": {
            "description": "Composite charts only: which input leg the row is. perp-dislocation = basis + funding + oi; funding-cost = funding + oi; crowding-risk = funding + oi + long-short (account rows) + ohlcv (Binance candles); flow-confirmation = ohlcv + oi (Binance); carry-curve = term-structure + funding (each venue's latest settlement). The composite signal is not computed by the server: the rows are its raw inputs. Also on oi-volume's open-interest rows when they come from the live venue fallback. Absent elsewhere.",
            "type": "string",
            "enum": [
              "funding",
              "oi",
              "basis",
              "long-short",
              "ohlcv",
              "term-structure"
            ]
          }
        },
        "required": [
          "exchange",
          "base_coin",
          "open_interest_value",
          "timestamp"
        ]
      },
      "OhlcvPoint": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "base_coin": {
            "type": "string"
          },
          "timeframe": {
            "type": "string"
          },
          "open": {
            "type": "number"
          },
          "high": {
            "type": "number"
          },
          "low": {
            "type": "number"
          },
          "close": {
            "type": "number"
          },
          "volume": {
            "type": "number",
            "description": "Base-asset volume of the candle (not USD)."
          },
          "taker_buy_volume": {
            "nullable": true,
            "description": "Base-asset taker buy volume; null where the venue publishes none (only Binance candles carry it today, so CVD exists only for Binance).",
            "type": "number"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "The candle's open (bucket start). Only closed candles are stored, so the newest candle can be up to ~2 hours old."
          },
          "volume_usd": {
            "description": "Aggregated candles only (free route, downsampled 4h/1d buckets): the sum of each source candle's volume × its close. Null when a source candle lacks either.",
            "nullable": true,
            "type": "number"
          },
          "cvd_delta_usd": {
            "description": "chart=cvd, candles with taker volume only: (taker buy − taker sell) × close = (2 × taker_buy_volume − volume) × close, USD.",
            "type": "number"
          },
          "cvd_usd": {
            "description": "chart=cvd, candles with taker volume only: the venue's cumulative volume delta, the running sum of `cvd_delta_usd` from the window's first candle, USD.",
            "type": "number"
          },
          "_type": {
            "description": "Composite charts only: which input leg the row is. perp-dislocation = basis + funding + oi; funding-cost = funding + oi; crowding-risk = funding + oi + long-short (account rows) + ohlcv (Binance candles); flow-confirmation = ohlcv + oi (Binance); carry-curve = term-structure + funding (each venue's latest settlement). The composite signal is not computed by the server: the rows are its raw inputs. Also on oi-volume's open-interest rows when they come from the live venue fallback. Absent elsewhere.",
            "type": "string",
            "enum": [
              "funding",
              "oi",
              "basis",
              "long-short",
              "ohlcv",
              "term-structure"
            ]
          }
        },
        "required": [
          "exchange",
          "base_coin",
          "timeframe",
          "open",
          "high",
          "low",
          "close",
          "volume",
          "taker_buy_volume",
          "timestamp"
        ]
      },
      "FundingPoint": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "base_coin": {
            "type": "string"
          },
          "rate": {
            "type": "number"
          },
          "interval_hours": {
            "type": "number"
          },
          "settled_at": {
            "type": "string",
            "format": "date-time"
          },
          "_type": {
            "description": "Composite charts only: which input leg the row is. perp-dislocation = basis + funding + oi; funding-cost = funding + oi; crowding-risk = funding + oi + long-short (account rows) + ohlcv (Binance candles); flow-confirmation = ohlcv + oi (Binance); carry-curve = term-structure + funding (each venue's latest settlement). The composite signal is not computed by the server: the rows are its raw inputs. Also on oi-volume's open-interest rows when they come from the live venue fallback. Absent elsewhere.",
            "type": "string",
            "enum": [
              "funding",
              "oi",
              "basis",
              "long-short",
              "ohlcv",
              "term-structure"
            ]
          }
        },
        "required": [
          "exchange",
          "base_coin",
          "rate",
          "interval_hours",
          "settled_at"
        ]
      },
      "LongShortPoint": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "base_coin": {
            "type": "string"
          },
          "long_ratio": {
            "type": "number"
          },
          "short_ratio": {
            "type": "number"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "_type": {
            "description": "Composite charts only: which input leg the row is. perp-dislocation = basis + funding + oi; funding-cost = funding + oi; crowding-risk = funding + oi + long-short (account rows) + ohlcv (Binance candles); flow-confirmation = ohlcv + oi (Binance); carry-curve = term-structure + funding (each venue's latest settlement). The composite signal is not computed by the server: the rows are its raw inputs. Also on oi-volume's open-interest rows when they come from the live venue fallback. Absent elsewhere.",
            "type": "string",
            "enum": [
              "funding",
              "oi",
              "basis",
              "long-short",
              "ohlcv",
              "term-structure"
            ]
          }
        },
        "required": [
          "exchange",
          "base_coin",
          "long_ratio",
          "short_ratio",
          "timestamp"
        ],
        "description": "long-short-ratio: the venue's account ratio (all accounts). top-trader-ls: the venue's top traders, with `exchange` suffixed `_top_trader`. The two populations are never mixed in one chart."
      },
      "BasisPoint": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "base_coin": {
            "type": "string"
          },
          "spot_price": {
            "type": "number"
          },
          "futures_price": {
            "type": "number"
          },
          "basis_rate": {
            "type": "number",
            "description": "Instantaneous perp premium: (perp mark − spot) / spot, as a fraction."
          },
          "annualized_basis": {
            "type": "number",
            "description": "Legacy name: NOT annualized. The same instantaneous premium in percent (basis_rate × 100, enforced by the table). For an annualized dated-futures basis use chart=annualized-basis (annualized_basis_pct)."
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "_type": {
            "description": "Composite charts only: which input leg the row is. perp-dislocation = basis + funding + oi; funding-cost = funding + oi; crowding-risk = funding + oi + long-short (account rows) + ohlcv (Binance candles); flow-confirmation = ohlcv + oi (Binance); carry-curve = term-structure + funding (each venue's latest settlement). The composite signal is not computed by the server: the rows are its raw inputs. Also on oi-volume's open-interest rows when they come from the live venue fallback. Absent elsewhere.",
            "type": "string",
            "enum": [
              "funding",
              "oi",
              "basis",
              "long-short",
              "ohlcv",
              "term-structure"
            ]
          }
        },
        "required": [
          "exchange",
          "base_coin",
          "spot_price",
          "futures_price",
          "basis_rate",
          "annualized_basis",
          "timestamp"
        ]
      },
      "LiquidationPoint": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "base_coin": {
            "type": "string"
          },
          "side": {
            "type": "string",
            "enum": [
              "long",
              "short"
            ]
          },
          "quantity": {
            "type": "number",
            "description": "USD notional liquidated on this side in the hour bucket starting at `timestamp` (Binance and Bybit from our own capture of their liquidation streams, Deribit from Velo; OKX is not served because its series is a delayed, partial sample of OKX's liquidations, not their total). Already in USD: do not multiply by a price. The newest hour is still accumulating."
          },
          "price": {
            "nullable": true,
            "description": "Always null: the hourly buckets carry no fill price.",
            "type": "number"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "exchange",
          "base_coin",
          "side",
          "quantity",
          "price",
          "timestamp"
        ]
      },
      "TermStructurePoint": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "base_coin": {
            "type": "string"
          },
          "contract_symbol": {
            "type": "string"
          },
          "expiry_date": {
            "type": "string",
            "format": "date-time"
          },
          "days_to_expiry": {
            "type": "number"
          },
          "futures_price": {
            "type": "number"
          },
          "spot_price": {
            "type": "number"
          },
          "basis_pct": {
            "type": "number"
          },
          "annualized_basis_pct": {
            "type": "number"
          },
          "volume_24h_usd": {
            "nullable": true,
            "type": "number"
          },
          "open_interest_usd": {
            "nullable": true,
            "type": "number"
          },
          "snapshot_at": {
            "type": "string",
            "format": "date-time"
          },
          "_type": {
            "description": "Composite charts only: which input leg the row is. perp-dislocation = basis + funding + oi; funding-cost = funding + oi; crowding-risk = funding + oi + long-short (account rows) + ohlcv (Binance candles); flow-confirmation = ohlcv + oi (Binance); carry-curve = term-structure + funding (each venue's latest settlement). The composite signal is not computed by the server: the rows are its raw inputs. Also on oi-volume's open-interest rows when they come from the live venue fallback. Absent elsewhere.",
            "type": "string",
            "enum": [
              "funding",
              "oi",
              "basis",
              "long-short",
              "ohlcv",
              "term-structure"
            ]
          }
        },
        "required": [
          "exchange",
          "base_coin",
          "contract_symbol",
          "expiry_date",
          "days_to_expiry",
          "futures_price",
          "spot_price",
          "basis_pct",
          "annualized_basis_pct",
          "volume_24h_usd",
          "open_interest_usd",
          "snapshot_at"
        ]
      },
      "AnnualizedBasisPoint": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "base_coin": {
            "type": "string"
          },
          "contract_symbol": {
            "type": "string"
          },
          "days_to_expiry": {
            "type": "number"
          },
          "annualized_basis_pct": {
            "type": "number"
          },
          "snapshot_at": {
            "type": "string",
            "format": "date-time"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "exchange",
          "base_coin",
          "contract_symbol",
          "days_to_expiry",
          "annualized_basis_pct",
          "snapshot_at",
          "timestamp"
        ]
      },
      "FuturesPriceOverlayPoint": {
        "type": "object",
        "properties": {
          "base_coin": {
            "type": "string"
          },
          "timeframe": {
            "type": "string"
          },
          "close": {
            "type": "number"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "base_coin",
          "timeframe",
          "close",
          "timestamp"
        ],
        "description": "v1 only, on oi-stacked and liquidations: Binance candle closes joined into `data` beside the chart's rows as a price overlay. They carry `close` and no `exchange`; filter them out before summing liquidation or OI rows."
      },
      "FuturesDataPoint": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/OpenInterestPoint"
          },
          {
            "$ref": "#/components/schemas/OhlcvPoint"
          },
          {
            "$ref": "#/components/schemas/FundingPoint"
          },
          {
            "$ref": "#/components/schemas/LongShortPoint"
          },
          {
            "$ref": "#/components/schemas/BasisPoint"
          },
          {
            "$ref": "#/components/schemas/LiquidationPoint"
          },
          {
            "$ref": "#/components/schemas/TermStructurePoint"
          },
          {
            "$ref": "#/components/schemas/AnnualizedBasisPoint"
          },
          {
            "$ref": "#/components/schemas/FuturesPriceOverlayPoint"
          }
        ]
      },
      "FuturesOiSummary": {
        "type": "object",
        "properties": {
          "oi_total_usd": {
            "nullable": true,
            "description": "The coin's one-sided open interest across venues (engine L4 `oi.asset_total_usd`): each venue's latest reading within 6 hours, summed, rounded to whole USD. Venues in `oi_excluded_venues` are left out. Null when no venue has a reading within 6 hours (`oi_null_reason`).",
            "type": "number"
          },
          "oi_venue_count": {
            "nullable": true,
            "description": "Venues inside `oi_total_usd`.",
            "type": "integer"
          },
          "oi_as_of": {
            "nullable": true,
            "description": "The oldest reading inside `oi_total_usd` (each venue's latest reading is hour-bucketed).",
            "type": "string",
            "format": "date-time"
          },
          "oi_null_reason": {
            "description": "Why `oi_total_usd` is null (`no_eligible_inputs`: no venue reading within 6 hours). Present only then.",
            "type": "string"
          },
          "oi_excluded_venues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenInterestExclusion"
            },
            "description": "Venues that have a reading for this coin but are left out of the total, with the reason (MEXC today)."
          }
        },
        "required": [
          "oi_total_usd",
          "oi_venue_count",
          "oi_as_of",
          "oi_excluded_venues"
        ],
        "description": "chart=oi-snapshot only: the coin's open interest summed across venues, computed by the server from the rows it returns."
      },
      "FuturesDataPayload": {
        "type": "object",
        "properties": {
          "chart": {
            "type": "string",
            "enum": [
              "perp-dislocation",
              "funding-cost",
              "crowding-risk",
              "flow-confirmation",
              "carry-curve",
              "perpetual-price",
              "liquidations",
              "oi-stacked",
              "oi-change",
              "oi-daily-change",
              "oi-snapshot",
              "oi-volume",
              "volume-snapshot",
              "volume-history",
              "cvd",
              "long-short-ratio",
              "funding-rate",
              "top-trader-ls",
              "returns-session",
              "returns-heatmap",
              "returns-hour",
              "returns-day",
              "annualized-basis",
              "term-structure"
            ]
          },
          "coin": {
            "type": "string"
          },
          "timeframe": {
            "type": "string",
            "enum": [
              "1W",
              "2W",
              "1M",
              "3M",
              "6M",
              "1Y",
              "3Y"
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FuturesDataPoint"
            }
          },
          "openInterestExcludedVenues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenInterestExclusion"
            },
            "description": "Open-interest charts only (oi-stacked, oi-change, oi-daily-change, oi-snapshot): venues whose rows are shown per venue but must not be summed into a total, with the reason."
          },
          "coverage": {
            "$ref": "#/components/schemas/FuturesCoverage"
          },
          "source": {
            "type": "string",
            "enum": [
              "supabase"
            ]
          },
          "pagination": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PaginationInfo"
              }
            ]
          },
          "summary": {
            "$ref": "#/components/schemas/FuturesOiSummary"
          }
        },
        "required": [
          "chart",
          "coin",
          "timeframe",
          "data",
          "coverage",
          "source"
        ]
      },
      "FuturesDataResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/FuturesDataPayload"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "GemCoin": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "image": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "marketCap": {
            "type": "number"
          },
          "fdv": {
            "nullable": true,
            "type": "number"
          },
          "volume24h": {
            "type": "number"
          },
          "change24h": {
            "nullable": true,
            "type": "number"
          },
          "change7d": {
            "nullable": true,
            "type": "number"
          },
          "mcapChange24h": {
            "nullable": true,
            "description": "24-hour market cap change percentage.",
            "type": "number"
          },
          "circulatingSupply": {
            "nullable": true,
            "description": "Circulating supply in token units.",
            "type": "number"
          },
          "athPrice": {
            "nullable": true,
            "type": "number"
          },
          "athDistance": {
            "nullable": true,
            "type": "number"
          },
          "athDate": {
            "type": "string",
            "description": "ISO 8601 time of the all-time high, as CoinGecko sends it. An empty string when CoinGecko sends none."
          },
          "atlPrice": {
            "nullable": true,
            "description": "All-time-low price in USD.",
            "type": "number"
          },
          "atlDistance": {
            "nullable": true,
            "description": "Percentage above the all-time low.",
            "type": "number"
          },
          "fdvMcapRatio": {
            "nullable": true,
            "type": "number"
          },
          "exchangeCount": {
            "type": "integer"
          },
          "exchanges": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "chainSlug": {
            "nullable": true,
            "description": "Home chain: CoinGecko's primary asset platform, or the chain itself for a chain's own coin (SOL, BNB, POL), contract or not. The chain filter matches this. Null when the home is not a supported chain, even if the asset is bridged to one.",
            "type": "string"
          },
          "chainSlugs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The home chain (chainSlug, when set) first, then every other supported chain with a contract for the asset (bridged deployments), in priority order. An empty array means no supported chain is known."
          },
          "lastUpdated": {
            "nullable": true,
            "description": "CoinGecko quote timestamp. Assets whose quote is older than 24 hours are excluded as no-longer-trading; a null value means the upstream omitted the field.",
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "symbol",
          "image",
          "price",
          "marketCap",
          "fdv",
          "volume24h",
          "change24h",
          "change7d",
          "mcapChange24h",
          "circulatingSupply",
          "athPrice",
          "athDistance",
          "athDate",
          "atlPrice",
          "atlDistance",
          "fdvMcapRatio",
          "exchangeCount",
          "exchanges",
          "chainSlug",
          "chainSlugs",
          "lastUpdated"
        ]
      },
      "GemFinderSyncStatus": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "partial"
            ]
          },
          "rawCoinCount": {
            "type": "integer",
            "minimum": 0
          },
          "successfulPages": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1
            }
          },
          "failedPages": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1
            }
          },
          "enrichment": {
            "type": "object",
            "properties": {
              "platform": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "ok",
                      "degraded",
                      "unavailable"
                    ]
                  },
                  "freshCoins": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "preservedCoins": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "status",
                  "freshCoins",
                  "preservedCoins"
                ]
              },
              "exchanges": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "ok",
                      "partial",
                      "unavailable"
                    ]
                  },
                  "successfulSources": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "failedSources": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "preservedListings": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "status",
                  "successfulSources",
                  "failedSources",
                  "preservedListings"
                ]
              }
            },
            "required": [
              "platform",
              "exchanges"
            ]
          }
        },
        "required": [
          "status"
        ]
      },
      "GemFinderPayload": {
        "type": "object",
        "properties": {
          "coins": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GemCoin"
            }
          },
          "availableExchanges": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "totalCoins": {
            "type": "integer"
          },
          "updatedAt": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "syncStatus": {
            "$ref": "#/components/schemas/GemFinderSyncStatus"
          }
        },
        "required": [
          "coins",
          "availableExchanges",
          "totalCoins",
          "updatedAt"
        ]
      },
      "GemFinderResponse": {
        "oneOf": [
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/SuccessEnvelope"
              },
              {
                "type": "object",
                "properties": {
                  "data": {
                    "$ref": "#/components/schemas/GemFinderPayload"
                  }
                },
                "required": [
                  "data"
                ]
              }
            ]
          },
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaginatedEnvelope"
              },
              {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/GemCoin"
                    }
                  }
                },
                "required": [
                  "data"
                ]
              }
            ]
          }
        ]
      },
      "GlobalRow": {
        "type": "object",
        "properties": {
          "rank": {
            "type": "integer"
          },
          "symbol": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "logoUrl": {
            "nullable": true,
            "type": "string"
          },
          "price": {
            "nullable": true,
            "description": "Crypto tab: the freshest of the coin's 1h futures candle close, its Binance mark from the funding book (5-minute refresh), the CoinGecko price (3-hourly) and the last daily close; null when the coin has none of them. RWA tabs: the venues' mark price.",
            "type": "number"
          },
          "priceChange24hPct": {
            "nullable": true,
            "description": "Crypto tab: from the 1h futures candles (about 100 coins the futures sync tracks), else CoinGecko's 24h change (top 100 by market cap); null for most of the long tail.",
            "type": "number"
          },
          "fundingRate": {
            "nullable": true,
            "description": "Funding fraction normalized to an 8h basis; never assumes the venue interval. Crypto tab: the coin's average across venues (the funding grid's Avg Rate), each venue's primary contract weighted by its one-sided open interest when at least two venues, and a majority of them, carry open interest, otherwise their median; only venues refreshed within 10 minutes; null when there is none. RWA tabs: the open-interest-weighted mean across RWA venues.",
            "type": "number"
          },
          "volume24hUsd": {
            "nullable": true,
            "description": "Crypto tab: 24h futures notional from the 1h candles, which cover only the ~100 coins the futures sync tracks, so most crypto rows are null (not measured, never spot volume).",
            "type": "number"
          },
          "volumeChange24hPct": {
            "nullable": true,
            "type": "number"
          },
          "marketCapUsd": {
            "nullable": true,
            "description": "Crypto tab: CoinGecko market cap, top 100 coins by market cap only (null below). Null on every RWA tab (no RWA market-cap source), including preipo and index, where no market cap exists.",
            "type": "number"
          },
          "openInterestUsd": {
            "nullable": true,
            "type": "number"
          },
          "oiChange1hPct": {
            "nullable": true,
            "type": "number"
          },
          "oiChange24hPct": {
            "nullable": true,
            "type": "number"
          },
          "liquidations24hUsd": {
            "nullable": true,
            "description": "Crypto tab only: 24h liquidations on Binance and Bybit (our own capture of their liquidation streams) and Deribit (Velo), not every venue behind openInterestUsd. OKX is left out: its series is a delayed, partial sample of OKX's liquidations, not their total. Null for coins the futures sync does not track and on RWA tabs, where no venue publishes a liquidation feed.",
            "type": "number"
          },
          "venueCount": {
            "nullable": true,
            "description": "Venues behind openInterestUsd: on the crypto tab the distinct venues holding the asset's contracts (lot and quote spellings count once per venue); on RWA tabs how many venues list the underlying.",
            "type": "integer"
          },
          "isStale": {
            "type": "boolean"
          }
        }
      },
      "GlobalOverviewResponse": {
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/SuccessEnvelope"
              },
              {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "tab": {
                        "type": "string",
                        "enum": [
                          "crypto",
                          "equity",
                          "preipo",
                          "etf",
                          "index",
                          "commodity",
                          "fx"
                        ]
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "isStale": {
                        "type": "boolean"
                      },
                      "metrics": {
                        "type": "object",
                        "properties": {
                          "openInterestUsd": {
                            "type": "number"
                          },
                          "openInterestChange24hPct": {
                            "nullable": true,
                            "type": "number"
                          },
                          "openInterestSparkline": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "t": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "v": {
                                  "type": "number"
                                }
                              }
                            }
                          },
                          "cryptoOpenInterestUsd": {
                            "type": "number"
                          },
                          "rwaOpenInterestUsd": {
                            "type": "number"
                          },
                          "liquidations24hUsd": {
                            "nullable": true,
                            "description": "Crypto only, and a lower bound rather than a market-wide total: liquidations for three venues (Binance and Bybit from our own capture, Deribit from Velo) over the coins the futures sync tracks (~85 rows carry one), summed over hourly buckets in a rolling 23-24h window, newest bucket still accumulating. OKX is not included (its series is a delayed, partial sample of OKX's liquidations, not their total), and neither are the other venues behind openInterestUsd (Hyperliquid, Gate, Bitget, ...).",
                            "type": "number"
                          },
                          "liquidationsChange24hPct": {
                            "nullable": true,
                            "type": "number"
                          },
                          "liquidationsLongUsd": {
                            "nullable": true,
                            "description": "Long side of the 24h liquidation total, so a cascade reads as flushed longs or shorts. Crypto only.",
                            "type": "number"
                          },
                          "liquidationsShortUsd": {
                            "nullable": true,
                            "description": "Short side of the 24h liquidation total. Crypto only.",
                            "type": "number"
                          },
                          "liquidationsSparkline": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "t": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "v": {
                                  "type": "number"
                                }
                              }
                            }
                          },
                          "avgRsi": {
                            "nullable": true,
                            "description": "Unweighted mean Wilder RSI(14) on daily closes, top 100 crypto perps by market cap.",
                            "type": "number"
                          },
                          "avgRsiSampleSize": {
                            "type": "integer"
                          },
                          "altcoinSeasonIndex": {
                            "nullable": true,
                            "description": "Share of the top 50 by market cap beating BTC over 90 days; excludes stablecoins and wrapped/staked derivatives.",
                            "type": "number"
                          },
                          "altcoinSeasonSampleSize": {
                            "type": "integer"
                          },
                          "classBreakdown": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "tab": {
                                  "type": "string"
                                },
                                "label": {
                                  "type": "string"
                                },
                                "openInterestUsd": {
                                  "type": "number"
                                },
                                "symbolCount": {
                                  "type": "integer"
                                }
                              }
                            }
                          },
                          "openInterestExcludedVenues": {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/OpenInterestExclusion"
                            },
                            "description": "Venues whose open interest every figure on the board leaves out, with the reason."
                          }
                        }
                      },
                      "rows": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/GlobalRow"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "data"
                ]
              }
            ]
          },
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaginatedEnvelope"
              },
              {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/GlobalRow"
                    }
                  }
                },
                "required": [
                  "data"
                ]
              }
            ]
          }
        ],
        "description": "Market-wide metrics plus the ranked row table for one asset class. Paginated requests return rows only."
      },
      "HealthResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "healthy",
              "degraded"
            ]
          },
          "version": {
            "type": "string",
            "example": "v1"
          },
          "checks": {
            "type": "object",
            "properties": {
              "database": {
                "type": "boolean"
              },
              "news": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "fresh",
                      "stale",
                      "unknown"
                    ]
                  },
                  "latest_published_at": {
                    "nullable": true,
                    "type": "string",
                    "format": "date-time"
                  },
                  "age_seconds": {
                    "nullable": true,
                    "type": "integer",
                    "minimum": 0
                  },
                  "freshness_sla_seconds": {
                    "type": "integer",
                    "example": 21600
                  },
                  "future_tolerance_seconds": {
                    "type": "integer",
                    "example": 300
                  },
                  "unknown_reason": {
                    "nullable": true,
                    "type": "string",
                    "enum": [
                      "missing",
                      "invalid",
                      "future",
                      "query_error",
                      "database_unavailable"
                    ]
                  }
                },
                "required": [
                  "status",
                  "latest_published_at",
                  "age_seconds",
                  "freshness_sla_seconds",
                  "future_tolerance_seconds",
                  "unknown_reason"
                ]
              }
            },
            "required": [
              "database",
              "news"
            ]
          },
          "datasets": {
            "nullable": true,
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "dataset_id": {
                      "type": "string",
                      "enum": [
                        "funding_rates_current",
                        "funding_rates_history",
                        "funding_accumulated",
                        "funding_fee_settlement",
                        "global_overview_snapshot",
                        "futures_open_interest",
                        "futures_basis",
                        "futures_term_structure",
                        "futures_liquidations",
                        "futures_long_short_ratio",
                        "futures_ohlcv",
                        "futures_coins",
                        "rwa_perp_rates_current",
                        "arbitrage_tickers",
                        "arbitrage_boards",
                        "arbitrage_dated_quotes",
                        "narratives",
                        "ecosystems",
                        "memecoins",
                        "mindshare",
                        "sectors",
                        "chains",
                        "sector_coins",
                        "chain_coins",
                        "gem_finder",
                        "web_traffic",
                        "heatmap_cache",
                        "stablecoins",
                        "news",
                        "listings",
                        "memecoin_launches",
                        "rug_check_inputs",
                        "rug_check_trending",
                        "pump_dump",
                        "insider_pressure",
                        "price_prediction_inputs",
                        "correlation_prices",
                        "market_cap_search",
                        "coingecko_coin_list",
                        "boros_markets",
                        "margin_borrow_rates"
                      ]
                    },
                    "store": {
                      "type": "string",
                      "enum": [
                        "serve_snapshot",
                        "tracker_cache",
                        "heatmap_cache",
                        "global_overview_snapshot"
                      ]
                    },
                    "scope": {
                      "type": "string",
                      "description": "The serve_snapshot scope, the cache row key, or the /global tab."
                    },
                    "as_of": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time"
                    },
                    "stale_after": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time"
                    },
                    "freshness_sla_seconds": {
                      "type": "integer"
                    },
                    "freshness_status": {
                      "type": "string",
                      "enum": [
                        "fresh",
                        "stale",
                        "unknown"
                      ]
                    },
                    "unknown_reason": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "missing",
                        "undated",
                        "query_error"
                      ]
                    }
                  },
                  "required": [
                    "dataset_id",
                    "store",
                    "scope",
                    "as_of",
                    "stale_after",
                    "freshness_sla_seconds",
                    "freshness_status",
                    "unknown_reason"
                  ]
                }
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "items",
              "warnings"
            ],
            "description": "Per-dataset freshness; null when the database was unreachable (nothing was checked). A stale dataset does not make the service degraded."
          },
          "request_id": {
            "type": "string"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "status",
          "version",
          "checks",
          "request_id",
          "timestamp"
        ]
      },
      "HeatmapRsi": {
        "type": "object",
        "properties": {
          "1h": {
            "nullable": true,
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "4h": {
            "nullable": true,
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "1d": {
            "nullable": true,
            "type": "number",
            "minimum": 0,
            "maximum": 100
          }
        },
        "required": [
          "1h",
          "4h",
          "1d"
        ],
        "description": "Wilder RSI(14) per candle size, from the same perp series as `y.1h`. Coin: null unless 64 contiguous closed bars end at `as_of.candle_1h` (1h), `as_of.candle_4h` (4h: four 1h candles per UTC 4-hour block) or `as_of.candle_1d` (1d). Category: the median member's RSI; null unless 5 members have a value or the members with one hold at least half the category's market cap."
      },
      "HeatmapMedian": {
        "type": "object",
        "properties": {
          "y": {
            "type": "object",
            "properties": {
              "1h": {
                "nullable": true,
                "type": "number"
              },
              "4h": {
                "nullable": true,
                "type": "number"
              },
              "24h": {
                "nullable": true,
                "type": "number"
              },
              "7d": {
                "nullable": true,
                "type": "number"
              },
              "30d": {
                "nullable": true,
                "type": "number"
              },
              "1y": {
                "nullable": true,
                "type": "number"
              }
            },
            "required": [
              "1h",
              "4h",
              "24h",
              "7d",
              "30d",
              "1y"
            ]
          },
          "fundingApr": {
            "nullable": true,
            "type": "number"
          },
          "x": {
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "y",
          "fundingApr",
          "x"
        ],
        "description": "Category tiles only: the median member's price change, funding APR and RVOL, beside the tile's weighted values. Each is null under 5 members with a value."
      },
      "HeatmapConstituents": {
        "type": "object",
        "properties": {
          "m": {
            "type": "integer",
            "minimum": 0,
            "description": "Tile members: the category's eligible members (an ecosystem's are the coins whose home chain it is), minus `ex`, with market cap above 0."
          },
          "n": {
            "type": "object",
            "properties": {
              "change1h": {
                "type": "integer",
                "minimum": 0
              },
              "change4h": {
                "type": "integer",
                "minimum": 0
              },
              "change24h": {
                "type": "integer",
                "minimum": 0
              },
              "change7d": {
                "type": "integer",
                "minimum": 0
              },
              "change30d": {
                "type": "integer",
                "minimum": 0
              },
              "change1y": {
                "type": "integer",
                "minimum": 0
              },
              "fundingApr": {
                "type": "integer",
                "minimum": 0
              },
              "openInterestChange24h": {
                "type": "integer",
                "minimum": 0
              },
              "rsi1h": {
                "type": "integer",
                "minimum": 0
              },
              "rsi4h": {
                "type": "integer",
                "minimum": 0
              },
              "rsi1d": {
                "type": "integer",
                "minimum": 0
              },
              "rvol": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "change1h",
              "change4h",
              "change24h",
              "change7d",
              "change30d",
              "change1y",
              "fundingApr",
              "openInterestChange24h",
              "rsi1h",
              "rsi4h",
              "rsi1d",
              "rvol"
            ],
            "description": "Members with a value, per metric."
          },
          "weightCoverage": {
            "type": "object",
            "properties": {
              "change1h": {
                "nullable": true,
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "change4h": {
                "nullable": true,
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "change24h": {
                "nullable": true,
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "change7d": {
                "nullable": true,
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "change30d": {
                "nullable": true,
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "change1y": {
                "nullable": true,
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "fundingApr": {
                "nullable": true,
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "openInterestChange24h": {
                "nullable": true,
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "rvol": {
                "nullable": true,
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            },
            "required": [
              "change1h",
              "change4h",
              "change24h",
              "change7d",
              "change30d",
              "change1y",
              "fundingApr",
              "openInterestChange24h",
              "rvol"
            ],
            "description": "Share of the tile's weight carried by the members with a value: market cap for the price changes, open interest for fundingApr and openInterestChange24h, 24h volume for rvol. A weighted tile value is null below 0.5. Null when the tile has no weight."
          },
          "largest": {
            "nullable": true,
            "description": "The largest member by market cap and its share of the tile's market cap.",
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "symbol": {
                "type": "string"
              },
              "marketCapShare": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            },
            "required": [
              "id",
              "symbol",
              "marketCapShare"
            ]
          }
        },
        "required": [
          "m",
          "n",
          "weightCoverage",
          "largest"
        ],
        "description": "Category tiles only: who the tile's numbers cover."
      },
      "HeatmapDot": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Coin: the CoinGecko coin id (the id `ex` takes). Category: the narrative or ecosystem id."
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string",
            "description": "Coin: the ticker. Category: the tile's short name."
          },
          "kind": {
            "description": "`coin`, or `category` for an aggregate tile (narratives and ecosystems modes). Field rules below are stated per kind.",
            "type": "string",
            "enum": [
              "coin",
              "category"
            ]
          },
          "x": {
            "nullable": true,
            "description": "Relative volume (RVOL). Coin: 24h spot volume divided by the mean of its prior daily volumes (up to 10 days), capped at 10; null under 3 days of positive history. For a coin with $100B or more market cap, a day over 5x its median prior day is left out of the mean, and x is null when today's volume is. Category: the members' summed 24h volume over their summed mean prior daily volume, across members with at least 3 days of history; null when they carry under half the tile's volume.",
            "type": "number"
          },
          "y": {
            "type": "object",
            "properties": {
              "1h": {
                "description": "Coin: change over the last closed hour, ending at `as_of.candle_1h`.",
                "nullable": true,
                "type": "number"
              },
              "4h": {
                "description": "Coin: change over the last 4 closed hours, ending at `as_of.candle_1h`.",
                "nullable": true,
                "type": "number"
              },
              "24h": {
                "nullable": true,
                "type": "number"
              },
              "7d": {
                "nullable": true,
                "type": "number"
              },
              "30d": {
                "nullable": true,
                "type": "number"
              },
              "1y": {
                "nullable": true,
                "type": "number"
              },
              "3y": {
                "nullable": true,
                "description": "Always null today: the upstream market feed (CoinGecko /coins/markets) has no 3-year window.",
                "type": "number"
              }
            },
            "required": [
              "24h",
              "7d",
              "30d",
              "1y",
              "3y"
            ],
            "description": "Price change in percent per window. Coin: 24h, 7d, 30d and 1y are CoinGecko's price changes read at the sync; 1h and 4h come from stored closed perp candles (venue order Binance, Bybit, OKX, Hyperliquid, joined by coin id), null when the coin has no perp series ending at `as_of.candle_1h`. Category: the cap-weighted, winsorized change over the members with a value; null when they carry under half the tile's market cap (the median member is in `median`)."
          },
          "marketCap": {
            "type": "number",
            "description": "CoinGecko market cap. Category: the sum over the tile's members."
          },
          "logoUrl": {
            "type": "string"
          },
          "price": {
            "description": "Coins only: CoinGecko price.",
            "type": "number"
          },
          "volume24h": {
            "description": "Spot volume 24h (CoinGecko), left out when implausible: over 50x market cap, or, for a coin with $100B or more market cap, over 5x its median prior day. Category: the sum over the tile's members.",
            "type": "number"
          },
          "openInterest": {
            "description": "Open interest summed across venues by coin id, MEXC excluded. Category: the sum over the tile's members.",
            "type": "number"
          },
          "openInterestChange24h": {
            "description": "OI value change (USD), 24h: summed USD open interest now over the same contracts' sum 24 hours earlier, minus 1, across the contracts present at both times (MEXC excluded). A change in USD value, so it moves with price as well as positioning. Category: the same sums over the tile's members; left out when they cover under half the tile's open interest.",
            "type": "number"
          },
          "fundingApr": {
            "description": "Funding, % APR, as of `as_of.funding`. Coin: the funding snapshot's per-asset 8-hour average (one primary contract per venue, open-interest weighted when a majority of venues carry open interest, else the median; MEXC carries no weight) x 1,095 x 100, joined by coin id; null when no venue lists the coin under its own id. Category: open-interest weighted over the members with funding; null when they carry under half the tile's open interest.",
            "nullable": true,
            "type": "number"
          },
          "fundingMethod": {
            "description": "Coins only: how `fundingApr` was averaged across venues. Null with `fundingApr`.",
            "nullable": true,
            "type": "string",
            "enum": [
              "oi_weighted",
              "median_fallback"
            ]
          },
          "fundingVenuesUsed": {
            "description": "Coins only: venues behind `fundingApr`, one primary contract each.",
            "type": "integer",
            "minimum": 0
          },
          "rsi": {
            "$ref": "#/components/schemas/HeatmapRsi"
          },
          "median": {
            "$ref": "#/components/schemas/HeatmapMedian"
          },
          "constituents": {
            "$ref": "#/components/schemas/HeatmapConstituents"
          }
        },
        "required": [
          "id",
          "name",
          "symbol",
          "x",
          "y",
          "marketCap"
        ]
      },
      "HeatmapCoverage": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "complete",
              "partial"
            ],
            "description": "`complete` when every configured category was fetched: availableCategories plus emptyCategories equals totalCategories."
          },
          "availableCategories": {
            "type": "integer",
            "minimum": 0
          },
          "totalCategories": {
            "type": "integer",
            "minimum": 1
          },
          "ratio": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "emptyCategories": {
            "description": "Categories fetched with no eligible member: left off the board, not counted as missing.",
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "status",
          "availableCategories",
          "totalCategories",
          "ratio"
        ]
      },
      "HeatmapAsOf": {
        "type": "object",
        "properties": {
          "funding": {
            "nullable": true,
            "description": "The funding snapshot behind `fundingApr`.",
            "type": "string",
            "format": "date-time"
          },
          "candle_1h": {
            "nullable": true,
            "description": "The last closed hour, behind `y.1h`, `y.4h` and `rsi.1h`.",
            "type": "string",
            "format": "date-time"
          },
          "candle_4h": {
            "nullable": true,
            "description": "The end of the last closed UTC 4-hour block, behind `rsi.4h`.",
            "type": "string",
            "format": "date-time"
          },
          "candle_1d": {
            "nullable": true,
            "description": "The last UTC midnight, behind `rsi.1d`.",
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "funding",
          "candle_1h",
          "candle_4h",
          "candle_1d"
        ],
        "description": "When each non-CoinGecko metric was observed; every other field is as of `updated_at`."
      },
      "HeatmapDataResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "dots": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/HeatmapDot"
                    }
                  },
                  "updated_at": {
                    "type": "string",
                    "description": "ISO timestamp for the populated heatmap cache."
                  },
                  "coverage": {
                    "nullable": true,
                    "description": "Aggregate category coverage for narrative and ecosystem modes; null for coins mode.",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/HeatmapCoverage"
                      }
                    ]
                  },
                  "as_of": {
                    "description": "Per-metric observation times; null on a cache row written before they existed.",
                    "nullable": true,
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/HeatmapAsOf"
                      }
                    ]
                  },
                  "eligible": {
                    "description": "Coins mode: the universe's size before `ex`: N for a Top N universe (capped at the coins cached), every eligible member for one category (of which `dots` are the 50 largest). Null in the aggregate modes.",
                    "nullable": true,
                    "type": "integer",
                    "minimum": 0
                  },
                  "excluded": {
                    "description": "The `ex` ids that were applied: members of this coin universe, or of at least one category in the aggregate modes. Empty when `ex` is absent or could not be applied (see `meta.warnings`).",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "omitted": {
                    "description": "Aggregate modes: categories left off because `ex` removed every member. Null in coins mode.",
                    "nullable": true,
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "dots",
                  "updated_at",
                  "coverage"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "ManipulationSignal": {
        "type": "object",
        "properties": {
          "methodology": {
            "type": "string"
          },
          "coverage": {
            "type": "string"
          },
          "gate": {
            "nullable": true,
            "type": "string"
          },
          "phase_filter": {
            "nullable": true,
            "type": "string"
          },
          "update_frequency": {
            "type": "string"
          },
          "exchanges": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "methodology",
          "coverage",
          "update_frequency",
          "exchanges"
        ]
      },
      "InsiderSellingRow": {
        "type": "object",
        "properties": {
          "coin_id": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "score": {
            "nullable": true,
            "type": "number"
          },
          "avg_funding_72h": {
            "nullable": true,
            "type": "number"
          },
          "exchange_count": {
            "type": "integer"
          },
          "funding_magnitude": {
            "nullable": true,
            "type": "number"
          },
          "manipulation_phase": {
            "nullable": true,
            "type": "string"
          },
          "oi_change_24h": {
            "description": "Fraction, not percent (0.07 = +7%): 24 h change of USD-notional open interest summed over the venues read at both ends (MEXC excluded). USD, so a price move alone moves it.",
            "nullable": true,
            "type": "number"
          },
          "cvd_trend_24h": {
            "description": "Taker CVD trend over the newest 24 hourly candles, -1 to 1. Null outside the futures-covered majors (the only coins with taker-split candles).",
            "nullable": true,
            "type": "number"
          },
          "basis_rate_avg": {
            "description": "Mean perp basis across venues, a fraction. Null outside the futures-covered majors (the only coins with stored basis).",
            "nullable": true,
            "type": "number"
          },
          "top10_holders_pct": {
            "description": "Share of supply held by the 10 largest holders of the coin's main contract, percent. Null when unknown. On Pump & Dump it is also null when contracts (treasury Safes, vesting, bridges, pools) hold over half of that top-10 share; Insider Selling keeps that share, since treasury and vesting supply is insider supply. Exchange hot wallets count as holders on both.",
            "nullable": true,
            "type": "number"
          },
          "holders_count": {
            "nullable": true,
            "type": "integer"
          },
          "liquidity_usd": {
            "nullable": true,
            "type": "number"
          },
          "volume_24h_usd": {
            "nullable": true,
            "type": "number"
          },
          "volume_to_liquidity_24h": {
            "nullable": true,
            "type": "number"
          },
          "buy_sell_imbalance_24h": {
            "nullable": true,
            "type": "number"
          },
          "mintable": {
            "nullable": true,
            "type": "boolean"
          },
          "freezable": {
            "nullable": true,
            "type": "boolean"
          },
          "consecutive_negative_days": {
            "nullable": true,
            "type": "integer"
          },
          "price_change_24h": {
            "description": "Percent (5.4 = +5.4%), from the tracker cache (refreshed every few hours, accepted up to 24 h old), not measured by the scoring run.",
            "nullable": true,
            "type": "number"
          },
          "price_change_7d": {
            "description": "Percent, from the tracker cache (refreshed every few hours, accepted up to 24 h old), not measured by the scoring run.",
            "nullable": true,
            "type": "number"
          },
          "signal_start_date": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "holders_change_pct": {
            "description": "Fraction, despite the name: change between the two most recent distinct on-chain snapshots (about 3 h apart). Null on a run with no newer snapshot than the previous row, never a measured 0.",
            "nullable": true,
            "type": "number"
          },
          "top10_holders_pct_change": {
            "nullable": true,
            "type": "number"
          },
          "liquidity_change_pct": {
            "description": "Fraction, despite the name: change between the two most recent distinct on-chain snapshots (about 3 h apart). Null on a run with no newer snapshot than the previous row, never a measured 0.",
            "nullable": true,
            "type": "number"
          },
          "volume_change_pct": {
            "description": "Fraction, despite the name: change between the two most recent distinct on-chain snapshots (about 3 h apart). Null on a run with no newer snapshot than the previous row, never a measured 0.",
            "nullable": true,
            "type": "number"
          },
          "funding_persistence": {
            "nullable": true,
            "type": "number"
          },
          "wallet_concentration": {
            "nullable": true,
            "type": "number"
          },
          "holder_quality_deterioration": {
            "nullable": true,
            "type": "number"
          },
          "distribution_pressure": {
            "nullable": true,
            "type": "number"
          },
          "market_confirmation": {
            "nullable": true,
            "type": "number"
          },
          "signal_coverage_pct": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "signal_coverage_status": {
            "type": "string",
            "enum": [
              "full",
              "partial",
              "limited"
            ]
          },
          "incomplete_signal_groups": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "score_interpretation": {
            "type": "string",
            "enum": [
              "fully-observed",
              "lower-bound-partial-inputs"
            ]
          }
        },
        "required": [
          "coin_id",
          "symbol",
          "name",
          "score",
          "exchange_count",
          "updated_at",
          "signal_coverage_pct",
          "signal_coverage_status",
          "incomplete_signal_groups",
          "score_interpretation"
        ]
      },
      "InsiderSellingResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "coins": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/InsiderSellingRow"
                    }
                  },
                  "count": {
                    "type": "integer"
                  },
                  "description": {
                    "type": "string"
                  },
                  "signal": {
                    "$ref": "#/components/schemas/ManipulationSignal"
                  },
                  "data_as_of": {
                    "nullable": true,
                    "type": "string",
                    "format": "date-time"
                  },
                  "stale": {
                    "type": "boolean"
                  },
                  "freshness_sla_seconds": {
                    "type": "integer",
                    "enum": [
                      3600
                    ],
                    "description": "Freshness SLA in seconds (1 hour)."
                  }
                },
                "required": [
                  "coins",
                  "count",
                  "description",
                  "signal",
                  "data_as_of",
                  "stale",
                  "freshness_sla_seconds"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "ListingBucket": {
        "type": "object",
        "properties": {
          "bucket_date": {
            "type": "string",
            "format": "date"
          },
          "exchange": {
            "type": "string"
          },
          "narrative_slug": {
            "type": "string"
          },
          "listing_count": {
            "type": "integer"
          }
        },
        "required": [
          "bucket_date",
          "exchange",
          "narrative_slug",
          "listing_count"
        ]
      },
      "RecentListingRow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "token_symbol": {
            "type": "string"
          },
          "token_name": {
            "nullable": true,
            "type": "string"
          },
          "token_coingecko_id": {
            "nullable": true,
            "type": "string"
          },
          "exchange": {
            "type": "string"
          },
          "listing_date": {
            "nullable": true,
            "format": "date",
            "type": "string"
          },
          "listing_date_source": {
            "type": "string"
          },
          "narrative_slug": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "token_symbol",
          "token_name",
          "token_coingecko_id",
          "exchange",
          "listing_date",
          "listing_date_source",
          "narrative_slug"
        ]
      },
      "ListingCount": {
        "type": "object",
        "properties": {
          "narrative_slug": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          }
        },
        "required": [
          "narrative_slug",
          "count"
        ]
      },
      "ExchangeListingCount": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          }
        },
        "required": [
          "exchange",
          "count"
        ]
      },
      "ListingsHubPayload": {
        "type": "object",
        "properties": {
          "weekly": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListingBucket"
            }
          },
          "monthly": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListingBucket"
            }
          },
          "recent": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecentListingRow"
            }
          },
          "lastListingAt": {
            "nullable": true,
            "format": "date",
            "type": "string"
          },
          "lastUpdatedAt": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "totals": {
            "type": "object",
            "properties": {
              "thisWeek": {
                "type": "integer"
              },
              "lastWeek": {
                "type": "integer"
              },
              "thisMonth": {
                "type": "integer"
              },
              "lastMonth": {
                "type": "integer"
              }
            },
            "required": [
              "thisWeek",
              "lastWeek",
              "thisMonth",
              "lastMonth"
            ]
          },
          "topNarrativesThisMonth": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListingCount"
            }
          },
          "topExchangesThisMonth": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExchangeListingCount"
            }
          }
        },
        "required": [
          "weekly",
          "monthly",
          "recent",
          "lastListingAt",
          "lastUpdatedAt",
          "totals",
          "topNarrativesThisMonth",
          "topExchangesThisMonth"
        ]
      },
      "ListingsDataResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/ListingsHubPayload"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "ListingEventProviderCoverage": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "description": "Stable provider or database identifier."
          },
          "kind": {
            "type": "string",
            "enum": [
              "database",
              "official_overlay"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "error",
              "skipped"
            ]
          },
          "row_count": {
            "type": "integer",
            "minimum": 0
          },
          "last_observed_at": {
            "nullable": true,
            "description": "Newest timestamp on this provider's rows (write, announce, first-seen, first-trade or effective time), capped at the response time; null when it returned no rows. Database: the newest row write or observation. Official overlay: the newest listing time the venue reports, not our fetch time (a scheduled pre-launch row's first_seen_at is the fetch time).",
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "provider",
          "kind",
          "status",
          "row_count",
          "last_observed_at"
        ]
      },
      "ExchangeListingEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "event_uid": {
            "type": "string"
          },
          "exchange": {
            "type": "string"
          },
          "exchange_name": {
            "type": "string"
          },
          "venue_type": {
            "type": "string",
            "enum": [
              "cex",
              "perp_dex",
              "dex"
            ]
          },
          "market_type": {
            "type": "string",
            "enum": [
              "spot",
              "perp",
              "futures",
              "options",
              "margin"
            ]
          },
          "event_type": {
            "type": "string",
            "enum": [
              "listing",
              "delisting",
              "suspension",
              "resumption",
              "prelaunch"
            ]
          },
          "asset_class": {
            "type": "string",
            "enum": [
              "token",
              "spot_pair",
              "perp_contract",
              "futures_contract",
              "options_contract"
            ]
          },
          "instrument_id": {
            "type": "string"
          },
          "base_asset": {
            "type": "string"
          },
          "quote_asset": {
            "nullable": true,
            "type": "string"
          },
          "token_symbol": {
            "type": "string"
          },
          "token_name": {
            "nullable": true,
            "type": "string"
          },
          "token_coingecko_id": {
            "nullable": true,
            "type": "string"
          },
          "token_contract_address": {
            "nullable": true,
            "type": "string"
          },
          "token_chain": {
            "nullable": true,
            "type": "string"
          },
          "narrative_slug": {
            "nullable": true,
            "type": "string"
          },
          "scheduled_at": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "announced_at": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "first_trade_at": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "first_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event was first seen. Database rows: the ingest's first sighting. Announcement rows: the announcement time. Official live-overlay rows (`source_kind: official_api`): the venue's listing time, or the snapshot fetch time for a scheduled pre-launch; never in the future."
          },
          "effective_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the event takes effect. An `exchange_kline` row at exactly 00:00:00Z is a UTC date, not a time: the venue's first daily candle dates it."
          },
          "status": {
            "type": "string",
            "enum": [
              "announced",
              "scheduled",
              "live",
              "completed",
              "cancelled",
              "needs_review"
            ]
          },
          "source_kind": {
            "type": "string",
            "enum": [
              "official_api",
              "official_announcement",
              "official_status",
              "exchange_kline",
              "market_data",
              "proxy",
              "manual"
            ]
          },
          "source_confidence": {
            "type": "string",
            "enum": [
              "authoritative",
              "high",
              "medium",
              "low",
              "proxy",
              "manual"
            ]
          },
          "source_url": {
            "nullable": true,
            "type": "string"
          },
          "raw_payload": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {}
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "event_uid",
          "exchange",
          "venue_type",
          "market_type",
          "event_type",
          "asset_class",
          "instrument_id",
          "base_asset",
          "quote_asset",
          "token_symbol",
          "token_name",
          "token_coingecko_id",
          "token_contract_address",
          "token_chain",
          "narrative_slug",
          "scheduled_at",
          "announced_at",
          "first_trade_at",
          "first_seen_at",
          "effective_at",
          "status",
          "source_kind",
          "source_confidence",
          "source_url"
        ]
      },
      "ListingEventsPayload": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExchangeListingEvent"
            }
          },
          "count": {
            "type": "integer"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          },
          "window_days": {
            "nullable": true,
            "type": "integer"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Time the API assembled this response. This is not a source freshness timestamp."
          },
          "last_updated_at": {
            "nullable": true,
            "description": "Freshest observation timestamp present in the database or official overlay rows.",
            "type": "string",
            "format": "date-time"
          },
          "partial": {
            "type": "boolean",
            "description": "True exactly when partial_reasons is non-empty."
          },
          "partial_reasons": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "One sentence per coverage gap: a provider whose request failed, a live exchange instrument feed whose newest listing is more than 60 days old, the hourly spot-listings ingest when the query covers its venues and its last completed run is more than 3 hours old, the canonical events table being unavailable (rows then come from the compatibility table), or a requested exchange, venue_type or market_type that no enabled connector covers. Empty when coverage is whole."
          },
          "provider_coverage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListingEventProviderCoverage"
            }
          },
          "source": {
            "type": "string",
            "enum": [
              "events",
              "compatibility"
            ]
          }
        },
        "required": [
          "rows",
          "count",
          "next_cursor",
          "window_days",
          "generated_at",
          "last_updated_at",
          "partial",
          "provider_coverage",
          "source"
        ]
      },
      "ListingEventsResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/ListingEventsPayload"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "ListingExchangeMeta": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "venueType": {
            "type": "string",
            "enum": [
              "cex",
              "perp_dex",
              "dex"
            ]
          },
          "supportedMarketTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "docsUrl": {
            "type": "string"
          },
          "sourceUrls": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "rateLimitPosture": {
            "type": "string"
          },
          "parserConfidence": {
            "type": "string"
          },
          "connectorStatus": {
            "type": "string"
          },
          "pollingGroup": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "notes": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "venueType",
          "supportedMarketTypes",
          "docsUrl",
          "sourceUrls",
          "rateLimitPosture",
          "parserConfidence",
          "connectorStatus",
          "pollingGroup",
          "enabled"
        ]
      },
      "ListingExchangeCoveragePayload": {
        "type": "object",
        "properties": {
          "exchanges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListingExchangeMeta"
            }
          },
          "count": {
            "type": "integer"
          },
          "enabled_count": {
            "type": "integer"
          },
          "freshness_sla": {
            "type": "string"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "exchanges",
          "count",
          "enabled_count",
          "freshness_sla",
          "generated_at"
        ]
      },
      "ListingExchangesResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/ListingExchangeCoveragePayload"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "ListingRecentCompatRow": {
        "type": "object",
        "properties": {
          "token_symbol": {
            "type": "string"
          },
          "token_name": {
            "nullable": true,
            "type": "string"
          },
          "token_id": {
            "nullable": true,
            "type": "string"
          },
          "exchange": {
            "type": "string"
          },
          "listing_date": {
            "nullable": true,
            "format": "date",
            "type": "string"
          },
          "narrative_slug": {
            "nullable": true,
            "type": "string"
          },
          "listing_date_source": {
            "type": "string"
          },
          "market_type": {
            "nullable": true,
            "type": "string"
          },
          "event_type": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "nullable": true,
            "type": "string"
          },
          "source_confidence": {
            "nullable": true,
            "type": "string",
            "enum": [
              "authoritative",
              "high",
              "medium",
              "low",
              "proxy",
              "manual"
            ]
          }
        },
        "required": [
          "token_symbol",
          "token_name",
          "token_id",
          "exchange",
          "listing_date",
          "narrative_slug",
          "listing_date_source"
        ]
      },
      "ListingsRecentPayload": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListingRecentCompatRow"
            }
          },
          "count": {
            "type": "integer"
          },
          "window_days": {
            "nullable": true,
            "type": "integer"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Event-feed response assembly time; present when event-specific filters are used."
          },
          "last_updated_at": {
            "nullable": true,
            "description": "Freshest source observation; present when event-specific filters are used.",
            "type": "string",
            "format": "date-time"
          },
          "partial": {
            "type": "boolean",
            "description": "True exactly when partial_reasons is non-empty; present when event-specific filters are used."
          },
          "partial_reasons": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "One sentence per coverage gap: a provider whose request failed, a live exchange instrument feed whose newest listing is more than 60 days old, the hourly spot-listings ingest when the query covers its venues and its last completed run is more than 3 hours old, the canonical events table being unavailable (rows then come from the compatibility table), or a requested exchange, venue_type or market_type that no enabled connector covers. Empty when coverage is whole. Present when event-specific filters are used."
          },
          "provider_coverage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListingEventProviderCoverage"
            },
            "description": "Per-provider health; present when event-specific filters are used."
          }
        },
        "required": [
          "rows",
          "count",
          "window_days"
        ]
      },
      "ListingsRecentResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/ListingsRecentPayload"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "MarketCapAsset": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "assetClass": {
            "type": "string",
            "enum": [
              "crypto",
              "stock",
              "index",
              "commodity"
            ]
          },
          "price": {
            "nullable": true,
            "type": "number"
          },
          "marketCap": {
            "type": "number"
          },
          "change24h": {
            "nullable": true,
            "description": "Percent change, 0.41 = +0.41%. For crypto it is the 24-hour change; for stocks, ETFs, indices and commodity proxies it is the last trading session's change versus the prior close (a Monday pre-market reading is Friday's session), not a rolling 24 hours.",
            "type": "number"
          },
          "image": {
            "nullable": true,
            "type": "string"
          },
          "fdv": {
            "nullable": true,
            "type": "number"
          },
          "ath": {
            "nullable": true,
            "type": "number"
          },
          "athMarketCap": {
            "nullable": true,
            "description": "An estimate, not the market cap recorded at the all-time high: ATH price x the current circulating supply (current market cap / current price). Supply changes over time, so the figure can differ from the market cap that actually existed at the ATH. Null when there is no ATH price.",
            "type": "number"
          }
        },
        "required": [
          "id",
          "name",
          "symbol",
          "assetClass",
          "price",
          "marketCap",
          "change24h",
          "image",
          "fdv",
          "ath",
          "athMarketCap"
        ]
      },
      "MarketCapSearchResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "assets": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/MarketCapAsset"
                    }
                  }
                },
                "required": [
                  "assets"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "DerivativesOverview": {
        "type": "object",
        "properties": {
          "total_oi_usd": {
            "type": "number",
            "description": "The market-wide open interest GET /v1/global/overview publishes (metrics.openInterestUsd): one-sided USD over every crypto asset holding at least $100K plus the RWA perps, venues in oi_excluded_venues left out."
          },
          "avg_funding_rate": {
            "type": "number",
            "description": "Simple mean of the 8-hour-equivalent rate over each (venue, asset) primary contract with a fresh rate."
          },
          "oi_weighted_funding_rate": {
            "nullable": true,
            "description": "The same primaries' rates, each weighted by its own contract's one-sided open interest. `null` when no primary carries open interest (nothing to weight by), never the simple mean.",
            "type": "number"
          },
          "top_coins_oi": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "coin": {
                  "type": "string",
                  "description": "The asset's symbol. Every contract of the asset counts once, lot spellings included (PEPE sums Binance and Bybit 1000PEPEUSDT and Hyperliquid kPEPE); two assets sharing a ticker are two entries (CAT the stock, CAT the coin). While the instrument master is unavailable, the stored base coin."
                },
                "open_interest_usd": {
                  "type": "number"
                },
                "exchange_count": {
                  "type": "integer"
                }
              },
              "required": [
                "coin",
                "open_interest_usd",
                "exchange_count"
              ]
            }
          },
          "exchange_count": {
            "type": "integer"
          },
          "coin_count": {
            "type": "integer"
          },
          "oi_excluded_venues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenInterestExclusion"
            },
            "description": "Venues left out of total_oi_usd, top_coins_oi and the open-interest funding weights, with the reason."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "total_oi_usd",
          "avg_funding_rate",
          "oi_weighted_funding_rate",
          "top_coins_oi",
          "exchange_count",
          "coin_count",
          "oi_excluded_venues",
          "updated_at"
        ]
      },
      "DerivativesOverviewResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/DerivativesOverview"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "MemecoinTopCoin": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string"
          },
          "image": {
            "type": "string"
          },
          "price": {
            "nullable": true,
            "type": "number"
          },
          "change24h": {
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "symbol",
          "image",
          "price",
          "change24h"
        ]
      },
      "MemecoinCalculationMethod": {
        "type": "object",
        "properties": {
          "marketCap": {
            "type": "string",
            "enum": [
              "coingecko_category_market_cap_ex_exclusions"
            ]
          },
          "volume24h": {
            "type": "string",
            "enum": [
              "coingecko_category_volume_ex_exclusions"
            ]
          },
          "returns": {
            "type": "string",
            "enum": [
              "market_cap_weighted_constituent_price_change_min_500k_mcap",
              "median_constituent_price_change_min_500k_mcap"
            ]
          },
          "medianReturns": {
            "type": "string",
            "enum": [
              "median_constituent_price_change_min_500k_mcap"
            ]
          },
          "marketShare": {
            "type": "string",
            "enum": [
              "category_market_cap_over_all_memes_market_cap"
            ]
          },
          "momentum": {
            "type": "string",
            "enum": [
              "0.40_1h_0.35_24h_0.25_7d"
            ]
          }
        },
        "required": [
          "marketCap",
          "volume24h",
          "returns",
          "marketShare",
          "momentum"
        ]
      },
      "MemecoinReturnCoverage": {
        "type": "object",
        "properties": {
          "1h": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "24h": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "7d": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "30d": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "200d": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "1y": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          }
        },
        "required": [
          "1h",
          "24h",
          "7d",
          "30d",
          "200d",
          "1y"
        ]
      },
      "MemecoinFreshness": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "enum": [
              "coingecko"
            ]
          },
          "upstreamUpdatedAt": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "cachedAt": {
            "type": "string",
            "format": "date-time"
          },
          "stale": {
            "type": "boolean"
          }
        },
        "required": [
          "source",
          "upstreamUpdatedAt",
          "cachedAt",
          "stale"
        ]
      },
      "MemecoinNarrative": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "emoji": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "group": {
            "type": "string",
            "enum": [
              "aggregate",
              "theme",
              "chain",
              "launchpad"
            ]
          },
          "primaryThemeId": {
            "type": "string"
          },
          "change1h": {
            "nullable": true,
            "type": "number"
          },
          "change24h": {
            "nullable": true,
            "type": "number"
          },
          "change7d": {
            "nullable": true,
            "type": "number"
          },
          "change30d": {
            "nullable": true,
            "type": "number"
          },
          "change200d": {
            "nullable": true,
            "type": "number"
          },
          "change1y": {
            "nullable": true,
            "type": "number"
          },
          "median1h": {
            "nullable": true,
            "type": "number"
          },
          "median24h": {
            "nullable": true,
            "type": "number"
          },
          "median7d": {
            "nullable": true,
            "type": "number"
          },
          "median30d": {
            "nullable": true,
            "type": "number"
          },
          "median200d": {
            "nullable": true,
            "type": "number"
          },
          "median1y": {
            "nullable": true,
            "type": "number"
          },
          "marketCap": {
            "type": "number"
          },
          "volume24h": {
            "type": "number"
          },
          "marketSharePct": {
            "nullable": true,
            "type": "number"
          },
          "topCoin": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/MemecoinTopCoin"
              }
            ]
          },
          "coinCount": {
            "type": "integer"
          },
          "trackedCoinCount": {
            "type": "integer"
          },
          "coverageLimit": {
            "type": "integer"
          },
          "dominance": {
            "nullable": true,
            "type": "number"
          },
          "momentum": {
            "nullable": true,
            "type": "number"
          },
          "momentumKind": {
            "type": "string",
            "enum": [
              "short_term_price_momentum"
            ]
          },
          "calculationMethod": {
            "$ref": "#/components/schemas/MemecoinCalculationMethod"
          },
          "returnCoverage": {
            "$ref": "#/components/schemas/MemecoinReturnCoverage"
          },
          "freshness": {
            "$ref": "#/components/schemas/MemecoinFreshness"
          }
        },
        "required": [
          "id",
          "name",
          "emoji",
          "slug",
          "group",
          "primaryThemeId",
          "change1h",
          "change24h",
          "change7d",
          "change30d",
          "change200d",
          "change1y",
          "marketCap",
          "volume24h",
          "marketSharePct",
          "topCoin",
          "coinCount",
          "trackedCoinCount",
          "coverageLimit",
          "dominance",
          "momentum",
          "momentumKind",
          "calculationMethod",
          "returnCoverage",
          "freshness"
        ]
      },
      "MemecoinCoin": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "image": {
            "type": "string"
          },
          "price": {
            "nullable": true,
            "type": "number"
          },
          "change1h": {
            "nullable": true,
            "type": "number"
          },
          "change24h": {
            "nullable": true,
            "type": "number"
          },
          "change7d": {
            "nullable": true,
            "type": "number"
          },
          "marketCap": {
            "nullable": true,
            "type": "number"
          },
          "fdv": {
            "nullable": true,
            "type": "number"
          },
          "volume24h": {
            "nullable": true,
            "type": "number"
          },
          "sparkline": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "athPrice": {
            "nullable": true,
            "type": "number"
          },
          "athPercent": {
            "nullable": true,
            "type": "number"
          },
          "atlPrice": {
            "nullable": true,
            "type": "number"
          },
          "atlPercent": {
            "nullable": true,
            "type": "number"
          },
          "circSupply": {
            "nullable": true,
            "type": "number"
          },
          "maxSupply": {
            "nullable": true,
            "type": "number"
          },
          "supplyRatio": {
            "nullable": true,
            "type": "number"
          },
          "volMcap": {
            "nullable": true,
            "type": "number"
          },
          "change30d": {
            "nullable": true,
            "type": "number"
          },
          "change200d": {
            "nullable": true,
            "type": "number"
          },
          "change1y": {
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "id",
          "name",
          "symbol",
          "image",
          "price",
          "change1h",
          "change24h",
          "change7d",
          "marketCap",
          "fdv",
          "volume24h",
          "sparkline",
          "athPrice",
          "athPercent",
          "atlPrice",
          "atlPercent",
          "circSupply",
          "maxSupply",
          "supplyRatio",
          "volMcap",
          "change30d",
          "change200d",
          "change1y"
        ]
      },
      "MemecoinSnapshot": {
        "type": "object",
        "properties": {
          "narrative_id": {
            "type": "string"
          },
          "market_cap": {
            "type": "number"
          },
          "volume_24h": {
            "type": "number"
          },
          "snapshot_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "narrative_id",
          "market_cap",
          "volume_24h",
          "snapshot_at"
        ]
      },
      "MemecoinPrimaryThemeBucket": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "marketCap": {
            "type": "number"
          },
          "sharePct": {
            "type": "number"
          },
          "color": {
            "type": "string"
          },
          "coinCount": {
            "type": "integer"
          },
          "change24h": {
            "nullable": true,
            "type": "number"
          },
          "change7d": {
            "nullable": true,
            "type": "number"
          },
          "change30d": {
            "nullable": true,
            "type": "number"
          },
          "returnMethod": {
            "description": "change24h/7d/30d: market-cap-weighted return of the theme's assigned coins with a $500K market cap floor, 48-hour price freshness and winsorized returns; null when those coins cover under 50% of the theme's market cap. marketCap and sharePct sum every assigned coin.",
            "type": "string",
            "enum": [
              "market_cap_weighted_assigned_constituents"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "marketCap",
          "sharePct",
          "color"
        ]
      },
      "MemecoinPrimaryThemeSnapshot": {
        "type": "object",
        "properties": {
          "theme_id": {
            "type": "string"
          },
          "market_cap": {
            "type": "number"
          },
          "coin_count": {
            "type": "integer"
          },
          "total_meme_market_cap": {
            "type": "number"
          },
          "snapshot_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "theme_id",
          "market_cap",
          "coin_count",
          "total_meme_market_cap",
          "snapshot_at"
        ]
      },
      "MemecoinHistoryMetadata": {
        "type": "object",
        "properties": {
          "window": {
            "type": "string",
            "enum": [
              "24h",
              "7d",
              "30d",
              "1y"
            ]
          },
          "series": {
            "type": "string",
            "enum": [
              "all",
              "primary_theme"
            ]
          },
          "cadence": {
            "type": "string",
            "enum": [
              "hourly",
              "daily"
            ]
          },
          "cadenceMs": {
            "type": "integer",
            "minimum": 1
          },
          "sourceRows": {
            "type": "integer",
            "minimum": 0
          },
          "returnedRows": {
            "type": "integer",
            "minimum": 0
          },
          "calculationMethod": {
            "type": "string",
            "enum": [
              "despiked_forward_filled_market_cap_snapshots"
            ]
          }
        },
        "required": [
          "window",
          "cadence",
          "cadenceMs",
          "sourceRows",
          "returnedRows",
          "calculationMethod"
        ]
      },
      "MemecoinCoinHistoryMetadata": {
        "type": "object",
        "properties": {
          "window": {
            "type": "string",
            "enum": [
              "24h",
              "7d",
              "1m",
              "1y"
            ]
          },
          "cadence": {
            "type": "string",
            "enum": [
              "hourly",
              "daily"
            ]
          },
          "cadenceMs": {
            "type": "integer",
            "minimum": 1
          },
          "sourceRows": {
            "type": "integer",
            "minimum": 0
          },
          "returnedRows": {
            "type": "integer",
            "minimum": 0
          },
          "topCoinCount": {
            "type": "integer",
            "minimum": 0
          },
          "calculationMethod": {
            "type": "string",
            "enum": [
              "forward_filled_coin_price_history"
            ]
          }
        },
        "required": [
          "window",
          "cadence",
          "cadenceMs",
          "sourceRows",
          "returnedRows",
          "topCoinCount",
          "calculationMethod"
        ]
      },
      "MemecoinBasePayload": {
        "type": "object",
        "properties": {
          "narratives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemecoinNarrative"
            }
          },
          "totalMemeMcap": {
            "type": "number"
          },
          "updatedAt": {
            "type": "string"
          },
          "lastAttemptedAt": {
            "type": "string",
            "format": "date-time"
          },
          "freshness": {
            "$ref": "#/components/schemas/MemecoinFreshness"
          },
          "primaryThemeBuckets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemecoinPrimaryThemeBucket"
            }
          },
          "primaryThemeSnapshots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemecoinPrimaryThemeSnapshot"
            }
          },
          "historicalMetadata": {
            "$ref": "#/components/schemas/MemecoinHistoryMetadata"
          },
          "coinHistoryMetadata": {
            "$ref": "#/components/schemas/MemecoinCoinHistoryMetadata"
          },
          "degraded": {
            "type": "boolean"
          },
          "failedCategories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "narratives",
          "totalMemeMcap",
          "updatedAt"
        ]
      },
      "MemecoinPricePoint": {
        "type": "object",
        "properties": {
          "time": {
            "type": "integer",
            "format": "int64"
          },
          "price": {
            "type": "number"
          }
        },
        "required": [
          "time",
          "price"
        ]
      },
      "MemecoinDetailPayload": {
        "type": "object",
        "properties": {
          "narratives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemecoinNarrative"
            }
          },
          "totalMemeMcap": {
            "type": "number"
          },
          "updatedAt": {
            "type": "string"
          },
          "lastAttemptedAt": {
            "type": "string",
            "format": "date-time"
          },
          "freshness": {
            "$ref": "#/components/schemas/MemecoinFreshness"
          },
          "primaryThemeBuckets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemecoinPrimaryThemeBucket"
            }
          },
          "primaryThemeSnapshots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemecoinPrimaryThemeSnapshot"
            }
          },
          "historicalMetadata": {
            "$ref": "#/components/schemas/MemecoinHistoryMetadata"
          },
          "coinHistoryMetadata": {
            "$ref": "#/components/schemas/MemecoinCoinHistoryMetadata"
          },
          "degraded": {
            "type": "boolean"
          },
          "failedCategories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "coins": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemecoinCoin"
            }
          },
          "sparkline": {
            "type": "array",
            "items": {
              "minItems": 2,
              "maxItems": 2,
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          "coinPriceHistory": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MemecoinPricePoint"
              }
            }
          }
        },
        "required": [
          "narratives",
          "totalMemeMcap",
          "updatedAt",
          "coins",
          "sparkline"
        ]
      },
      "MemecoinHistoricalPayload": {
        "type": "object",
        "properties": {
          "narratives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemecoinNarrative"
            }
          },
          "totalMemeMcap": {
            "type": "number"
          },
          "updatedAt": {
            "type": "string"
          },
          "lastAttemptedAt": {
            "type": "string",
            "format": "date-time"
          },
          "freshness": {
            "$ref": "#/components/schemas/MemecoinFreshness"
          },
          "primaryThemeBuckets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemecoinPrimaryThemeBucket"
            }
          },
          "primaryThemeSnapshots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemecoinPrimaryThemeSnapshot"
            }
          },
          "historicalMetadata": {
            "$ref": "#/components/schemas/MemecoinHistoryMetadata"
          },
          "coinHistoryMetadata": {
            "$ref": "#/components/schemas/MemecoinCoinHistoryMetadata"
          },
          "degraded": {
            "type": "boolean"
          },
          "failedCategories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "snapshots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemecoinSnapshot"
            }
          }
        },
        "required": [
          "narratives",
          "totalMemeMcap",
          "updatedAt",
          "primaryThemeSnapshots",
          "historicalMetadata",
          "snapshots"
        ]
      },
      "MemecoinsDataPayload": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/MemecoinBasePayload"
          },
          {
            "$ref": "#/components/schemas/MemecoinDetailPayload"
          },
          {
            "$ref": "#/components/schemas/MemecoinHistoricalPayload"
          }
        ]
      },
      "MemecoinsDataResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/MemecoinsDataPayload"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "MemecoinLaunchRow": {
        "type": "object",
        "properties": {
          "chainId": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "tokenAddress": {
            "type": "string"
          },
          "pairAddress": {
            "type": "string"
          },
          "dexId": {
            "type": "string"
          },
          "pairUrl": {
            "type": "string",
            "description": "DexScreener pair URL; may be empty when launchpad identity is inferred from dexId."
          },
          "priceUsd": {
            "type": "number"
          },
          "priceChangeH1": {
            "nullable": true,
            "description": "1h price change; null when the hour had no trades.",
            "type": "number"
          },
          "priceChangeH24": {
            "nullable": true,
            "description": "24h price change; null when the day had no trades.",
            "type": "number"
          },
          "volumeH24": {
            "type": "number"
          },
          "liquidityUsd": {
            "type": "number"
          },
          "marketCap": {
            "nullable": true,
            "type": "number"
          },
          "fdv": {
            "nullable": true,
            "type": "number"
          },
          "txnsH1": {
            "type": "integer"
          },
          "txnsH24": {
            "type": "integer"
          },
          "ageHours": {
            "nullable": true,
            "description": "Hours since the token's first DexScreener pair (ageBasis token), or since this pair was created when that lookup failed (ageBasis pair). For a migrated Pump.fun token (migrationState migrated) the first pair is its PumpSwap migration pool, so this is the time since migration, not since the mint.",
            "type": "number"
          },
          "ageBasis": {
            "type": "string",
            "enum": [
              "token",
              "pair"
            ]
          },
          "holdersCount": {
            "nullable": true,
            "description": "Always null: the launch scan runs no holder lookup. Read the token's holders from the Rug Check endpoints.",
            "type": "integer"
          },
          "holdersSource": {
            "nullable": true,
            "description": "Always null, as holdersCount.",
            "type": "string"
          },
          "launchedAt": {
            "nullable": true,
            "description": "When the token's first DEX pool opened. Null when migrationState is migrated (that pool is the migration; the mint time is not known to the scan) or the age is unknown.",
            "type": "string",
            "format": "date-time"
          },
          "launchpad": {
            "nullable": true,
            "type": "string"
          },
          "migrationState": {
            "nullable": true,
            "description": "migrated: a Pump.fun mint (address ending in pump) trading on PumpSwap, where graduates migrate. unknown: a Pump.fun or Sun Pump token with no migration evidence. Null for other launchpads.",
            "type": "string",
            "enum": [
              "migrated",
              "unknown"
            ]
          },
          "screeningStatus": {
            "type": "string",
            "enum": [
              "liquidity_volume_txn_screened"
            ]
          },
          "riskFlags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "low_liquidity (under $10K), low_activity (under 20 trades in 24h), high_volume_liquidity_ratio (24h volume over 25x liquidity), copycat_ticker (a launchpad token under a major's ticker, e.g. BNB or ETH)."
          },
          "securitySignalSource": {
            "nullable": true,
            "description": "Always null: no security scan runs on the launch feed (riskFlags is a liquidity and activity screen). Check a token with the Rug Check endpoints.",
            "type": "string"
          },
          "eligibleForTrackerIngestion": {
            "type": "boolean"
          },
          "canonicalInclusionReason": {
            "type": "string"
          },
          "memeClassification": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "verified"
                ]
              },
              "source": {
                "type": "string",
                "enum": [
                  "meme_launchpad"
                ]
              },
              "evidence": {
                "type": "string"
              }
            },
            "required": [
              "status",
              "source",
              "evidence"
            ]
          }
        },
        "required": [
          "chainId",
          "symbol",
          "name",
          "tokenAddress",
          "pairAddress",
          "dexId",
          "pairUrl",
          "priceUsd",
          "priceChangeH1",
          "priceChangeH24",
          "volumeH24",
          "liquidityUsd",
          "marketCap",
          "fdv",
          "txnsH1",
          "txnsH24",
          "ageHours",
          "ageBasis",
          "holdersCount",
          "holdersSource",
          "launchedAt",
          "launchpad",
          "migrationState",
          "screeningStatus",
          "riskFlags",
          "securitySignalSource",
          "eligibleForTrackerIngestion",
          "canonicalInclusionReason",
          "memeClassification"
        ]
      },
      "MemecoinLaunchesPayload": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemecoinLaunchRow"
            }
          },
          "scannedAt": {
            "type": "string",
            "format": "date-time"
          },
          "filters": {
            "type": "object",
            "properties": {
              "chains": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "days": {
                "type": "integer"
              },
              "limit": {
                "type": "integer"
              },
              "profile": {
                "type": "string",
                "enum": [
                  "discovery",
                  "balanced",
                  "strict"
                ]
              }
            },
            "required": [
              "chains",
              "days",
              "limit",
              "profile"
            ]
          },
          "coverage": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "complete",
                  "partial"
                ]
              },
              "successfulChains": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "failedChains": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "classificationMethod": {
                "type": "string",
                "enum": [
                  "recognized_meme_launchpad"
                ]
              }
            },
            "required": [
              "status",
              "successfulChains",
              "failedChains",
              "classificationMethod"
            ]
          }
        },
        "required": [
          "rows",
          "scannedAt",
          "filters",
          "coverage"
        ]
      },
      "MemecoinLaunchesResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/MemecoinLaunchesPayload"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "ProductCoverage": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "production",
              "shared",
              "planned"
            ]
          },
          "ui_routes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "public_api_routes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "v1_api_routes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "docs_routes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "openapi_paths": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "mcp_tools": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "data_sources": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tests": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "freshness_sla": {
            "type": "string"
          },
          "datasets": {
            "description": "The datasets behind the product with their writer cadence and freshness SLA: the numbers `freshness_sla` states in words.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "enum": [
                    "funding_rates_current",
                    "funding_rates_history",
                    "funding_accumulated",
                    "funding_fee_settlement",
                    "global_overview_snapshot",
                    "futures_open_interest",
                    "futures_basis",
                    "futures_term_structure",
                    "futures_liquidations",
                    "futures_long_short_ratio",
                    "futures_ohlcv",
                    "futures_coins",
                    "rwa_perp_rates_current",
                    "arbitrage_tickers",
                    "arbitrage_boards",
                    "arbitrage_dated_quotes",
                    "narratives",
                    "ecosystems",
                    "memecoins",
                    "mindshare",
                    "sectors",
                    "chains",
                    "sector_coins",
                    "chain_coins",
                    "gem_finder",
                    "web_traffic",
                    "heatmap_cache",
                    "stablecoins",
                    "news",
                    "listings",
                    "memecoin_launches",
                    "rug_check_inputs",
                    "rug_check_trending",
                    "pump_dump",
                    "insider_pressure",
                    "price_prediction_inputs",
                    "correlation_prices",
                    "market_cap_search",
                    "coingecko_coin_list",
                    "boros_markets",
                    "margin_borrow_rates"
                  ]
                },
                "cadence_seconds": {
                  "type": "integer",
                  "minimum": 0,
                  "description": "Seconds between two runs of the dataset's writer; 0 when it is fetched per request."
                },
                "freshness_sla_seconds": {
                  "type": "integer",
                  "minimum": 1,
                  "description": "Seconds after its as_of past which the dataset's answers say `freshness_status: \"stale\"` (the writer's cadence plus one skipped run)."
                }
              },
              "required": [
                "id",
                "cadence_seconds",
                "freshness_sla_seconds"
              ]
            }
          },
          "notes": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "status",
          "ui_routes",
          "public_api_routes",
          "v1_api_routes",
          "docs_routes",
          "openapi_paths",
          "mcp_tools",
          "data_sources",
          "tests",
          "freshness_sla"
        ]
      },
      "CoveragePayload": {
        "type": "object",
        "properties": {
          "product_count": {
            "type": "integer"
          },
          "status_counts": {
            "type": "object",
            "properties": {
              "production": {
                "type": "integer"
              },
              "shared": {
                "type": "integer"
              },
              "planned": {
                "type": "integer"
              }
            },
            "required": [
              "production",
              "shared",
              "planned"
            ]
          },
          "products": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ProductCoverage"
            }
          }
        },
        "required": [
          "product_count",
          "status_counts",
          "products"
        ]
      },
      "CoverageResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/CoveragePayload"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "DatasetField": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "filter_ops": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sortable": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "label",
          "type",
          "role",
          "description",
          "filter_ops",
          "sortable"
        ]
      },
      "DatasetMetadata": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "owner_product_id": {
            "type": "string"
          },
          "visibility": {
            "type": "string"
          },
          "backing_kind": {
            "type": "string"
          },
          "source_labels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "freshness_sla_seconds": {
            "nullable": true,
            "type": "integer"
          },
          "default_limit": {
            "type": "integer"
          },
          "max_limit": {
            "type": "integer"
          },
          "default_select": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "default_sort": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string"
                },
                "direction": {
                  "type": "string",
                  "enum": [
                    "asc",
                    "desc"
                  ]
                }
              },
              "required": [
                "field",
                "direction"
              ]
            }
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DatasetField"
            }
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "owner_product_id",
          "visibility",
          "backing_kind",
          "source_labels",
          "freshness_sla_seconds",
          "default_limit",
          "max_limit",
          "default_select",
          "default_sort",
          "fields"
        ]
      },
      "DatasetCatalogResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "dataset_count": {
                    "type": "integer"
                  },
                  "datasets": {
                    "type": "object",
                    "additionalProperties": {
                      "$ref": "#/components/schemas/DatasetMetadata"
                    }
                  }
                },
                "required": [
                  "dataset_count",
                  "datasets"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "MindshareNarrative": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "totalSocialScore": {
            "type": "number",
            "description": "Sum of the narrative's coins' scores; a coin's score is its CoinGecko watchlist users (formula v3, 2026-10-31)."
          },
          "mindsharePct": {
            "type": "number"
          },
          "watchlistUsers": {
            "type": "integer"
          },
          "sentimentPct": {
            "nullable": true,
            "description": "CoinGecko up-vote share, 0-100; null with no vote sample. CoinGecko publishes no vote count, so a few votes can read 0 or 100. Not part of the share since 2026-10-31.",
            "type": "number"
          },
          "tokenCount": {
            "type": "integer"
          },
          "delta24h": {
            "nullable": true,
            "description": "Always null since 2026-10-31: each coin's CoinGecko watchlist count is cached 5-8 days, so a 24-hour share change measured which coins refetched, not attention moving that day. Use delta7d or delta30d.",
            "type": "number"
          },
          "delta7d": {
            "nullable": true,
            "description": "Change in mindsharePct over 7 days, in percentage points of share (35.66 to 35.57 is -0.09), not a percent change; null when no snapshot that old exists since the 2026-10-19 narrative coin-list change. Each coin's count refreshes every 5-8 days, so the change can trail by up to one refresh.",
            "type": "number"
          },
          "delta30d": {
            "nullable": true,
            "description": "Change in mindsharePct over 30 days, in percentage points of share (35.66 to 35.57 is -0.09), not a percent change; null when no snapshot that old exists since the 2026-10-19 narrative coin-list change. Each coin's count refreshes every 5-8 days, so the change can trail by up to one refresh.",
            "type": "number"
          },
          "priceChange24h": {
            "nullable": true,
            "type": "number"
          },
          "marketCap": {
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "totalSocialScore",
          "mindsharePct",
          "watchlistUsers",
          "sentimentPct",
          "tokenCount",
          "delta24h",
          "delta7d",
          "delta30d",
          "priceChange24h",
          "marketCap"
        ]
      },
      "MindshareToken": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "image": {
            "nullable": true,
            "type": "string"
          },
          "narrativeIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "socialScore": {
            "type": "number"
          },
          "mindsharePct": {
            "type": "number"
          },
          "watchlistUsers": {
            "type": "integer"
          },
          "sentimentPct": {
            "nullable": true,
            "description": "CoinGecko up-vote share, 0-100; null with no vote sample. CoinGecko publishes no vote count, so a few votes can read 0 or 100. Not part of the share since 2026-10-31.",
            "type": "number"
          },
          "delta24h": {
            "nullable": true,
            "description": "Always null since 2026-10-31: each coin's CoinGecko watchlist count is cached 5-8 days, so a 24-hour share change measured which coins refetched, not attention moving that day. Use delta7d or delta30d.",
            "type": "number"
          },
          "delta7d": {
            "nullable": true,
            "description": "Always null: token-level 7-day history is not retained.",
            "type": "number"
          },
          "marketCap": {
            "nullable": true,
            "type": "number"
          },
          "price": {
            "nullable": true,
            "type": "number"
          },
          "priceChange24h": {
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "id",
          "symbol",
          "name",
          "image",
          "narrativeIds",
          "socialScore",
          "mindsharePct",
          "watchlistUsers",
          "sentimentPct",
          "delta24h",
          "delta7d",
          "marketCap",
          "price",
          "priceChange24h"
        ]
      },
      "MindshareSnapshot": {
        "type": "object",
        "properties": {
          "narrative_id": {
            "type": "string"
          },
          "snapshot_at": {
            "type": "string",
            "format": "date-time"
          },
          "total_social_score": {
            "type": "number"
          },
          "mindshare_pct": {
            "type": "number"
          },
          "watchlist_users": {
            "type": "number"
          },
          "token_count": {
            "type": "integer"
          }
        },
        "required": [
          "narrative_id",
          "snapshot_at",
          "total_social_score",
          "mindshare_pct",
          "watchlist_users",
          "token_count"
        ]
      },
      "MindshareDataPayload": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "tokens": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MindshareToken"
                }
              },
              "total": {
                "type": "integer"
              },
              "shown": {
                "type": "integer"
              }
            },
            "required": [
              "tokens"
            ]
          },
          {
            "type": "object",
            "properties": {
              "snapshots": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MindshareSnapshot"
                },
                "description": "Oldest first. Each row's mindshare_pct is its watchlist_users over that snapshot's total. Snapshots start at the 2026-10-19 narrative coin-list change, so a timeframe reaching past it returns what follows it."
              },
              "requestedTimeframe": {
                "type": "string",
                "enum": [
                  "1W",
                  "1M",
                  "3M",
                  "6M",
                  "1Y",
                  "3Y"
                ]
              },
              "resolvedTimeframe": {
                "type": "string",
                "enum": [
                  "1W",
                  "1M",
                  "3M",
                  "6M",
                  "1Y",
                  "3Y"
                ]
              },
              "timeframeClamped": {
                "type": "boolean"
              },
              "coverage": {
                "type": "object",
                "properties": {
                  "availableSince": {
                    "nullable": true,
                    "type": "string",
                    "format": "date-time"
                  },
                  "availableTimeframes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "1W",
                        "1M",
                        "3M",
                        "6M",
                        "1Y",
                        "3Y"
                      ]
                    }
                  }
                },
                "required": [
                  "availableSince",
                  "availableTimeframes"
                ]
              }
            },
            "required": [
              "snapshots",
              "requestedTimeframe",
              "resolvedTimeframe",
              "timeframeClamped",
              "coverage"
            ]
          },
          {
            "type": "object",
            "properties": {
              "narratives": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MindshareNarrative"
                }
              },
              "globalSocialScore": {
                "type": "number"
              },
              "updatedAt": {
                "type": "string",
                "description": "ISO timestamp for populated cache data; an empty string when cache data is unavailable."
              },
              "window": {
                "type": "string",
                "enum": [
                  "now",
                  "24h",
                  "7d",
                  "30d"
                ]
              },
              "snapshotCount": {
                "type": "integer"
              },
              "syncCadenceHours": {
                "type": "integer",
                "enum": [
                  12
                ]
              }
            },
            "required": [
              "narratives",
              "globalSocialScore",
              "updatedAt",
              "window",
              "snapshotCount",
              "syncCadenceHours"
            ]
          }
        ]
      },
      "MindshareDataResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/MindshareDataPayload"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "NarrativeTopCoin": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string"
          },
          "image": {
            "type": "string"
          },
          "price": {
            "nullable": true,
            "type": "number"
          },
          "change24h": {
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "symbol",
          "image",
          "price",
          "change24h"
        ]
      },
      "NarrativeMarketRow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "change1h": {
            "nullable": true,
            "type": "number"
          },
          "change24h": {
            "nullable": true,
            "type": "number"
          },
          "change7d": {
            "nullable": true,
            "type": "number"
          },
          "change30d": {
            "nullable": true,
            "type": "number"
          },
          "change200d": {
            "nullable": true,
            "type": "number"
          },
          "change1y": {
            "nullable": true,
            "type": "number"
          },
          "median1h": {
            "nullable": true,
            "type": "number"
          },
          "median24h": {
            "nullable": true,
            "type": "number"
          },
          "median7d": {
            "nullable": true,
            "type": "number"
          },
          "median30d": {
            "nullable": true,
            "type": "number"
          },
          "median200d": {
            "nullable": true,
            "type": "number"
          },
          "median1y": {
            "nullable": true,
            "type": "number"
          },
          "marketCap": {
            "nullable": true,
            "type": "number"
          },
          "volume24h": {
            "nullable": true,
            "type": "number"
          },
          "openInterest": {
            "nullable": true,
            "description": "One-sided open interest across every venue, summed over the constituents' assets (each once).",
            "type": "number"
          },
          "fundingRate": {
            "nullable": true,
            "description": "Annualized, a fraction a year (0.0525 = 5.25% APR): the constituents' 8-hour-equivalent funding, weighted by their cross-venue open interest, x 1,095. Not the per-8h fraction the coin rows' fundingRate (and /global's) carry, which is ~1,000x smaller.",
            "type": "number"
          },
          "mcapFdvRatio": {
            "nullable": true,
            "type": "number"
          },
          "volMcapRatio": {
            "nullable": true,
            "type": "number"
          },
          "oiMcapRatio": {
            "nullable": true,
            "type": "number"
          },
          "topCoin": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/NarrativeTopCoin"
              }
            ]
          },
          "coinCount": {
            "type": "integer"
          },
          "dominance": {
            "nullable": true,
            "type": "number"
          },
          "momentum": {
            "nullable": true,
            "type": "number"
          },
          "sentimentPct": {
            "nullable": true,
            "description": "Sentiment percentage merged from the mindshare sync, or null when there is no measurement (unmeasured is not 0%).",
            "type": "number"
          },
          "mindsharePct": {
            "nullable": true,
            "description": "Mindshare percentage merged from the mindshare sync, or null when there is no measurement (unmeasured is not 0%).",
            "type": "number"
          },
          "watchlistUsers": {
            "nullable": true,
            "description": "Watchlist users merged from the mindshare sync, or null when there is no measurement (never 0 as a stand-in).",
            "type": "integer"
          },
          "tvl": {
            "nullable": true,
            "type": "number"
          },
          "dexVolume": {
            "nullable": true,
            "type": "number"
          },
          "dexVolume24h": {
            "nullable": true,
            "type": "number"
          },
          "dexVolume7d": {
            "nullable": true,
            "type": "number"
          },
          "dexVolume30d": {
            "nullable": true,
            "type": "number"
          },
          "protocolRevenue": {
            "nullable": true,
            "type": "number"
          },
          "protocolRevenue24h": {
            "nullable": true,
            "type": "number"
          },
          "protocolRevenue7d": {
            "nullable": true,
            "type": "number"
          },
          "protocolRevenue30d": {
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "change1h",
          "change24h",
          "change7d",
          "change30d",
          "change200d",
          "change1y",
          "median1h",
          "median24h",
          "median7d",
          "median30d",
          "median200d",
          "median1y",
          "marketCap",
          "volume24h",
          "openInterest",
          "fundingRate",
          "mcapFdvRatio",
          "volMcapRatio",
          "oiMcapRatio",
          "topCoin",
          "coinCount",
          "dominance",
          "momentum",
          "sentimentPct",
          "mindsharePct",
          "watchlistUsers",
          "tvl",
          "dexVolume",
          "protocolRevenue"
        ]
      },
      "NarrativeCoin": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "image": {
            "type": "string"
          },
          "price": {
            "nullable": true,
            "type": "number"
          },
          "marketCap": {
            "nullable": true,
            "type": "number"
          },
          "fdv": {
            "nullable": true,
            "type": "number"
          },
          "volume24h": {
            "nullable": true,
            "type": "number"
          },
          "change1h": {
            "nullable": true,
            "type": "number"
          },
          "change24h": {
            "nullable": true,
            "type": "number"
          },
          "change7d": {
            "nullable": true,
            "type": "number"
          },
          "change30d": {
            "nullable": true,
            "type": "number"
          },
          "change200d": {
            "nullable": true,
            "type": "number"
          },
          "change1y": {
            "nullable": true,
            "type": "number"
          },
          "ath": {
            "nullable": true,
            "type": "number"
          },
          "athDistance": {
            "nullable": true,
            "type": "number"
          },
          "fundingRate": {
            "nullable": true,
            "description": "The coin's funding across venues, 8-hour-equivalent (fraction per 8 hours), open-interest-weighted over each venue's primary contract; null when no venue has a fresh rate.",
            "type": "number"
          },
          "fundingApr": {
            "nullable": true,
            "type": "number"
          },
          "openInterest": {
            "nullable": true,
            "type": "number"
          },
          "sparkline7d": {
            "type": "array",
            "items": {
              "type": "number"
            }
          }
        },
        "required": [
          "id",
          "symbol",
          "name",
          "image",
          "price",
          "marketCap",
          "fdv",
          "volume24h",
          "change1h",
          "change24h",
          "change7d",
          "change30d",
          "change200d",
          "change1y",
          "ath",
          "athDistance",
          "fundingRate",
          "openInterest",
          "sparkline7d"
        ]
      },
      "NarrativeOverviewPayload": {
        "type": "object",
        "properties": {
          "narratives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NarrativeMarketRow"
            }
          },
          "top": {
            "description": "With `top=N`: the N narratives with the highest 24h change, highest first (a narrative without a 24h change is never ranked).",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NarrativeMarketRow"
            }
          },
          "bottom": {
            "description": "With `bottom=N`: the N narratives with the lowest 24h change, lowest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NarrativeMarketRow"
            }
          },
          "totalNarrativeMcap": {
            "nullable": true,
            "type": "number"
          },
          "updatedAt": {
            "type": "string",
            "description": "ISO timestamp for populated cache data; an empty string for an empty cache response."
          },
          "basePrices": {
            "nullable": true,
            "description": "`null` when CoinGecko did not return every window for BTC, ETH and SOL; no window reads a fabricated 0.",
            "allOf": [
              {
                "$ref": "#/components/schemas/CategoryBasePrices"
              }
            ]
          },
          "lastAttemptAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the last sync ran. `updatedAt` stays at the last complete refresh when that run kept the previous rows."
          },
          "status": {
            "type": "string",
            "enum": [
              "full",
              "partial"
            ],
            "description": "`partial` when at least one category fetch failed in the last sync."
          },
          "coverage": {
            "$ref": "#/components/schemas/CategorySyncCoverage"
          }
        },
        "required": [
          "narratives",
          "totalNarrativeMcap",
          "updatedAt"
        ]
      },
      "NarrativeDetailPayload": {
        "type": "object",
        "properties": {
          "narratives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NarrativeMarketRow"
            }
          },
          "totalNarrativeMcap": {
            "nullable": true,
            "type": "number"
          },
          "updatedAt": {
            "type": "string"
          },
          "coins": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NarrativeCoin"
            }
          },
          "sparkline": {
            "type": "array",
            "items": {
              "minItems": 2,
              "maxItems": 2,
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          "basePrices": {
            "nullable": true,
            "description": "`null` when CoinGecko did not return every window for BTC, ETH and SOL; no window reads a fabricated 0.",
            "allOf": [
              {
                "$ref": "#/components/schemas/CategoryBasePrices"
              }
            ]
          },
          "lastAttemptAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the last sync ran. `updatedAt` stays at the last complete refresh when that run kept the previous rows."
          },
          "status": {
            "type": "string",
            "enum": [
              "full",
              "partial"
            ],
            "description": "`partial` when at least one category fetch failed in the last sync."
          },
          "coverage": {
            "$ref": "#/components/schemas/CategorySyncCoverage"
          }
        },
        "required": [
          "narratives",
          "totalNarrativeMcap",
          "updatedAt",
          "coins",
          "sparkline"
        ]
      },
      "NarrativesDataResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/NarrativeOverviewPayload"
                  },
                  {
                    "$ref": "#/components/schemas/NarrativeDetailPayload"
                  },
                  {
                    "$ref": "#/components/schemas/CategoryCorrelationPayload"
                  }
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "NewsArticle": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "source": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "link": {
            "type": "string",
            "format": "uri"
          },
          "summary": {
            "nullable": true,
            "description": "Always null: Sharpe serves the headline and link, not the publisher's summary. Open `link` to read the article. The field stays so existing clients keep working.",
            "type": "string"
          },
          "author": {
            "nullable": true,
            "type": "string"
          },
          "tags": {
            "nullable": true,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "coin_tags": {
            "nullable": true,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "coin_symbols": {
            "description": "The ticker of each `coin_tags` entry, in the same order (uppercase CoinGecko symbol), the coin's most recently synced symbol when it has had several, null where it has none on record. Null when `coin_tags` is null. Field added 2026-10-31: payloads captured before it lack it.",
            "nullable": true,
            "type": "array",
            "items": {
              "nullable": true,
              "type": "string"
            }
          },
          "published": {
            "type": "string",
            "format": "date-time"
          },
          "fetched_at": {
            "type": "string",
            "format": "date-time"
          },
          "source_tier": {
            "type": "integer"
          },
          "category": {
            "type": "string",
            "enum": [
              "crypto",
              "tradfi",
              "macro",
              "research",
              "ai",
              "geopolitics"
            ]
          }
        },
        "required": [
          "id",
          "source",
          "title",
          "link",
          "summary",
          "author",
          "tags",
          "coin_tags",
          "published",
          "fetched_at",
          "source_tier",
          "category"
        ]
      },
      "NewsFeedPayload": {
        "type": "object",
        "properties": {
          "articles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NewsArticle"
            }
          },
          "total": {
            "type": "integer",
            "description": "Deduplicated stories matching the filters. Exact only when the scan reached the end of the corpus; otherwise a lower bound: stories before this page plus those returned, plus 1 while more remain."
          },
          "next_offset": {
            "nullable": true,
            "type": "integer",
            "minimum": 0
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "required": [
          "articles",
          "total",
          "next_offset",
          "truncated"
        ]
      },
      "NewsFeedResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/NewsFeedPayload"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "OpportunitiesReport": {
        "type": "object",
        "properties": {
          "report": {
            "type": "string",
            "enum": [
              "opportunities"
            ]
          },
          "report_md": {
            "type": "string",
            "description": "The report as markdown, rendered on the server: every number is a field the endpoints it read serve, and it ends with the freshness of each answer (`**Data freshness:**`) and, when a read failed, a `**Data gaps:**` line."
          },
          "inputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportInput"
            },
            "description": "The reads, in the report's order: spot-perp-arb, cross-exchange-arb, funding."
          }
        },
        "required": [
          "report",
          "report_md",
          "inputs"
        ]
      },
      "OpportunitiesResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/OpportunitiesReport"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "PredictionSignal": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "rawValue": {
            "nullable": true,
            "type": "number"
          },
          "rawDisplay": {
            "type": "string"
          },
          "subScore": {
            "type": "number"
          },
          "conviction": {
            "type": "number"
          },
          "bias": {
            "type": "string"
          },
          "tooltip": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "label",
          "rawValue",
          "rawDisplay",
          "subScore",
          "conviction",
          "bias",
          "tooltip"
        ]
      },
      "PriceForecast": {
        "type": "object",
        "properties": {
          "days": {
            "type": "integer",
            "enum": [
              7,
              30
            ]
          },
          "expectedChangePct": {
            "type": "number"
          },
          "expectedPrice": {
            "type": "number"
          },
          "lowPrice": {
            "type": "number",
            "description": "Low of the 80% range: the 10th percentile of a lognormal centred on expectedPrice at the coin's 30-day realized daily volatility (expectedPrice x exp(-1.2816 x volatility x sqrt(days))). Assumes lognormal moves; fat tails leave the range more often than one time in five."
          },
          "highPrice": {
            "type": "number",
            "description": "High of the 80% range: the 90th percentile of the same lognormal (expectedPrice x exp(1.2816 x volatility x sqrt(days)))."
          },
          "confidence": {
            "type": "number",
            "description": "Legacy name: signal breadth and agreement from 0 to 100, the coin's modelConfidence. Not a probability, and not the coverage of the low/high range (that is 80%)."
          }
        },
        "required": [
          "days",
          "expectedChangePct",
          "expectedPrice",
          "lowPrice",
          "highPrice",
          "confidence"
        ]
      },
      "CoinScore": {
        "type": "object",
        "properties": {
          "coin": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "consensusScore": {
            "type": "number"
          },
          "direction": {
            "type": "string",
            "enum": [
              "strong_bullish",
              "bullish",
              "neutral",
              "bearish",
              "strong_bearish",
              "insufficient_data"
            ]
          },
          "signals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PredictionSignal"
            }
          },
          "signalsAvailable": {
            "type": "integer"
          },
          "exchangesUsed": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "spotPrice": {
            "nullable": true,
            "type": "number"
          },
          "marketCap": {
            "nullable": true,
            "type": "number"
          },
          "priceChange24h": {
            "nullable": true,
            "description": "24-hour price change in percent (2.15 = +2.15%), from the CoinGecko snapshot taken when the coin was scored. Unlike priceChange7d and priceChange30d, this is not a fraction.",
            "type": "number"
          },
          "priceChange7d": {
            "nullable": true,
            "description": "7-day price change as a decimal fraction (0.0875 = +8.75%), from hourly closes. Not a percent: multiply by 100 before comparing with priceChange24h.",
            "type": "number"
          },
          "priceChange30d": {
            "nullable": true,
            "description": "30-day price change as a decimal fraction (0.0564 = +5.64%), from hourly closes. Not a percent: multiply by 100 before comparing with priceChange24h.",
            "type": "number"
          },
          "distanceFrom7dHigh": {
            "nullable": true,
            "description": "Price relative to the highest hourly close of the last 7 days, as a decimal fraction (-0.0426 = 4.26% below that high). Zero or negative.",
            "type": "number"
          },
          "distanceFrom7dLow": {
            "nullable": true,
            "description": "Price relative to the lowest hourly close of the last 7 days, as a decimal fraction (0.1245 = 12.45% above that low). Zero or positive.",
            "type": "number"
          },
          "realizedVolatility30d": {
            "nullable": true,
            "type": "number"
          },
          "modelConfidence": {
            "type": "number",
            "description": "Legacy name: signal breadth and agreement from 0 to 100 (how many signals are live and how far they agree). Not a probability or a statistical confidence."
          },
          "forecasts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PriceForecast"
            }
          },
          "scoredAt": {
            "type": "string",
            "format": "date-time"
          },
          "prose": {
            "nullable": true,
            "type": "string"
          },
          "dominance": {
            "nullable": true,
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "share": {
                "type": "number"
              }
            },
            "required": [
              "name",
              "label",
              "share"
            ]
          }
        },
        "required": [
          "coin",
          "displayName",
          "slug",
          "consensusScore",
          "direction",
          "signals",
          "signalsAvailable",
          "exchangesUsed",
          "spotPrice",
          "marketCap",
          "priceChange24h",
          "priceChange7d",
          "priceChange30d",
          "distanceFrom7dHigh",
          "distanceFrom7dLow",
          "realizedVolatility30d",
          "modelConfidence",
          "forecasts",
          "scoredAt",
          "prose",
          "dominance"
        ]
      },
      "PricePredictionPayload": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "coins": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CoinScore"
                }
              },
              "updatedAt": {
                "nullable": true,
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "coins",
              "updatedAt"
            ]
          },
          {
            "type": "object",
            "properties": {
              "coin": {
                "nullable": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CoinScore"
                  }
                ]
              },
              "updatedAt": {
                "nullable": true,
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "coin",
              "updatedAt"
            ]
          }
        ]
      },
      "PricePredictionResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/PricePredictionPayload"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "PumpDumpRow": {
        "type": "object",
        "properties": {
          "coin_id": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "score": {
            "nullable": true,
            "type": "number"
          },
          "avg_funding_72h": {
            "nullable": true,
            "type": "number"
          },
          "exchange_count": {
            "type": "integer"
          },
          "funding_magnitude": {
            "nullable": true,
            "type": "number"
          },
          "manipulation_phase": {
            "nullable": true,
            "type": "string"
          },
          "oi_change_24h": {
            "description": "Fraction, not percent (0.07 = +7%): 24 h change of USD-notional open interest summed over the venues read at both ends (MEXC excluded). USD, so a price move alone moves it.",
            "nullable": true,
            "type": "number"
          },
          "cvd_trend_24h": {
            "description": "Taker CVD trend over the newest 24 hourly candles, -1 to 1. Null outside the futures-covered majors (the only coins with taker-split candles).",
            "nullable": true,
            "type": "number"
          },
          "basis_rate_avg": {
            "description": "Mean perp basis across venues, a fraction. Null outside the futures-covered majors (the only coins with stored basis).",
            "nullable": true,
            "type": "number"
          },
          "top10_holders_pct": {
            "description": "Share of supply held by the 10 largest holders of the coin's main contract, percent. Null when unknown. On Pump & Dump it is also null when contracts (treasury Safes, vesting, bridges, pools) hold over half of that top-10 share; Insider Selling keeps that share, since treasury and vesting supply is insider supply. Exchange hot wallets count as holders on both.",
            "nullable": true,
            "type": "number"
          },
          "holders_count": {
            "nullable": true,
            "type": "integer"
          },
          "liquidity_usd": {
            "nullable": true,
            "type": "number"
          },
          "volume_24h_usd": {
            "nullable": true,
            "type": "number"
          },
          "volume_to_liquidity_24h": {
            "nullable": true,
            "type": "number"
          },
          "buy_sell_imbalance_24h": {
            "nullable": true,
            "type": "number"
          },
          "mintable": {
            "nullable": true,
            "type": "boolean"
          },
          "freezable": {
            "nullable": true,
            "type": "boolean"
          },
          "consecutive_negative_days": {
            "nullable": true,
            "type": "integer"
          },
          "price_change_24h": {
            "description": "Percent (5.4 = +5.4%), from the tracker cache (refreshed every few hours, accepted up to 24 h old), not measured by the scoring run.",
            "nullable": true,
            "type": "number"
          },
          "price_change_7d": {
            "description": "Percent, from the tracker cache (refreshed every few hours, accepted up to 24 h old), not measured by the scoring run.",
            "nullable": true,
            "type": "number"
          },
          "signal_start_date": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "holders_change_pct": {
            "description": "Fraction, despite the name: change between the two most recent distinct on-chain snapshots (about 3 h apart). Null on a run with no newer snapshot than the previous row, never a measured 0.",
            "nullable": true,
            "type": "number"
          },
          "top10_holders_pct_change": {
            "nullable": true,
            "type": "number"
          },
          "liquidity_change_pct": {
            "description": "Fraction, despite the name: change between the two most recent distinct on-chain snapshots (about 3 h apart). Null on a run with no newer snapshot than the previous row, never a measured 0.",
            "nullable": true,
            "type": "number"
          },
          "volume_change_pct": {
            "description": "Fraction, despite the name: change between the two most recent distinct on-chain snapshots (about 3 h apart). Null on a run with no newer snapshot than the previous row, never a measured 0.",
            "nullable": true,
            "type": "number"
          },
          "pump_magnitude": {
            "nullable": true,
            "type": "number"
          },
          "divergence_persistence": {
            "nullable": true,
            "type": "number"
          },
          "derivatives_pressure": {
            "nullable": true,
            "type": "number"
          },
          "holder_concentration": {
            "nullable": true,
            "type": "number"
          },
          "liquidity_fragility": {
            "nullable": true,
            "type": "number"
          },
          "flow_imbalance": {
            "nullable": true,
            "type": "number"
          },
          "market_structure_risk": {
            "nullable": true,
            "type": "number"
          },
          "dump_pressure": {
            "nullable": true,
            "type": "number"
          },
          "price_funding_divergence": {
            "nullable": true,
            "type": "number"
          },
          "signal_coverage_pct": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "signal_coverage_status": {
            "type": "string",
            "enum": [
              "full",
              "partial",
              "limited"
            ]
          },
          "incomplete_signal_groups": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "score_interpretation": {
            "type": "string",
            "enum": [
              "fully-observed",
              "lower-bound-partial-inputs"
            ]
          }
        },
        "required": [
          "coin_id",
          "symbol",
          "name",
          "score",
          "exchange_count",
          "updated_at",
          "signal_coverage_pct",
          "signal_coverage_status",
          "incomplete_signal_groups",
          "score_interpretation"
        ]
      },
      "PumpDumpResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "coins": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/PumpDumpRow"
                    }
                  },
                  "count": {
                    "type": "integer"
                  },
                  "description": {
                    "type": "string"
                  },
                  "signal": {
                    "$ref": "#/components/schemas/ManipulationSignal"
                  },
                  "data_as_of": {
                    "nullable": true,
                    "type": "string",
                    "format": "date-time"
                  },
                  "stale": {
                    "type": "boolean"
                  },
                  "freshness_sla_seconds": {
                    "type": "integer",
                    "enum": [
                      3600
                    ],
                    "description": "Freshness SLA in seconds (1 hour)."
                  }
                },
                "required": [
                  "coins",
                  "count",
                  "description",
                  "signal",
                  "data_as_of",
                  "stale",
                  "freshness_sla_seconds"
                ]
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "RugCheckHolder": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          },
          "balance": {
            "type": "number"
          },
          "percent": {
            "type": "number"
          },
          "isLocked": {
            "type": "boolean"
          },
          "isContract": {
            "type": "boolean"
          },
          "tag": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "address",
          "balance",
          "percent",
          "isLocked",
          "isContract",
          "tag"
        ]
      },
      "RugCheckDex": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "liquidity": {
            "nullable": true,
            "description": "The pool's value in USD from GoPlus: Solana's pool TVL, and on EVM chains twice GoPlus's one-sided figure for a UniswapV2-type pool. Null when GoPlus gives no comparable figure: EVM concentrated-liquidity pools (UniswapV3/V4, whose GoPlus figure is not the pool's value) and pools it sends without one.",
            "type": "number"
          },
          "pair": {
            "type": "string"
          },
          "burnPercent": {
            "nullable": true,
            "description": "Burned share of this pool's LP tokens in percent (0-100) from GoPlus, counting destroyed LP and LP held in Raydium's lock. Solana standard AMM pools only: null for concentrated-liquidity pools and on EVM chains.",
            "type": "number"
          }
        },
        "required": [
          "name",
          "liquidity",
          "pair",
          "burnPercent"
        ]
      },
      "RugCheckCheck": {
        "type": "object",
        "properties": {
          "pillar": {
            "type": "string",
            "enum": [
              "contract",
              "holders",
              "health"
            ],
            "description": "The pillar the row scores under: `contract` (weight 0.40), `holders` (0.35: the wallets' share among the token's top 10 holders, GoPlus's live list without the token's own pools and burn addresses, or GeckoTerminal's snapshot when GoPlus has none) or `health` (0.25, market figures)."
          },
          "label": {
            "type": "string",
            "description": "The check, e.g. `Honeypot`, `Mint`, `Liquidity`."
          },
          "value": {
            "type": "string",
            "description": "The displayed result, e.g. `Disabled`, `$6.5M`, `2.8y`."
          },
          "status": {
            "type": "string",
            "enum": [
              "safe",
              "warning",
              "danger",
              "neutral"
            ],
            "description": "`neutral`: shown without a judgement (unknown, or an owner-only power of a renounced contract)."
          },
          "tooltip": {
            "type": "string",
            "description": "What the check means."
          }
        },
        "required": [
          "pillar",
          "label",
          "value",
          "status",
          "tooltip"
        ],
        "description": "One row of the /rug-check page's Checks table."
      },
      "RugCheckScore": {
        "type": "object",
        "properties": {
          "value": {
            "nullable": true,
            "description": "0-100, higher is safer. Null only when no pillar had a scorable figure (`data_completeness` `none`), never a default 50.",
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "verdict": {
            "nullable": true,
            "description": "`safe` at 80 or more, `caution` at 50, `risky` at 20, else `danger`. Null when `value` is null.",
            "type": "string",
            "enum": [
              "safe",
              "caution",
              "risky",
              "danger"
            ]
          },
          "verdict_label": {
            "nullable": true,
            "description": "The verdict as the page labels it. Null when `value` is null.",
            "type": "string",
            "enum": [
              "Looks Safe",
              "Use Caution",
              "Risky",
              "Danger"
            ]
          },
          "verdict_note": {
            "nullable": true,
            "description": "\"Trusted issuer, centralised controls\" when GoPlus trust-lists the token and its issuer can still mint, freeze, pause or upgrade it: those controls are listed as warnings but neither scored nor capped. Otherwise null.",
            "type": "string"
          },
          "data_completeness": {
            "type": "string",
            "enum": [
              "full",
              "partial",
              "none"
            ],
            "description": "`full`: the contract, holder and market pillars each had data. `partial`: one or two had none (each such pillar scores a neutral 50, and the score is capped at 69 so unknown data never reads `safe`). `none`: no pillar had a scorable figure (a holder count alone scores nothing), so there is no score."
          },
          "engine_version": {
            "type": "integer",
            "description": "Version of the scoring rules. A declared change to a weight, cap, band or check increments it, so a stored score can be told apart from one computed under other rules."
          },
          "insights": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The verdict's reasons as the page lists them, at most 6."
          }
        },
        "required": [
          "value",
          "verdict",
          "verdict_label",
          "verdict_note",
          "data_completeness",
          "engine_version",
          "insights"
        ],
        "description": "The Rug Check score the /rug-check page shows for this token, computed server-side (engine metric token_risk.rug_check) from this answer's GoPlus fields, the token's DexScreener market figures (liquidity and 24h volume summed over its pairs on this chain, age from its oldest pair) and its top-10 holder share (GoPlus's live top-holder list without the token's own pools and burn addresses; GeckoTerminal's snapshot when GoPlus has none, ignored when stale). Weighted 0.40 contract, 0.35 holders, 0.25 market health, then capped by hard signals (a honeypot or sell block sets 5, a copy of a major's ticker from another contract 49). An input a lookup could not read is unknown, never zero: it is left out of its pillar's average (its row reads `—`), a pillar with no data at all scores a neutral 50, and `data_completeness` says whether every pillar had data; a `partial` score is capped at 69. On a `stale` answer the score is computed from the last good GoPlus record. Present on every 200 answer."
      },
      "RugCheckSecurity": {
        "type": "object",
        "properties": {
          "isHoneypot": {
            "nullable": true,
            "type": "boolean"
          },
          "noMint": {
            "nullable": true,
            "type": "boolean"
          },
          "noBlacklist": {
            "nullable": true,
            "type": "boolean"
          },
          "isOpenSource": {
            "nullable": true,
            "type": "boolean"
          },
          "isProxy": {
            "nullable": true,
            "type": "boolean"
          },
          "hiddenOwner": {
            "nullable": true,
            "type": "boolean"
          },
          "buyTax": {
            "nullable": true,
            "type": "number"
          },
          "sellTax": {
            "nullable": true,
            "type": "number"
          },
          "canTakeBackOwnership": {
            "nullable": true,
            "type": "boolean"
          },
          "cannotSellAll": {
            "nullable": true,
            "type": "boolean"
          },
          "cannotBuy": {
            "nullable": true,
            "type": "boolean"
          },
          "tradingCooldown": {
            "nullable": true,
            "type": "boolean"
          },
          "selfDestruct": {
            "nullable": true,
            "type": "boolean"
          },
          "transferPausable": {
            "nullable": true,
            "type": "boolean"
          },
          "slippageModifiable": {
            "nullable": true,
            "type": "boolean"
          },
          "personalSlippageModifiable": {
            "nullable": true,
            "type": "boolean"
          },
          "isAntiWhale": {
            "nullable": true,
            "type": "boolean"
          },
          "antiWhaleModifiable": {
            "nullable": true,
            "type": "boolean"
          },
          "externalCall": {
            "nullable": true,
            "type": "boolean"
          },
          "isWhitelisted": {
            "nullable": true,
            "type": "boolean"
          },
          "honeypotWithSameCreator": {
            "nullable": true,
            "type": "boolean"
          },
          "transferTax": {
            "nullable": true,
            "type": "number"
          },
          "transferHook": {
            "nullable": true,
            "type": "boolean"
          },
          "transferHookUpgradable": {
            "nullable": true,
            "type": "boolean"
          },
          "transferFeeUpgradable": {
            "nullable": true,
            "type": "boolean"
          },
          "defaultAccountFrozen": {
            "nullable": true,
            "type": "boolean"
          },
          "defaultAccountStateUpgradable": {
            "nullable": true,
            "type": "boolean"
          },
          "metadataMutable": {
            "nullable": true,
            "type": "boolean"
          },
          "isInCex": {
            "nullable": true,
            "type": "boolean"
          },
          "cexList": {
            "nullable": true,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "creatorAddress": {
            "nullable": true,
            "type": "string"
          },
          "creatorPercent": {
            "nullable": true,
            "type": "number"
          },
          "ownerAddress": {
            "nullable": true,
            "type": "string"
          },
          "ownerPercent": {
            "nullable": true,
            "type": "number"
          },
          "ownerChangeBalance": {
            "nullable": true,
            "type": "boolean"
          },
          "holderCount": {
            "nullable": true,
            "description": "Wallets holding the token: the count the `Holders` check shows, GeckoTerminal's holder snapshot or GoPlus's count when that snapshot is stale or missing. On a `partial` record, null.",
            "type": "integer"
          },
          "totalSupply": {
            "nullable": true,
            "type": "string"
          },
          "lpHolderCount": {
            "nullable": true,
            "type": "integer"
          },
          "lpTotalSupply": {
            "nullable": true,
            "type": "string"
          },
          "trustList": {
            "nullable": true,
            "type": "boolean"
          },
          "topHolders": {
            "nullable": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RugCheckHolder"
            }
          },
          "lpHolders": {
            "nullable": true,
            "description": "LP holders of the main pool (the deepest dexInfo entry). Each holder's percent is its share of that pool's LP token supply as a 0-1 fraction (0.0002 = 0.02%) on every chain; Solana shares are recomputed from the holder balance over the pool's LP amount. Null when the list cannot be tied to a standard AMM pool.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RugCheckHolder"
            }
          },
          "dexInfo": {
            "nullable": true,
            "description": "DEX pools, deepest first by `liquidity` (pools with a null `liquidity` last), so entry 0 is the main pool when its value is known.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RugCheckDex"
            }
          },
          "source": {
            "type": "string",
            "enum": [
              "evm-security-scan",
              "solana-security-scan",
              "combined"
            ]
          },
          "stale": {
            "type": "boolean",
            "description": "Present and true only when the security provider was temporarily unavailable and this is the token's last good record (at most 7 days old). Absent on live answers."
          },
          "dataAsOf": {
            "type": "string",
            "format": "date-time",
            "description": "When the last good record was fetched. Present only alongside `stale`."
          },
          "partial": {
            "type": "boolean",
            "description": "Present and true only when the security provider was unavailable and the token has no last good record, on Ethereum, BNB Smart Chain or Base: `isHoneypot` comes from Honeypot.is's buy/sell simulation and every other security field is null (unknown). The score then treats the contract checks as unknown, except that a detected honeypot scores 5 (Danger). Absent otherwise."
          },
          "score": {
            "$ref": "#/components/schemas/RugCheckScore"
          },
          "checks": {
            "description": "The rows of the /rug-check page's checks for this token, in the page's order: the Contract Security rows, then the Top-10 holders row, then the Token Health rows. Present on every 200 answer, beside `score`.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RugCheckCheck"
            }
          }
        },
        "required": [
          "isHoneypot",
          "noMint",
          "noBlacklist",
          "isOpenSource",
          "isProxy",
          "hiddenOwner",
          "buyTax",
          "sellTax",
          "canTakeBackOwnership",
          "cannotSellAll",
          "cannotBuy",
          "tradingCooldown",
          "selfDestruct",
          "transferPausable",
          "slippageModifiable",
          "personalSlippageModifiable",
          "isAntiWhale",
          "antiWhaleModifiable",
          "externalCall",
          "isWhitelisted",
          "honeypotWithSameCreator",
          "transferTax",
          "isInCex",
          "cexList",
          "creatorAddress",
          "creatorPercent",
          "ownerAddress",
          "ownerPercent",
          "ownerChangeBalance",
          "holderCount",
          "totalSupply",
          "lpHolderCount",
          "lpTotalSupply",
          "trustList",
          "topHolders",
          "lpHolders",
          "dexInfo",
          "source"
        ]
      },
      "RugCheckSecurityResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/RugCheckSecurity"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "RugTrendingToken": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "networkId": {
            "type": "integer"
          },
          "chainName": {
            "type": "string"
          },
          "imageUrl": {
            "nullable": true,
            "type": "string"
          },
          "price": {
            "nullable": true,
            "type": "string"
          },
          "priceChange24h": {
            "nullable": true,
            "type": "number"
          },
          "volume24h": {
            "nullable": true,
            "type": "string"
          },
          "liquidity": {
            "nullable": true,
            "type": "string"
          },
          "marketCap": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "address",
          "name",
          "symbol",
          "networkId",
          "chainName",
          "imageUrl",
          "price",
          "priceChange24h",
          "volume24h",
          "liquidity",
          "marketCap"
        ]
      },
      "RugTrendingPayload": {
        "type": "object",
        "properties": {
          "tokens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RugTrendingToken"
            }
          },
          "count": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          },
          "source": {
            "type": "string",
            "enum": [
              "GeckoTerminal"
            ]
          },
          "fetched_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "tokens",
          "count",
          "total",
          "source",
          "fetched_at"
        ]
      },
      "RugCheckTrendingResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/RugTrendingPayload"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "RwaPerpCurrentRow": {
        "type": "object",
        "properties": {
          "venue": {
            "type": "string"
          },
          "market": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "asset_class": {
            "nullable": true,
            "type": "string"
          },
          "mechanism": {
            "type": "string"
          },
          "price_deviation_pct": {
            "nullable": true,
            "type": "number"
          },
          "is_price_suspect": {
            "nullable": true,
            "type": "boolean"
          },
          "last_nonzero_funding_apr": {
            "nullable": true,
            "type": "number"
          },
          "last_nonzero_funding_at": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "funding_rate": {
            "nullable": true,
            "description": "Funding as a decimal fraction per `interval_hours`: for the standard-funding venues the in-progress rate for the settlement at `next_funding_time` (Kraken's prediction, Lighter's 8h-basis rate divided by 8 for its hourly charge), so `funding_rate × notional` estimates the next payment. GET /api/funding/rates serves Kraken's last settled rate for the same market instead (see its `rate_kind`). `null` when the venue published none.",
            "type": "number"
          },
          "interval_hours": {
            "type": "number",
            "description": "Hours between this market's settlements: the span `funding_rate` is charged over, and the gap to `next_funding_time`."
          },
          "funding_apr": {
            "nullable": true,
            "type": "number"
          },
          "borrow_apr_annual": {
            "nullable": true,
            "type": "number"
          },
          "mark_price": {
            "nullable": true,
            "type": "number"
          },
          "oracle_price": {
            "nullable": true,
            "type": "number"
          },
          "open_interest_usd": {
            "nullable": true,
            "type": "number"
          },
          "next_funding_time": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "is_stale": {
            "type": "boolean"
          },
          "funding_status": {
            "type": "string",
            "enum": [
              "live",
              "zero",
              "paused",
              "zero_by_design",
              "none"
            ],
            "description": "What funding_rate means now. live: non-zero. zero: exactly 0 while the underlying's home market is open, on a market that has printed non-zero funding (a real 0, often a formula's dead band). paused: exactly 0 while the home market is closed on a market that does fund (Bitget and Bybit stock perps settle 0 outside US hours). zero_by_design: exactly 0 on a market that has never printed non-zero funding. none: no periodic funding (rollover venues). Only live and zero enter stats spreads."
          }
        },
        "required": [
          "venue",
          "market",
          "symbol",
          "asset_class",
          "mechanism",
          "price_deviation_pct",
          "is_price_suspect",
          "last_nonzero_funding_apr",
          "last_nonzero_funding_at",
          "funding_rate",
          "interval_hours",
          "funding_apr",
          "borrow_apr_annual",
          "mark_price",
          "oracle_price",
          "open_interest_usd",
          "next_funding_time",
          "updated_at",
          "is_stale",
          "funding_status"
        ]
      },
      "RwaPerpHistoryRow": {
        "type": "object",
        "properties": {
          "venue": {
            "type": "string"
          },
          "market": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "rate": {
            "type": "number"
          },
          "interval_hours": {
            "type": "number"
          },
          "session_phase": {
            "type": "string"
          },
          "settled_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "venue",
          "market",
          "symbol",
          "rate",
          "interval_hours",
          "session_phase",
          "settled_at"
        ]
      },
      "RwaCarryMetric": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string"
          },
          "venue": {
            "type": "string"
          },
          "fundingApr": {
            "type": "number",
            "description": "Realised funding over the trailing windowHours: the settled rates summed and annualised (x 8760 / windowHours). Never one annualised print."
          },
          "mechanism": {
            "type": "string"
          },
          "windowHours": {
            "type": "integer",
            "description": "Length of the realised window, in hours (24)."
          },
          "settlements": {
            "type": "integer",
            "description": "Settlements stored in the window. The market qualifies when they cover at least 90% of the window's hours (the hours each settlement stands for), not by their count."
          }
        },
        "required": [
          "symbol",
          "venue",
          "fundingApr",
          "mechanism",
          "windowHours",
          "settlements"
        ],
        "description": "Highest trailing-24h realised funding APR on a market with at least $1M open interest. Settlement history is stored for Hyperliquid and Kraken only, so best carry ranks those venues; null when none has at least 90% of the window covered by its settlements."
      },
      "RwaSpreadMetric": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string"
          },
          "spreadApr": {
            "type": "number",
            "description": "maxApr - minApr: the widest trusted cross-venue funding spread, this period annualised. Legs are funding_status live or zero only: a paused or by-design 0 is never a leg."
          },
          "maxVenue": {
            "type": "string"
          },
          "minVenue": {
            "type": "string"
          },
          "maxApr": {
            "type": "number"
          },
          "minApr": {
            "type": "number"
          }
        },
        "required": [
          "symbol",
          "spreadApr",
          "maxVenue",
          "minVenue",
          "maxApr",
          "minApr"
        ]
      },
      "RwaPerpStats": {
        "type": "object",
        "properties": {
          "bestCarry": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/RwaCarryMetric"
              }
            ]
          },
          "topSpread": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/RwaSpreadMetric"
              }
            ]
          },
          "weekendPremiumApr": {
            "nullable": true,
            "type": "number"
          },
          "totalOpenInterestUsd": {
            "nullable": true,
            "type": "number"
          },
          "venues": {
            "type": "integer"
          },
          "symbols": {
            "type": "integer"
          },
          "markets": {
            "type": "integer"
          },
          "asOf": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "stale": {
            "type": "boolean"
          },
          "laggingVenues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "venue": {
                  "type": "string"
                },
                "asOf": {
                  "nullable": true,
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "venue",
                "asOf"
              ]
            },
            "description": "Venue syncs behind the freshness threshold, oldest first; the rest are current. Empty when every venue is current."
          }
        },
        "required": [
          "bestCarry",
          "topSpread",
          "weekendPremiumApr",
          "totalOpenInterestUsd",
          "venues",
          "symbols",
          "markets",
          "asOf",
          "stale",
          "laggingVenues"
        ]
      },
      "RwaPerpRatesResponse": {
        "anyOf": [
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/SuccessEnvelope"
              },
              {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/RwaPerpCurrentRow"
                        },
                        {
                          "$ref": "#/components/schemas/RwaPerpHistoryRow"
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "data"
                ]
              }
            ]
          },
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaginatedEnvelope"
              },
              {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/RwaPerpCurrentRow"
                        },
                        {
                          "$ref": "#/components/schemas/RwaPerpHistoryRow"
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "data"
                ]
              }
            ]
          },
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/SuccessEnvelope"
              },
              {
                "type": "object",
                "properties": {
                  "data": {
                    "$ref": "#/components/schemas/RwaPerpStats"
                  }
                },
                "required": [
                  "data"
                ]
              }
            ]
          }
        ]
      },
      "MarketOverview": {
        "type": "object",
        "properties": {
          "bitcoin": {
            "type": "object",
            "properties": {
              "price": {
                "nullable": true,
                "type": "number"
              },
              "change": {
                "nullable": true,
                "type": "number"
              }
            },
            "required": [
              "price",
              "change"
            ]
          },
          "ethereum": {
            "type": "object",
            "properties": {
              "price": {
                "nullable": true,
                "type": "number"
              },
              "change": {
                "nullable": true,
                "type": "number"
              }
            },
            "required": [
              "price",
              "change"
            ]
          },
          "fgi": {
            "nullable": true,
            "type": "number"
          },
          "fgi_classification": {
            "type": "string"
          },
          "total_market_cap": {
            "nullable": true,
            "type": "number"
          },
          "total_volume": {
            "nullable": true,
            "type": "number"
          },
          "btc_dominance": {
            "nullable": true,
            "type": "number"
          },
          "btc_dominance_pct": {
            "description": "Bitcoin's share of total crypto market cap, in percent (57.3 = 57.3%): `btc_dominance` with its unit in its name. Null when unknown.",
            "nullable": true,
            "type": "number"
          },
          "market_cap_change_24h": {
            "nullable": true,
            "type": "number"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "bitcoin",
          "ethereum",
          "fgi",
          "fgi_classification",
          "total_market_cap",
          "total_volume",
          "btc_dominance",
          "market_cap_change_24h"
        ]
      },
      "MarketOverviewResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/MarketOverview"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "UsageData": {
        "type": "object",
        "properties": {
          "plan": {
            "type": "object",
            "properties": {
              "tier": {
                "type": "string",
                "enum": [
                  "free",
                  "analyst",
                  "pro",
                  "enterprise"
                ]
              },
              "rpm": {
                "type": "integer"
              },
              "monthly_limit": {
                "type": "integer"
              }
            },
            "required": [
              "tier",
              "rpm",
              "monthly_limit"
            ]
          },
          "rate_limit": {
            "type": "object",
            "properties": {
              "requests_per_minute": {
                "type": "integer"
              }
            },
            "required": [
              "requests_per_minute"
            ]
          },
          "quota": {
            "type": "object",
            "properties": {
              "used": {
                "type": "integer"
              },
              "limit": {
                "type": "integer"
              },
              "remaining": {
                "type": "integer"
              },
              "resets_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "used",
              "limit",
              "remaining",
              "resets_at"
            ]
          },
          "last_24h": {
            "type": "object",
            "properties": {
              "total_requests": {
                "type": "integer"
              },
              "by_endpoint": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "avg_response_ms": {
                      "type": "integer"
                    },
                    "errors": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "count",
                    "avg_response_ms",
                    "errors"
                  ]
                }
              }
            },
            "required": [
              "total_requests",
              "by_endpoint"
            ]
          }
        },
        "required": [
          "plan",
          "rate_limit",
          "quota",
          "last_24h"
        ]
      },
      "UsageResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/UsageData"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      },
      "WebTrafficCoinRanking": {
        "type": "object",
        "properties": {
          "entityId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "attentionScore": {
            "type": "number",
            "description": "Attention score, 0-100: for coins and narratives the log-scaled CoinGecko watchlist count, min(100, 15 x log10(watchlist users / 2)); for exchanges CoinGecko's spot trust score x 10, a venue-quality rating, not attention or traffic (an exchange CoinGecko does not rate is not ranked). No web-traffic measure enters it. Coin and narrative snapshots are restated on this formula from their stored watchlist count (null when none is stored): the stored scores before 2026-09-27 used an older formula (search interest plus watchlist users) and stepped from about 52 to about 91 across 2026-09-26/27."
          },
          "entityType": {
            "type": "string",
            "enum": [
              "coin"
            ]
          },
          "coinId": {
            "type": "string"
          },
          "sentimentUpPct": {
            "nullable": true,
            "description": "Share of CoinGecko sentiment votes that are bullish, 0-100; null when there is no vote sample for the entity. CoinGecko publishes no vote count, so a few votes can read 0 or 100.",
            "type": "number"
          },
          "sentimentDownPct": {
            "type": "number"
          },
          "watchlistUsers": {
            "nullable": true,
            "description": "CoinGecko portfolio watchlist count; null when CoinGecko sent no count for the coin (never 0).",
            "type": "integer"
          },
          "priceChange7d": {
            "type": "number"
          }
        },
        "required": [
          "entityId",
          "name",
          "attentionScore",
          "entityType",
          "coinId",
          "sentimentUpPct",
          "watchlistUsers"
        ]
      },
      "WebTrafficExchangeRanking": {
        "type": "object",
        "properties": {
          "entityId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "attentionScore": {
            "type": "number",
            "description": "Attention score, 0-100: for coins and narratives the log-scaled CoinGecko watchlist count, min(100, 15 x log10(watchlist users / 2)); for exchanges CoinGecko's spot trust score x 10, a venue-quality rating, not attention or traffic (an exchange CoinGecko does not rate is not ranked). No web-traffic measure enters it. Coin and narrative snapshots are restated on this formula from their stored watchlist count (null when none is stored): the stored scores before 2026-09-27 used an older formula (search interest plus watchlist users) and stepped from about 52 to about 91 across 2026-09-26/27."
          },
          "entityType": {
            "type": "string",
            "enum": [
              "exchange"
            ]
          },
          "trustScore": {
            "nullable": true,
            "type": "number"
          },
          "trustScoreRank": {
            "nullable": true,
            "type": "integer"
          },
          "tradeVolume24hBtc": {
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "entityId",
          "name",
          "attentionScore",
          "entityType",
          "trustScore",
          "trustScoreRank",
          "tradeVolume24hBtc"
        ]
      },
      "WebTrafficNarrativeRanking": {
        "type": "object",
        "properties": {
          "entityId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "attentionScore": {
            "type": "number",
            "description": "Attention score, 0-100: for coins and narratives the log-scaled CoinGecko watchlist count, min(100, 15 x log10(watchlist users / 2)); for exchanges CoinGecko's spot trust score x 10, a venue-quality rating, not attention or traffic (an exchange CoinGecko does not rate is not ranked). No web-traffic measure enters it. Coin and narrative snapshots are restated on this formula from their stored watchlist count (null when none is stored): the stored scores before 2026-09-27 used an older formula (search interest plus watchlist users) and stepped from about 52 to about 91 across 2026-09-26/27."
          },
          "entityType": {
            "type": "string",
            "enum": [
              "narrative"
            ]
          },
          "communityScore": {
            "type": "number"
          },
          "sentimentUpPct": {
            "nullable": true,
            "description": "Share of CoinGecko sentiment votes that are bullish, 0-100; null when there is no vote sample for the entity. CoinGecko publishes no vote count, so a few votes can read 0 or 100.",
            "type": "number"
          },
          "watchlistUsers": {
            "type": "integer"
          },
          "priceChange7d": {
            "type": "number"
          }
        },
        "required": [
          "entityId",
          "name",
          "attentionScore",
          "entityType",
          "communityScore",
          "sentimentUpPct",
          "watchlistUsers",
          "priceChange7d"
        ]
      },
      "WebTrafficRanking": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/WebTrafficCoinRanking"
          },
          {
            "$ref": "#/components/schemas/WebTrafficExchangeRanking"
          },
          {
            "$ref": "#/components/schemas/WebTrafficNarrativeRanking"
          }
        ]
      },
      "WebTrafficSnapshot": {
        "type": "object",
        "properties": {
          "entity_type": {
            "type": "string",
            "enum": [
              "exchange",
              "coin",
              "narrative"
            ]
          },
          "entity_id": {
            "type": "string"
          },
          "snapshot_at": {
            "type": "string",
            "format": "date-time"
          },
          "community_score": {
            "nullable": true,
            "description": "Per entity type: exchanges, CoinGecko's spot trust score (0-10); narratives, the narrative's mindshare share (percent); coins, null (CoinGecko deprecated the score).",
            "type": "number"
          },
          "sentiment_up_pct": {
            "nullable": true,
            "type": "number"
          },
          "public_interest_score": {
            "nullable": true,
            "description": "Per entity type: exchanges, CoinGecko's trust-score rank (1 = best; null when CoinGecko does not rate the exchange, e.g. Deribit's trust 0 with no rank); narratives, the mindshare watchlist score; coins, null (deprecated).",
            "type": "number"
          },
          "attention_score": {
            "nullable": true,
            "description": "The attention score as in the rankings (see attentionScore). Exchange snapshots carry trust score x 10, restated from the stored trust score and rank (rows written before 2026-10-31 stored none), and null when CoinGecko does not rate the exchange.",
            "type": "number"
          },
          "watchlist_users": {
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "entity_type",
          "entity_id",
          "snapshot_at",
          "community_score",
          "sentiment_up_pct",
          "public_interest_score",
          "attention_score",
          "watchlist_users"
        ]
      },
      "WebTrafficTrendingMarket": {
        "type": "object",
        "properties": {
          "coins": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "symbol": {
                  "type": "string"
                },
                "marketCapRank": {
                  "type": "integer"
                },
                "score": {
                  "type": "number"
                },
                "priceBtc": {
                  "type": "number"
                },
                "priceChange24h": {
                  "type": "number"
                },
                "sparkline": {
                  "nullable": true,
                  "description": "URL of CoinGecko's sparkline SVG image; null when CoinGecko sends none.",
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "symbol",
                "marketCapRank",
                "score",
                "priceBtc",
                "priceChange24h",
                "sparkline"
              ]
            }
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "name": {
                  "type": "string"
                },
                "marketCap": {
                  "type": "number"
                },
                "marketCap1hChange": {
                  "type": "number"
                },
                "coinsCount": {
                  "type": "integer"
                },
                "sparkline": {
                  "nullable": true,
                  "description": "URL of CoinGecko's sparkline SVG image; null when CoinGecko sends none.",
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "marketCap",
                "marketCap1hChange",
                "coinsCount",
                "sparkline"
              ]
            }
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "coins",
          "categories",
          "updatedAt"
        ]
      },
      "WebTrafficCategoriesMarket": {
        "type": "object",
        "properties": {
          "categories": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "marketCap": {
                  "type": "number"
                },
                "marketCapChange24h": {
                  "type": "number"
                },
                "volume24h": {
                  "type": "number"
                },
                "top3CoinIds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "id",
                "name",
                "marketCap",
                "marketCapChange24h",
                "volume24h",
                "top3CoinIds"
              ]
            }
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "categories",
          "updatedAt"
        ]
      },
      "WebTrafficGlobalMarket": {
        "type": "object",
        "properties": {
          "activeCryptocurrencies": {
            "type": "number"
          },
          "totalMarketCapUsd": {
            "type": "number"
          },
          "totalVolumeUsd": {
            "type": "number"
          },
          "btcDominance": {
            "type": "number"
          },
          "ethDominance": {
            "type": "number"
          },
          "usdtDominance": {
            "type": "number"
          },
          "marketCapChangePercentage24h": {
            "type": "number"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "activeCryptocurrencies",
          "totalMarketCapUsd",
          "totalVolumeUsd",
          "btcDominance",
          "ethDominance",
          "usdtDominance",
          "marketCapChangePercentage24h",
          "updatedAt"
        ],
        "description": "Canonical fields are populated on a healthy market snapshot; an empty or partial object can be returned when both caches are unavailable."
      },
      "WebTrafficSnapshotCoverage": {
        "type": "object",
        "properties": {
          "availableSince": {
            "nullable": true,
            "type": "string",
            "format": "date-time"
          },
          "availableTimeframes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "7d",
                "30d",
                "90d",
                "1y",
                "3y",
                "all"
              ]
            }
          }
        },
        "required": [
          "availableSince",
          "availableTimeframes"
        ]
      },
      "WebTrafficUnavailableMarket": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "Empty degraded market payload returned when persistent and memory caches are both unavailable.",
        "maxProperties": 0
      },
      "WebTrafficPartialGlobalMarket": {
        "type": "object",
        "properties": {
          "activeCryptocurrencies": {
            "type": "number"
          },
          "totalMarketCapUsd": {
            "type": "number"
          },
          "totalVolumeUsd": {
            "type": "number"
          },
          "btcDominance": {
            "type": "number"
          },
          "ethDominance": {
            "type": "number"
          },
          "usdtDominance": {
            "type": "number"
          },
          "marketCapChangePercentage24h": {
            "type": "number"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "Partial last-good global market cache returned when live refresh fails.",
        "minProperties": 1
      },
      "WebTrafficDataPayload": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "rankings": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/WebTrafficRanking"
                }
              },
              "updatedAt": {
                "nullable": true,
                "type": "string"
              }
            },
            "required": [
              "rankings",
              "updatedAt"
            ]
          },
          {
            "type": "object",
            "properties": {
              "snapshots": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/WebTrafficSnapshot"
                }
              },
              "coverage": {
                "$ref": "#/components/schemas/WebTrafficSnapshotCoverage"
              }
            },
            "required": [
              "snapshots"
            ]
          },
          {
            "$ref": "#/components/schemas/WebTrafficTrendingMarket"
          },
          {
            "$ref": "#/components/schemas/WebTrafficCategoriesMarket"
          },
          {
            "$ref": "#/components/schemas/WebTrafficGlobalMarket"
          },
          {
            "$ref": "#/components/schemas/WebTrafficUnavailableMarket"
          },
          {
            "$ref": "#/components/schemas/WebTrafficPartialGlobalMarket"
          }
        ]
      },
      "WebTrafficDataResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/WebTrafficDataPayload"
              }
            },
            "required": [
              "data"
            ]
          }
        ]
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Invalid or missing parameter.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "type": "https://www.sharpe.ai/errors/invalid_parameter",
              "title": "Invalid Parameter",
              "status": 400,
              "detail": "Invalid parameter \"coin\": must not be empty",
              "request_id": "req_a1b2c3d4e5f6g7h8i9j0",
              "doc_url": "https://www.sharpe.ai/docs/errors#error-codes",
              "suggested_action": "Check the parameter value against the endpoint documentation. Use GET /v1/futures/coins or GET /v1/meta/coverage to discover valid values."
            }
          }
        },
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          }
        }
      },
      "Unauthorized": {
        "description": "Missing, invalid, or expired API key.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "type": "https://www.sharpe.ai/errors/invalid_api_key",
              "title": "Invalid API Key",
              "status": 401,
              "detail": "Missing API key. Pass via Authorization: Bearer <key> or the X-API-Key header.",
              "request_id": "req_a1b2c3d4e5f6g7h8i9j0",
              "doc_url": "https://www.sharpe.ai/docs/authentication",
              "suggested_action": "Check your API key is correct. Pass it via Authorization: Bearer <key> or the X-API-Key header."
            }
          }
        },
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          }
        }
      },
      "Forbidden": {
        "description": "The API key lacks a scope this endpoint requires.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "type": "https://www.sharpe.ai/errors/insufficient_scope",
              "title": "Insufficient Scope",
              "status": 403,
              "detail": "This API key requires the following scope(s): read.",
              "request_id": "req_a1b2c3d4e5f6g7h8i9j0",
              "doc_url": "https://www.sharpe.ai/docs/authentication",
              "suggested_action": "Create a new API key with the required scopes, or contact support to update scopes on your existing key."
            }
          }
        },
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          }
        }
      },
      "NotFound": {
        "description": "Resource not found, or no v1 route matches the request path. Unauthenticated requests to an unknown path return 401 instead, so route existence is never disclosed without a key.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "type": "https://www.sharpe.ai/errors/resource_not_found",
              "title": "Resource Not Found",
              "status": 404,
              "detail": "No v1 endpoint matches this path. Check the path against the endpoint list at https://www.sharpe.ai/docs/api-reference.",
              "request_id": "req_a1b2c3d4e5f6g7h8i9j0",
              "doc_url": "https://www.sharpe.ai/docs/errors#error-codes",
              "suggested_action": "Verify the URL path. See https://www.sharpe.ai/docs for a list of available endpoints."
            }
          }
        },
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          }
        }
      },
      "RateLimited": {
        "description": "Per-minute rate limit or monthly quota exceeded. Both are temporary; retry after the Retry-After header.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "rate_limit_exceeded": {
                "summary": "Per-minute rate limit exceeded",
                "value": {
                  "type": "https://www.sharpe.ai/errors/rate_limit_exceeded",
                  "title": "Rate Limit Exceeded",
                  "status": 429,
                  "detail": "Rate limit of 30 requests per minute exceeded.",
                  "request_id": "req_a1b2c3d4e5f6g7h8i9j0",
                  "doc_url": "https://www.sharpe.ai/docs/rate-limits",
                  "suggested_action": "Wait until the time in the X-RateLimit-Reset header before retrying. Upgrade your plan for higher limits."
                }
              },
              "monthly_quota_exceeded": {
                "summary": "Monthly quota exceeded",
                "value": {
                  "type": "https://www.sharpe.ai/errors/monthly_quota_exceeded",
                  "title": "Monthly Quota Exceeded",
                  "status": 429,
                  "detail": "Monthly quota of 10,000 requests exceeded. Resets at 2026-04-01T00:00:00.000Z.",
                  "request_id": "req_a1b2c3d4e5f6g7h8i9j0",
                  "doc_url": "https://www.sharpe.ai/docs/rate-limits",
                  "suggested_action": "Retry after the seconds given in the Retry-After header, when the monthly quota resets. Upgrade your plan for a higher monthly quota. Check usage at GET /v1/usage."
                }
              }
            }
          }
        },
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          },
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "X-Quota-Limit": {
            "$ref": "#/components/headers/X-Quota-Limit"
          },
          "X-Quota-Remaining": {
            "$ref": "#/components/headers/X-Quota-Remaining"
          },
          "X-Quota-Reset": {
            "$ref": "#/components/headers/X-Quota-Reset"
          },
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          }
        }
      },
      "InternalError": {
        "description": "Unexpected server error.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "type": "https://www.sharpe.ai/errors/internal_error",
              "title": "Internal Server Error",
              "status": 500,
              "detail": "An unexpected error occurred. Please try again later.",
              "request_id": "req_a1b2c3d4e5f6g7h8i9j0",
              "doc_url": "https://www.sharpe.ai/docs/errors#retry-guidance",
              "suggested_action": "Retry with exponential backoff (1s, 2s, 4s, up to 30s). If the error persists, contact support with the X-Request-Id."
            }
          }
        },
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          }
        }
      },
      "UpstreamError": {
        "description": "An upstream data source or dependency returned an error.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "type": "https://www.sharpe.ai/errors/upstream_error",
              "title": "Upstream Error",
              "status": 502,
              "detail": "A data source is temporarily unavailable.",
              "request_id": "req_a1b2c3d4e5f6g7h8i9j0",
              "doc_url": "https://www.sharpe.ai/docs/errors#retry-guidance",
              "suggested_action": "A data source is temporarily unavailable. Retry with exponential backoff. If it persists, contact team@sharpe.ai with the X-Request-Id."
            }
          }
        },
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          }
        }
      },
      "ServiceUnavailable": {
        "description": "The API or quota verification service is temporarily unavailable.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "type": "https://www.sharpe.ai/errors/service_unavailable",
              "title": "Service Unavailable",
              "status": 503,
              "detail": "API key verification is temporarily unavailable. Please retry shortly.",
              "request_id": "req_a1b2c3d4e5f6g7h8i9j0",
              "doc_url": "https://www.sharpe.ai/docs/errors#retry-guidance",
              "suggested_action": "The API is temporarily unavailable. Retry with exponential backoff. If it persists, contact team@sharpe.ai with the X-Request-Id."
            }
          }
        },
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          }
        }
      }
    },
    "headers": {
      "X-Request-Id": {
        "schema": {
          "type": "string"
        },
        "description": "Unique request identifier. Include this value when contacting support."
      },
      "X-RateLimit-Limit": {
        "schema": {
          "type": "integer"
        },
        "description": "Requests allowed per minute for the authenticated API key."
      },
      "X-RateLimit-Remaining": {
        "schema": {
          "type": "integer"
        },
        "description": "Requests remaining in the current one-minute rate-limit window."
      },
      "X-RateLimit-Reset": {
        "schema": {
          "type": "integer"
        },
        "description": "Unix timestamp in seconds when the current rate-limit window resets."
      },
      "X-Quota-Limit": {
        "schema": {
          "type": "integer"
        },
        "description": "Monthly request quota for the authenticated API key."
      },
      "X-Quota-Remaining": {
        "schema": {
          "type": "integer"
        },
        "description": "Monthly requests remaining in the current billing period."
      },
      "X-Quota-Reset": {
        "schema": {
          "type": "string",
          "format": "date-time"
        },
        "description": "ISO 8601 timestamp when the monthly quota resets, when available from the quota store."
      },
      "X-Data-Source": {
        "schema": {
          "type": "string"
        },
        "description": "The sources behind the rows, comma-separated source ids (e.g. `binance,bybit`): `meta.source`. /v1/funding/rates and /v1/rwa-perps/rates send the origin tier instead, `live` or `supabase`."
      },
      "X-Data-Stale": {
        "schema": {
          "type": "boolean"
        },
        "description": "True when the data is past its freshness SLA (`meta.freshness_status` is not `fresh`), judged for the answer as a whole; rows keep their own staleness flags. /v1/funding/rates and /v1/rwa-perps/rates set it when the response is empty or at least one returned row exceeds the published freshness target."
      },
      "X-Data-Missing": {
        "schema": {
          "type": "string"
        },
        "description": "Each configured venue that is not a quoted member of the board, comma-separated `Venue:reason`: `not_live` (the instrument master says every contract is halted; the venue is not asked), `stale` (no funding row inside the funding SLA), `no_ticker` (rows served unpriced: the venue has no bulk ticker, or its fetch failed). Absent when every venue is a quoted member."
      },
      "X-Data-Venues": {
        "schema": {
          "type": "string"
        },
        "description": "The venues a venue filter may offer, comma-separated: the configured venues the instrument master does not call not live."
      },
      "X-Data-As-Of": {
        "schema": {
          "type": "string",
          "format": "date-time"
        },
        "description": "When the data was current: `meta.as_of` (the newest live row, the snapshot or refresh time, or the fetch time). /v1/funding/rates and /v1/rwa-perps/rates: the newest source timestamp in the response."
      },
      "X-Freshness-Sla-Seconds": {
        "schema": {
          "type": "integer"
        },
        "description": "The dataset's freshness SLA in seconds (`meta.freshness_sla_seconds`): the writer's cadence plus one skipped run."
      },
      "X-Data-Availability": {
        "schema": {
          "type": "string",
          "enum": [
            "historical",
            "unavailable"
          ]
        },
        "description": "Whether dormant-producer data is historical or unavailable."
      },
      "X-Producer-Status": {
        "schema": {
          "type": "string",
          "enum": [
            "dormant"
          ]
        },
        "description": "Operational state of the dataset producer."
      },
      "Retry-After": {
        "schema": {
          "type": "integer"
        },
        "description": "Seconds to wait before retrying after a per-minute rate-limit or monthly-quota rejection."
      },
      "X-Coverage-Start": {
        "schema": {
          "type": "string",
          "format": "date-time"
        },
        "description": "Oldest source timestamp represented in the response. Sent on type=history; absent when the window returned no rows."
      },
      "X-Requested-Start": {
        "schema": {
          "type": "string",
          "format": "date-time"
        },
        "description": "Start of the window the days parameter asked for, on type=history."
      },
      "X-Coverage-Complete": {
        "schema": {
          "type": "boolean"
        },
        "description": "False when the returned series starts more than 7 days after X-Requested-Start, or returned no rows at all. A short history is a 200 either way, so the shortfall is stated here rather than inferred."
      },
      "X-Days-Clamped": {
        "schema": {
          "type": "boolean"
        },
        "description": "True when days exceeded the 1095-day ceiling and the window was shortened. Always false on /v1, which rejects an out-of-range days value with a 400 instead of clamping it."
      },
      "X-Data-Partial": {
        "schema": {
          "type": "string"
        },
        "description": "Comma-separated database tables whose paged read failed or timed out after some rows arrived, so the series is missing rows. Absent when every read completed. The free /api/futures/data route also stops edge caching for such a response."
      }
    }
  }
}
