GET可用
单个币种的爆仓摘要
自采数据层:单个币种的爆仓摘要
GET
/api/sd/liquidations请求
查询参数
| 名称 | 类型 | 必填 | 默认值 | 可选值 | 说明 |
|---|---|---|---|---|---|
| coin | string | 必填 | — | — | 币种代码;缺失时返回 400。别名:`base`。 示例: BTC |
请求示例
curl -s "https://www.coinboss.com/api/sd/liquidations?coin=BTC"响应字段
字段表根据真实响应生成,因此所列内容与端点实际返回的完全一致。路径中 a[] 表示数组元素,{*} 表示以动态名称(如币种或交易所)为键的对象。
| 字段 | 类型 | 单位 | 说明 |
|---|---|---|---|
| success | boolean | — | 请求成功时为 true。失败时响应体为 `{ success: false, code, error, request_id }`。 |
| coin | string | — | 币种代码,大写(例如 BTC)。 |
| now | number | ms | 响应生成时的服务器时间。 |
| windows | object | — | 各时间窗口的合计(键如 `1h`、`4h`、`12h`、`24h`)。 动态键: 1h,4h,12h,24h |
| windows.{*} | object | — | 各时间窗口的数值。 |
| windows.{*}.long_usd | number | USD | 多头爆仓额;没有数据源覆盖该窗口时为 null。 |
| windows.{*}.short_usd | number | USD | 空头爆仓额;没有数据源覆盖该窗口时为 null。 |
| windows.{*}.total_usd | number | USD | 多头 + 空头。 |
| windows.{*}.count | number | — | 爆仓单数量。 |
| windows.{*}.long_pct | number | % | 多头在合计中的占比。 |
| windows.{*}.max_order | object | — | 窗口内的最大单笔爆仓。 |
| windows.{*}.max_order.exchange | string | — | 交易所 ID,小写(例如 `binance`)。 |
| windows.{*}.max_order.symbol | string | — | 经 CoinBoss 归一化的合约代码(例如 BTCUSDT)。 |
| windows.{*}.max_order.side | string | — | 被爆仓仓位的方向(`long` = 多头被爆仓)。 |
| windows.{*}.max_order.price | number | — | 以计价货币表示的最新价格(除非另有说明,为 USD 或 USDT)。 |
| windows.{*}.max_order.qty | number | — | 交易所公布的订单规模,以合约张数或币计。 |
| windows.{*}.max_order.contract_multiplier | number | — | 每张合约对应的币数,用于将 `qty` 换算为名义价值。 |
| windows.{*}.max_order.value_usd | number | USD | 爆仓的名义价值:price × qty × 合约乘数。 |
| windows.{*}.max_order.timestamp | number | ms | 时间戳。 |
| by_exchange | object | — | 各时间窗口的交易所拆分。 动态键: 1h,4h,12h,24h |
| by_exchange.{*} | array | — | 各交易所明细。 |
| by_exchange.{*}[] | object | — | 各交易所明细。 |
| by_exchange.{*}[].exchange | string | — | 交易所 ID,小写(例如 `binance`)。 |
| by_exchange.{*}[].long_usd | number | USD | 多头侧。 |
| by_exchange.{*}[].short_usd | number | USD | 空头侧。 |
| by_exchange.{*}[].total_usd | number | USD | 总数。 |
| by_exchange.{*}[].count | number | — | 爆仓单数量。 |
| by_exchange.{*}[].share_pct | number | % | 占总量的比例。 |
| last_event_at | number | ms | 该币种最近一次爆仓的时间。 |
| last_event_age_s | number | s | 距该事件的秒数。 |
| sources | array | — | 每个爆仓数据源的状态:采集方式以及最近一次送达数据的时间。 |
| sources[] | object | — | 数据来源。 |
| sources[].exchange | string | — | 交易所 ID,小写(例如 `binance`)。 |
| sources[].via | string | — | 采集方式(`ws`、`rest` 等)。 |
| sources[].status | string | — | 根据数据源自身的事件时间和心跳判定的状态。 |
| sources[].feed_last_event_age_s | number|null | s | 距该事件的秒数。 |
| sources[].ws_heartbeat_age_s | number|null | s | 距该事件的秒数。 |
| sources[].judged_by | string | — | 状态是依据哪个时间戳判定的。 |
| sources[].coin_last_event_age_s | number|null | s | 距该事件的秒数。 |
| sources[].min_event_usd | number | USD | 该数据源公布的最小订单规模;小于此规模的爆仓在该交易所不可见。 |
| sources[].note | string|null | — | 备注。 |
| sources[].node_heartbeat_age_s | number | s | 距该事件的秒数。 可能缺失 |
| sources[].pipeline_last_event_age_s | number | s | 距该事件的秒数。 可能缺失 |
| coverage | object | — | 上述数值包含什么、不包含什么。在与其他数据源比较合计之前,请先比对这一点。 |
| coverage.collected_exchanges | array | — | 有公开爆仓数据源且 CoinBoss 已采集的交易所。 |
| coverage.collected_exchanges[] | string | — | 已采集的交易所。 |
| coverage.unavailable | array | — | 无法计入的交易所 / 合约组合,每项均附原因。它们绝不会按 0 计。 |
| coverage.unavailable[] | object | — | 没有可用数据的条目,附原因。绝不会上报为 0。 |
| coverage.unavailable[].exchange | string | — | 交易所 ID,小写(例如 `binance`)。 |
| coverage.unavailable[].reason | string | — | 原因代码。 |
| method | object | — | 以纯文本说明本响应所用的公式。 |
| method.event | string | — | 关于一条爆仓事件含义的纯文本说明:由交易所推送流推送、或由其公开 REST API 返回的一笔爆仓单。 |
| method.side | string | — | 被爆仓仓位的方向(`long` = 多头被爆仓)。 |
| method.value_usd | string | USD | 爆仓的名义价值:price × qty × 合约乘数。 |
| method.dedupe | string | — | 关于去重的纯文本说明:事件按交易所、合约、方向、价格、金额和时间戳确定唯一性,交易所提供订单 ID 时一并纳入。 |
| method.null_rule | string | — | 纯文本说明:没有采集到任何事件的时间窗口返回 null 而不是 0,并注明没有公开数据流的交易所列在何处。 |
| method.binance_note | string | — | 纯文本提示:Binance 对每个合约每秒最多推送一笔爆仓,因此 Binance 的合计为下限值。 |
| method.min_event_usd | string | USD | 该数据源公布的最小订单。 |
生成于 2026-11-11 23:00 UTC,基于 4 个真实响应。
响应示例
/api/sd/liquidations?coin=BTC · 真实响应,采集于 2026-11-13 03:57:52 UTC。 为便于展示,较长的数组和映射已被截短:sources 原有 11 项; windows 原有 4 项; by_exchange 原有 4 项; by_exchange.{*} 原有 10 项; coverage.unavailable 原有 10 项; coverage.collected_exchanges 原有 11 项。
- "success"true
- "coin""BTC"
- "now"1794542272606
- "windows"
- "1h"
- "4h"
- "by_exchange"
- "1h"
- "4h"
- "last_event_at"1794542269523
- "last_event_age_s"3
- "sources"
- "coverage"
- "collected_exchanges"
- "unavailable"
- "method"
- "event""one row per liquidation order pushed by the exchange (WS) or returned by its public REST; REST used to fill WS gaps (OKX/Gate/HTX)"
- "side""LONG = a long position was liquidated (forced sell); SHORT = a short position was liquidated (forced buy)"
- "value_usd""linear: filled qty × price; inverse: contracts × contract face value (USD)"
- "dedupe""unique (exchange, symbol, side, price, value_usd, timestamp) + exchange order id hash where provided"
- "null_rule""a window with no collected event returns null (shown as —), never 0; exchanges without a public feed are listed in coverage.unavailable"
- "binance_note""Binance WS pushes at most one liquidation per symbol per second (latest only) → Binance totals are a lower bound"
- "min_event_usd""collectors keep events above a per-exchange floor (sources[].min_event_usd: OKX/Bitget/HTX/Bitfinex/Deribit ≥ $100; Gate/Hyperliquid/Lighter ≥ $1; Binance/Bybit…"
已验证的样本
除上面的示例外,探针还会使用以下参数调用该端点,并在每次调用时校验结构。
| 参数 | HTTP | 延迟 | 结果 |
|---|---|---|---|
| coin=ETH | 200 | 59 ms | 通过 |
| coin=SOL | 200 | 30 ms | 通过 |
| coin=ARKM | 200 | 17 ms | 通过 |
| — | 400 | 2 ms | 通过 返回预期的错误 |
检查于 2026-11-13 03:57:52 UTC
详细信息
- 身份验证
- 无。公开端点。
- 速率限制
- 每个 IP 每分钟 1200 次请求
- 服务端缓存
- 15s
- 边缘微缓存
- 10s
- 更新频率
- 实时(交易所 WebSocket 推送);REST 轮询:okx 每 15 秒,gate 每 25 秒,htx 每 5 分钟;hyperliquid 节点成交批次每 5 秒入库一次
- 时间窗口
- 滚动窗口 1 小时、4 小时、12 小时、24 小时
- 数据来源
- 爆仓单由 CoinBoss 自行采集自 11 家交易所(如 binance、okx、bybit、gate、bitget、htx)的公开爆仓数据源;Hyperliquid 的爆仓来自自营 Hyperliquid 节点的成交记录。
- 交易所覆盖范围
- 11 家有活跃采集器的交易所(binance U 本位 + 币本位、okx、bybit 线性 + 反向、gate USDT 结算 + BTC 结算、bitget、htx、hyperliquid、aster、lighter、bitfinex、deribit);仅限加密资产(代币化股票 / 指数 / 商品 / 外汇合约归入单独的传统金融数据集);binance 对每个交易对每秒最多推送一笔爆仓,因此其合计为下限值;入库事件的最小规模:okx / bitget / htx / bitfinex / deribit / binance 币本位为 100 USD,gate / hyperliquid / lighter 为 1 USD,binance U 本位 / bybit / aster 无下限
- 单位
- USD notional (price x quantity) per liquidation order; timestamps in Unix ms; side LONG = long position liquidated, SHORT = short position liquidated; max_order price normalized for multiplier contracts
- 计算方法
- per window: long_usd, short_usd, total_usd = SUM(value_usd), count; by_exchange breakdown; largest single order
- 时间戳
- 除非字段说明另有注明,均为 Unix 纪元毫秒(UTC)
- 响应格式
- json
- 稳定性
- 稳定
- 上线时间
- 2026-11-11
实时状态
可用检查于 2026-11-13 03:57:52 UTCHTTP 200853 ms结构一致最新数据点距今 3s
近 30 天可用性
410 次检查中 100% 通过
错误
所有端点的失败响应格式一致。完整列表见错误页面。 错误与速率限制 →
| 错误码 | HTTP | 含义 | 处理方式 |
|---|---|---|---|
| INVALID_PARAM | 400 | 缺少必填参数,或某个取值不被接受。已知是哪个参数时,`param` 会给出其名称。 | 请勿原样重试;请修正请求。 |
| UNAUTHORIZED | 401 | 已发送 `CB-API-KEY` 请求头,但该密钥未知或已被吊销。公开数据无需密钥,请去掉该请求头或使用有效密钥。 | 请勿原样重试。 |
| FORBIDDEN | 403 | 该路由不属于公开 API(内部或仅限账户使用)。 | 请勿重试。 |
| NOT_FOUND | 404 | 未知路由,或所请求的币种 / 交易所 / 基金不存在。 | 请勿重试;请对照目录检查路径和标识符。 |
| RATE_LIMITED | 429 | 请求数超过每分钟限额。`Retry-After` 给出需要等待的秒数。 | 等待 `Retry-After` 指定的时间后,再以退避方式重试。 |
| INTERNAL | 500 | 意外的服务器错误。错误信息有意保持通用;报告问题时请附上 `request_id`。 | 几秒后重试一次;若问题持续,请附上请求 ID 报告。 |
| UPSTREAM_FAILED | 503 | 该端点背后的数据源未及时响应。不会返回过期数据或替代数值来顶替。 | 以退避方式重试;并查看状态页。 |
| UNAVAILABLE | 501 / 503 | 数据集暂时未就绪(缓存预热中),或该端点尚无合法的公开数据源。 | 请稍后重试;目录会标出因设计原因而不可用的端点。 |
| REQUEST_FAILED | 200 | 部分较旧的端点会以 HTTP 200 返回 `success: false`。请务必检查 `success`,而不只是 HTTP 状态码。 | 取决于具体信息;按请求失败处理。 |
试一试
GET
/api/sd/liquidations可用参数
string — Coin symbol; 400 when missing. Alias: `base`.
请求 URL
https://www.coinboss.com/api/sd/liquidations?coin=BTC选择一个端点,然后点击“发送请求”。响应、响应头和耗时将显示在这里。
同分类的其他端点
- 单个币种的爆仓摘要 /api/sd/liquidations
- 最大爆仓日(Top 10) /api/liquidation-events
- 逐笔爆仓原始记录(24h) /api/liquidations
- 有爆仓记录的全部币种 /api/liquidations/all-coins
- 单个合约代码的 24h 爆仓时间序列 /api/liquidations/chart
- 单个币种的各交易所爆仓拆分 /api/liquidations/coin-exchanges
- 单个币种的最大爆仓单 /api/liquidations/coin-largest
- 时间窗口内有爆仓的币种 /api/liquidations/coin-list
- 单个币种的多窗口爆仓汇总 /api/liquidations/coin-overview
- 单个币种的价格线叠加爆仓柱 /api/liquidations/coin-price-liq
- 单个币种的爆仓统计 /api/liquidations/coin-stats
- 单个币种的爆仓时间序列 /api/liquidations/coin-total-chart
- 按币种聚合的爆仓榜 /api/liquidations/coins
- 各币种爆仓表 /api/liquidations/coins-table
- 单个交易所的爆仓明细 /api/liquidations/exchange-detail
- 各交易所的爆仓名义价值与占比 /api/liquidations/exchanges
- 全市场爆仓数据流 /api/liquidations/feed
- 全市场最大爆仓单 /api/liquidations/largest
- 全市场爆仓汇总(1h / 4h / 12h / 24h) /api/liquidations/overview
- 按交易所、合约和方向统计的 24h 爆仓 /api/liquidations/stats
- 全市场爆仓时间序列 /api/liquidations/total-chart
- 各币种爆仓排行 /api/market/liq-rank
- 大额爆仓实时流 /api/market/liq-stream