GET可用
单个币种的合约成交量
自采数据层:单个币种的合约成交量
GET
/api/sd/volume请求
查询参数
| 名称 | 类型 | 必填 | 默认值 | 可选值 | 说明 |
|---|---|---|---|---|---|
| coin | string | 必填 | — | — | 币种代码;缺失时返回 400。别名:`base`。 示例: BTC |
请求示例
curl -s "https://www.coinboss.com/api/sd/volume?coin=BTC"响应字段
字段表根据真实响应生成,因此所列内容与端点实际返回的完全一致。路径中 a[] 表示数组元素,{*} 表示以动态名称(如币种或交易所)为键的对象。
| 字段 | 类型 | 单位 | 说明 |
|---|---|---|---|
| success | boolean | — | 请求成功时为 true。失败时响应体为 `{ success: false, code, error, request_id }`。 |
| coin | string | — | 币种代码,大写(例如 BTC)。 |
| now | number | ms | 响应生成时的服务器时间。 |
| futures | object | — | 合约市场数据块或数值。 |
| futures.total_usd | number | USD | 各交易所合计的 24h 合约成交量(USD 名义价值)。 |
| futures.n_exchanges | number | — | 参与计算的交易所数量。 |
| futures.by_exchange | array | — | 各交易所明细。 |
| futures.by_exchange[] | object | — | 各交易所明细。 |
| futures.by_exchange[].exchange | string | — | 交易所 ID,小写(例如 `binance`)。 |
| futures.by_exchange[].vol_usd | number | USD | 成交量,以 USD 名义价值计。 |
| futures.by_exchange[].legacy_usd | number | USD | 成交量中来自 USDT 永续合约行情集合的部分。 |
| futures.by_exchange[].sd_usd | number | USD | 来自已计入的其他合约(USDC 本位、币本位、交割)的部分。 |
| futures.by_exchange[].share_pct | number | % | 占总量的比例。 |
| futures.change_24h | object | — | 24h 涨跌幅。 |
| futures.change_24h.pct | number | % | 百分比。 |
| futures.change_24h.cur | number | — | 当前值。 |
| futures.change_24h.prev | number | — | 前值(基准)。 |
| futures.change_24h.n_matched | number | — | 对比两端都存在的条目。 |
| futures.change_24h.n_total | number | — | 当前存在的条目。 |
| futures.change_24h.prev_ts | number | ms | 基准快照的时间。 |
| futures.change_24h.basis | string | — | 合约价格减去现货价格,或基差数据块。 |
| futures.selfdata_contracts | object | — | 其他合约:哪些已计入,哪些仍待计入。 |
| futures.selfdata_contracts.included_usd | null | USD | 已计入合约总量的额外采集合约(币本位、USDC、交割)的 24h 成交量;尚无合约计入时为 null。 |
| futures.selfdata_contracts.n_included | number | count | 已计入合约总量的额外采集合约数量(即拥有约 24 小时前自身快照的合约)。 |
| futures.selfdata_contracts.pending_usd | number|null | USD | 待计入条目的合计,不在总量之内。 |
| futures.selfdata_contracts.n_pending | number | count | 因缺少自身 24 小时前基准而尚未计入的额外采集合约数量;其中最大的若干个列在 `pending` 中。 |
| futures.selfdata_contracts.pending | array | — | 已采集但尚未计入的条目。 |
| futures.selfdata_contracts.pending[] | object | — | 已采集但尚未计入的条目。 |
| futures.selfdata_contracts.pending[].exchange | string | — | 交易所 ID,小写(例如 `binance`)。 |
| futures.selfdata_contracts.pending[].symbol | string | — | 经 CoinBoss 归一化的合约代码(例如 BTCUSDT)。 |
| futures.selfdata_contracts.pending[].margin | string | — | 保证金币种类别。 |
| futures.selfdata_contracts.pending[].contract_type | string | — | `perpetual` 或 `delivery`。 |
| futures.selfdata_contracts.pending[].vol_usd | number | USD | 成交量,以 USD 名义价值计。 |
| futures.selfdata_contracts.pending[].reason | string | — | 原因代码。 |
| spot | object | — | 现货市场数据块或数值。 |
| spot.total_usd | number | USD | 各交易所合计的 24h 现货成交量。 |
| spot.n_exchanges | number | — | 参与计算的交易所数量。 |
| spot.asof | number | ms | 所用最新数据的时间。 |
| spot.by_exchange | array | — | 各交易所明细。 |
| spot.by_exchange[] | object | — | 各交易所明细。 |
| spot.by_exchange[].exchange | string | — | 交易所 ID,小写(例如 `binance`)。 |
| spot.by_exchange[].vol_usd | number | USD | 成交量,以 USD 名义价值计。 |
| spot.by_exchange[].quote | string | — | 该交易所计入的计价货币。 |
| spot.by_exchange[].ts | number | ms | 时间戳。 |
| spot.by_exchange[].price | number | — | 以计价货币表示的最新价格(除非另有说明,为 USD 或 USDT)。 |
| spot.by_exchange[].age_s | number | s | 该行距上次更新的秒数。 |
| spot.by_exchange[].share_pct | number | % | 占总量的比例。 |
| spot.change_24h | object | — | 24h 涨跌幅。 |
| spot.change_24h.pct | number | % | 百分比。 |
| spot.change_24h.cur | number | — | 当前值。 |
| spot.change_24h.prev | number | — | 前值(基准)。 |
| spot.change_24h.n_matched | number | — | 对比两端都存在的条目。 |
| spot.change_24h.n_total | number | — | 当前存在的条目。 |
| spot.change_24h.prev_ts | number | ms | 基准快照的时间。 |
| spot.change_24h.basis | string | — | 合约价格减去现货价格,或基差数据块。 |
| ratios | object | — | 成交量比值:`futures_to_spot`(24h 合约成交量 ÷ 24h 现货成交量)和 `oi_to_futures_volume`;任一输入缺失时对应比值为 null。 |
| ratios.futures_to_spot | number | — | 合约成交量除以现货成交量。 |
| ratios.oi_to_futures_volume | number | — | 持仓量除以 24h 合约成交量。 |
| method | object | — | 以纯文本说明本响应所用的公式。 |
| method.futures | string | — | 合约市场数据块或数值。 |
| method.spot | string | — | 现货市场数据块或数值。 |
| method.change | string | — | 在所述周期内的变化。 |
| method.oi_to_futures_volume | string | — | `ratios.oi_to_futures_volume` 的纯文本定义:以 USD 计的总持仓量 ÷ 以 USD 计的 24h 合约成交量。 |
生成于 2026-11-11 23:00 UTC,基于 4 个真实响应。
响应示例
/api/sd/volume?coin=BTC · 真实响应,采集于 2026-11-13 03:57:37 UTC。 为便于展示,较长的数组和映射已被截短:spot.by_exchange 原有 14 项; futures.by_exchange 原有 23 项; futures.selfdata_contracts.pending 原有 5 项。
- "success"true
- "coin""BTC"
- "now"1794542257033
- "futures"
- "total_usd"79049803843.06
- "n_exchanges"23
- "by_exchange"
- "change_24h"
- "selfdata_contracts"
- "spot"
- "total_usd"7929483908.44
- "n_exchanges"14
- "asof"1794541800000
- "by_exchange"
- "change_24h"
- "ratios"
- "futures_to_spot"9.9691
- "oi_to_futures_volume"0.6197
- "method"
- "futures""SUM of each exchange 24h quote turnover in USD for this coin's contracts (ticker fresh within 1h); self-collected coin-margined/USDC/delivery contracts are adde…"
- "spot""per exchange: 24h quote turnover summed over that exchange's USD/USDT/USDC-quoted spot pairs of the coin (quote = the largest pair); total = SUM over exchanges …"
- "change""same-exchange pairing: only exchanges with both a current value and a snapshot ~24h ago enter numerator and denominator"
- "oi_to_futures_volume""total open interest (USD) / 24h futures turnover (USD)"
已验证的样本
除上面的示例外,探针还会使用以下参数调用该端点,并在每次调用时校验结构。
| 参数 | HTTP | 延迟 | 结果 |
|---|---|---|---|
| coin=ETH | 200 | 38 ms | 通过 |
| coin=SOL | 200 | 46 ms | 通过 |
| coin=ARKM | 200 | 43 ms | 通过 |
| — | 400 | 1 ms | 通过 返回预期的错误 |
检查于 2026-11-13 03:57:37 UTC
详细信息
- 身份验证
- 无。公开端点。
- 速率限制
- 每个 IP 每分钟 1200 次请求
- 服务端缓存
- 30s
- 边缘微缓存
- 10s
- 更新频率
- 合约行情每 60 秒(币本位 / USDC 本位 / 交割合约每 120 秒);现货快照每 10 分钟
- 时间窗口
- 各交易所上报的 24 小时滚动成交量;24 小时变化对比自有归档中约 24 小时前的数据
- 数据来源
- 24h 合约成交量来自自有行情采集器(24 家衍生品交易所),24h 现货成交量来自自有现货行情采集器(14 家现货交易所,如 binance、okx、bybit、coinbase、kraken、upbit)。
- 交易所覆盖范围
- 合约:最多 24 家交易所;现货:14 家交易所,以 USD / USDT / USDC 计价的交易对
- 单位
- volumes in USD; changes in percent; ratios dimensionless
- 计算方法
- futures total = SUM(volume_usd) of tickers fresh within 1 h, plus non-USDT-perp contracts once they have their own ~24 h baseline; spot total = SUM of the latest per-exchange snapshot within 30 min; 24 h change by same-exchange pairing; ratios futures_to_spot and oi_to_futures_volume
- 时间戳
- 除非字段说明另有注明,均为 Unix 纪元毫秒(UTC)
- 响应格式
- json
- 稳定性
- 稳定
- 上线时间
- 2026-11-11
实时状态
可用检查于 2026-11-13 03:57:37 UTCHTTP 20042 ms结构一致最新数据点距今 8m
近 30 天可用性
411 次检查中 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/volume可用参数
string — Coin symbol; 400 when missing. Alias: `base`.
请求 URL
https://www.coinboss.com/api/sd/volume?coin=BTC选择一个端点,然后点击“发送请求”。响应、响应头和耗时将显示在这里。
同分类的其他端点
- 币种一站式数据包(OI、资金费率、爆仓、成交量、多空比) /api/sd/coin
- 单个币种的合约成交量 /api/sd/volume
- 衍生品币种筛选器 /api/derivatives/coins
- 完整衍生品币种表 /api/derivatives/coins-full
- 单个币种的衍生品 K 线 /api/derivatives/kline
- 各币种 RSI 列表 /api/derivatives/rsi
- 单个币种的 MACD 序列 /api/indicators/ta/macd/:coin
- 单个币种的历史序列 /api/market/history
- 按币种聚合的衍生品行情 /api/market/tickers
- 衍生品成交量排行 /api/market/volume-rank