币种页交易所表
币种页交易所表(各交易所的价格、成交量、OI、资金费率;现货或合约)
/api/currency/ex-table请求
查询参数
| 名称 | 类型 | 必填 | 默认值 | 可选值 | 说明 |
|---|---|---|---|---|---|
| coin | string | 必填 | — | — | 基础币种代码(大写,例如 BTC)。 示例: BTC |
| market | string | 可选 | futures | futures, spot, perpetual, delivery, all | `futures` (default) and `spot` return one row per exchange (`futures` one row per contract with `group=pair`). `perpetual`, `delivery` and `all` always return one row per market: perpetual contracts only, dated futures only, or every spot, perpetual and delivery market of the coin in one list. Any other value is treated as `futures`. 示例: futures |
| group | string | 可选 | — | pair | `pair` returns one row per contract instead of one row per exchange. Each row then carries `status`, `status_reason`, `market_type`, `expiry_ts`, `expiry_date`, `native_symbol`, `quote`, `margin_type`, `price_source`, `price_at` and `rank`, and the response adds a `meta` object. Rows whose `status` is not `active` (no live quote, no feed, expired) carry no price. |
请求示例
curl -s "https://www.coinboss.com/api/currency/ex-table?coin=BTC&market=futures"响应字段
字段表根据真实响应生成,因此所列内容与端点实际返回的完全一致。路径中 a[] 表示数组元素,{*} 表示以动态名称(如币种或交易所)为键的对象。
| 字段 | 类型 | 单位 | 说明 |
|---|---|---|---|
| success | boolean | — | 请求成功时为 true。失败时响应体为 `{ success: false, code, error, request_id }`。 |
| coin | string | — | 币种代码,大写(例如 BTC)。 |
| market | string | — | 市场。 |
| data | array | — | 数据载荷。 |
| data[] | object | — | 数据载荷。 |
| data[].exchange | string | — | 交易所 ID,小写(例如 `binance`)。 |
| data[].name | string | — | 名称。 |
| data[].pair | string|null | — | Exchange symbol of the row's contract: the highest-volume contract of the exchange, or the exact contract with `group=pair` (the symbol as CoinBoss normalises it; the name used by the exchange is `native_symbol`); null when the exchange has open interest but no ticker. |
| data[].price | number|null | — | 以计价货币表示的最新价格(除非另有说明,为 USD 或 USDT)。 |
| data[].change_pct | number|null | % | 涨跌幅(百分比)。 |
| data[].volume_usd | number|null | USD | 成交量,以 USD 名义价值计。 |
| data[].oi_usd | number|null | USD | 持仓量,以 USD 名义价值计。 |
| data[].ls_ratio | number|null | — | 多空比。 |
| data[].liq_long | number|null | — | 多头爆仓额。 |
| data[].liq_short | number|null | — | 空头爆仓额。 |
| data[].funding | number|null | — | 资金费率数据块或数值。 |
| data[].funding_interval_h | number|null | h | 资金费周期。 可能缺失 |
| data[].funding_8h | number|null | fraction | 归一化到 8 小时周期的 `funding`:费率 × 8 ÷ `funding_interval_h`(0.0001 = 0.01 %);结算周期未知时为 null。 可能缺失 |
| data[].next_funding_time | number|null | ms | 时间戳。 可能缺失 |
| data[].multiplier | number | x | 合约一个报价单位所代表的币数(1000PEPE 这类合约为 1000,其余为 1)。 可能缺失 |
| data[].vol_change_pct | number|null | % | 该交易所 24h 成交量相对其 23–25 小时前小时快照的变化;没有快照或非主合约行时为 null。 |
| data[].oi_change_pct | number|null | % | 该交易所持仓量相对同一批合约距 24 小时前最近(±1 h)的小时快照的变化;没有基准时为 null。 |
| data[].oi_vol_change_pct | number|null | % | 持仓量 ÷ 24h 成交量之比相对 24 小时前同一比值的变化。 |
| data[].price_raw | number|null | USD | 交易所对该合约的原始报价(最新价),未除以 `multiplier`;`multiplier` 为 1 时等于 `price`。 可能缺失 |
| data[].liquidity_usd | number|null | USD | 该交易所中间价 ±1 % 范围内买盘与卖盘订单簿名义价值之和;`liquidity_complete` 为 false 时为下限值。 可能缺失 |
| data[].liquidity_reach_pct | number | % | 交易所返回的订单簿实际覆盖到的距中间价的距离,取买盘侧和卖盘侧中较小的一个。 可能缺失 |
| data[].liquidity_complete | boolean | — | 返回的订单簿在买卖两侧都覆盖完整的 ±1 % 区间时为 true;false 表示 `liquidity_usd` 被低估。 可能缺失 |
| data[].oi_vol_ratio | number|null | — | 持仓量除以 24h 成交量。 |
| data[].pair_disp | string | — | 交易对的展示形式,格式为 base/quote(`BTC/USDT`、`1000PEPE/USDT`;CME 和 USD 本位交易所为 `BTC/USD`)。 |
| data[].contract_type | string|null | — | `perpetual` or `delivery` (dated futures); null on spot rows. With `group=pair` it comes from the exchange's contract specification where CoinBoss has one, otherwise from the expiry code in the symbol. |
| data[].expiry | string(decimal)|null | — | Expiry date code YYMMDD of a dated contract. With `group=pair` it is derived from `expiry_ts` for every contract that has an expiry; otherwise it is the six-digit symbol suffix. Null for contracts without an expiry and for CME rows. |
| data[].market_type | string | — | `spot`, `perpetual` or `delivery`. 可能缺失 |
| data[].expiry_ts | number|null | ms | Expiry / delivery time of the contract, Unix milliseconds; null when the contract has no expiry or the exchange does not publish one. 可能缺失 |
| data[].expiry_date | string|null | — | Expiry date as YYYY-MM-DD (UTC); null when the contract has no expiry. 可能缺失 |
| data[].native_symbol | string|null | — | Contract name exactly as the exchange lists it (`BTCUSDT_270326`, `BTC-PERPETUAL`, `XBTMZ26`); null when CoinBoss holds no contract specification for the venue and on spot rows. 可能缺失 |
| data[].quote | string|null | — | Quote currency of the contract or spot pair (`USDT`, `USDC`, `USD`, …). 可能缺失 |
| data[].margin_type | string|null | — | Margin asset class from the contract specification: `usdt`, `usdc`, `coin`, `usd` or `other`; null when unknown and on spot rows. 可能缺失 |
| data[].status | string | — | Market state of the row (only with `group=pair` and `market=spot`): `active` = a real quote received within the last hour and a 24h volume above zero; `no_quote` = the contract is listed but has no usable quote, see `status_reason`; `not_provided` = the exchange publishes no real-time ticker that CoinBoss collects (CME); `expired` = the contract is past its expiry. Rows that are not `active` carry no price. 可能缺失 |
| data[].status_reason | string|null | — | Why a row is not `active`: `expired`, `no_realtime_feed`, `quote_stale` (last quote older than one hour), `no_price`, `no_volume` (the exchange reports no 24h volume) or `no_trades_24h` (the reported 24h volume is zero). Null on active rows. 可能缺失 |
| data[].price_source | string|null | — | Dataset the row's price and volume were read from: `market_tickers`, `sd_contract_latest` or `spot_coin_ex_vol`; null when no ticker exists for the contract. 可能缺失 |
| data[].price_at | number|null | ms | Time the row's ticker was received, Unix milliseconds. On rows that are not `active` it is the time of the last ticker seen (no price is returned for it), or null. 可能缺失 |
| data[].symbol | string | — | Symbol of the row as CoinBoss stores it (`BTCUSDT`, `BTCUSD_270326`, `BTC-27NOV26`); same value as `pair` on contract rows, base + quote on spot rows. The name used by the exchange is `native_symbol`. 可能缺失 |
| data[].base | string | — | Underlying of the contract or spot pair as traded. Contracts quoted in multiples of the coin keep the multiplier (`1000PEPE`). 可能缺失 |
| data[].market_status | string | — | State of the market: `ACTIVE` = not expired, a quote of this market received within the last hour and a 24h volume above zero; `EXPIRING` = active and the exchange lists its expiry within the next 24 hours; `EXPIRED` = past its expiry; `STALE` = the last quote is older than one hour; `NO_QUOTE` = no usable quote, see `reason_code`. Only `ACTIVE` and `EXPIRING` rows carry a price and a `rank`. 可能缺失 |
| data[].reason_code | string|null | — | Why the row carries no price: `NO_QUOTE` (listed, but no trades in 24h or no last price / volume reported), `EXPIRED`, `STALE`, or `UNAVAILABLE` (CoinBoss collects no real-time ticker for this market, e.g. CME). Null on `ACTIVE` and `EXPIRING` rows. The finer cause is in `status_reason`. 可能缺失 |
| data[].source_at | number|null | ms | Time the ticker behind this row was received from the exchange, Unix milliseconds; null when no ticker exists. Same value as `price_at`. 可能缺失 |
| data[].quality | string | — | `live` = `source_at` within the last hour, `stale` = older, `none` = no ticker for this market. 可能缺失 |
| data[].is_stale | boolean | — | True when `quality` is `stale`. 可能缺失 |
| data[].expires_in_s | number|null | s | Seconds until the expiry of the contract at the time the table was assembled; negative once expired; null when the contract has no expiry. 可能缺失 |
| data[].rank | number|null | — | Position among rankable rows (`market_status` `ACTIVE` or `EXPIRING`) ordered by `volume_usd` descending, starting at 1 and counted inside the requested view; null on rows that are not rankable. 可能缺失 |
| data[].market | string | — | 市场。 可能缺失 |
| meta | object | — | 可能缺失 |
| meta.group | string | — | `pair` = one row per contract, `exchange` = one row per spot venue. 可能缺失 |
| meta.as_of | number | ms | Time the table was assembled, Unix milliseconds. 可能缺失 |
| meta.fresh_window_s | number | s | Maximum age of a quote for a row to count as `active`. 可能缺失 |
| meta.expiring_window_s | number | s | A contract whose expiry is closer than this is reported as `EXPIRING`. 可能缺失 |
| meta.volume_window | string | — | Window of `volume_usd`: `24h_rolling`, the rolling 24-hour turnover each exchange reports. 可能缺失 |
| meta.volume_unit | string | — | Unit of `volume_usd`. 可能缺失 |
| meta.sort | string | — | Row order of the response in words. 可能缺失 |
| meta.counts | object | — | 可能缺失 |
| meta.counts.active | number | count | Rows with `status=active`. 可能缺失 |
| meta.counts.no_quote | number | count | Rows with `status=no_quote`. 可能缺失 |
| meta.counts.not_provided | number | count | Rows with `status=not_provided`. 可能缺失 |
| meta.counts.expired | number | count | Rows with `status=expired`. 可能缺失 |
| meta.market_status_counts | object | — | 可能缺失 |
| meta.market_status_counts.ACTIVE | number | count | Rows with `market_status=ACTIVE`. 可能缺失 |
| meta.market_status_counts.EXPIRING | number | count | Rows with `market_status=EXPIRING`. 可能缺失 |
| meta.market_status_counts.EXPIRED | number | count | Rows with `market_status=EXPIRED`. 可能缺失 |
| meta.market_status_counts.NO_QUOTE | number | count | Rows with `market_status=NO_QUOTE`. 可能缺失 |
| meta.market_status_counts.STALE | number | count | Rows with `market_status=STALE`. 可能缺失 |
| meta.type_counts | object | — | 可能缺失 |
| meta.type_counts.spot | number | count | Spot rows in the response. 可能缺失 |
| meta.type_counts.perpetual | number | count | Perpetual rows in the response. 可能缺失 |
| meta.type_counts.delivery | number | count | Delivery (dated futures) rows in the response. 可能缺失 |
| meta.type_rankable | object | — | 可能缺失 |
| meta.type_rankable.spot | number | count | Spot rows that are rankable (`ACTIVE` or `EXPIRING`). 可能缺失 |
| meta.type_rankable.perpetual | number | count | Perpetual rows that are rankable. 可能缺失 |
| meta.type_rankable.delivery | number | count | Delivery rows that are rankable. 可能缺失 |
生成于 2026-11-12 10:57 UTC,基于 9 个真实响应。
响应示例
/api/currency/ex-table?coin=BTC&market=futures · 真实响应,采集于 2026-11-13 03:57:28 UTC。 为便于展示,较长的数组和映射已被截短:data 原有 24 项。
- "success"true
- "coin""BTC"
- "market""futures"
- "data"
已验证的样本
除上面的示例外,探针还会使用以下参数调用该端点,并在每次调用时校验结构。
| 参数 | HTTP | 延迟 | 结果 |
|---|---|---|---|
| coin=BTC&market=all | 200 | 139 ms | 通过 |
| coin=BTC&market=perpetual | 200 | 1 ms | 通过 |
| coin=BTC&market=delivery | 200 | 2 ms | 通过 |
| coin=BTC&group=pair&market=futures | 200 | 2 ms | 通过 |
| coin=BTC&market=spot | 200 | 1 ms | 通过 |
| coin=ETH&market=futures | 200 | 105 ms | 通过 |
| coin=SOL&market=futures | 200 | 67 ms | 通过 |
| coin=ARKM&market=futures | 200 | 55 ms | 通过 |
检查于 2026-11-13 03:57:28 UTC
详细信息
- 身份验证
- 无。公开端点。
- 速率限制
- 每个 IP 每分钟 1200 次请求
- 服务端缓存
- 30s
- 边缘微缓存
- 10s
- 更新频率
- 行情 / OI / 资金费率每 60 秒至 5 分钟;订单簿深度每 5 分钟;现货成交量每 10 分钟;爆仓实时
- 时间窗口
- 最新快照(行情 1 小时、OI 3 小时、资金费率 4 小时、多空比 24 小时、深度 30 分钟);24 小时变化对比小时归档
- 数据来源
- 单个币种在各交易所的合约与现货统计,由 CoinBoss 自有采集器轮询约 30 家交易所(如 binance、okx、bybit、bitget、gate、hyperliquid)的公开 API 汇集而成。
- 交易所覆盖范围
- 合约:该币种行情新鲜的全部交易所(最多 24 家);深度来自 15 家交易所,覆盖约 28 个币种;现货(market=spot):14 家现货交易所
- 排序
- volume_usd desc. With `group=pair` and with `market=spot|perpetual|delivery|all`: rankable rows (`market_status` ACTIVE or EXPIRING) first by volume_usd desc (these carry `rank`), then rows without a live quote by oi_usd desc, expired contracts last; ties by expiry, exchange and symbol, so every request made at the same moment gets the same order
- 单位
- price in USD (multiplier contracts normalized to one coin); volume / OI / liquidations / depth in USD; funding as raw fraction and 8 h-normalized fraction; changes in percent
- 计算方法
- per exchange (futures): volume = SUM(volume_usd); funding_8h = rate x 8 / interval_hours of the largest-OI contract; depth_1pct_usd = bid + ask notional within +/- 1% of mid; OI 24 h change by same-contract pairing; volume change vs the ticker archive 23-25 h earlier; liquidations = 24 h SUM(value_usd)
- 时间戳
- 除非字段说明另有注明,均为 Unix 纪元毫秒(UTC)
- 响应格式
- json
- 稳定性
- 稳定
实时状态
近 30 天可用性
411 次检查中 99.76% 通过
错误
所有端点的失败响应格式一致。完整列表见错误页面。 错误与速率限制 →
| 错误码 | 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 状态码。 | 取决于具体信息;按请求失败处理。 |
试一试
/api/currency/ex-table可用string — Base coin symbol (uppercase, e.g. BTC).
string · 默认 futures — `futures` (default) and `spot` return one row per exchange (`futures` one row per contract with `group=pair`). `perpetual`, `delivery` and `all` always return one row per market: perpetual contracts only, dated futures only, or every spot, perpetual and delivery market of the coin in one list. Any other value is treated as `futures`.
string — `pair` returns one row per contract instead of one row per exchange. Each row then carries `status`, `status_reason`, `market_type`, `expiry_ts`, `expiry_date`, `native_symbol`, `quote`, `margin_type`, `price_source`, `price_at` and `rank`, and the response adds a `meta` object. Rows whose `status` is not `active` (no live quote, no feed, expired) carry no price.
https://www.coinboss.com/api/currency/ex-table?coin=BTC&market=futures同分类的其他端点
- 币种热力图数据 /api/coin-heatmap
- 完整币种列表 /api/coins/all
- 币种搜索 /api/coins/search
- 币种页交易所表 /api/currency/ex-table
- 币种资金流 /api/currency/flows
- 导航用币种列表 /api/currency/list
- 单个币种的各交易所市场 /api/currency/markets
- 币种详情概览 /api/currency/overview
- 币种各周期价格表现 /api/currency/performance
- 单个币种的现货主动买卖净流入 /api/currency/spot-netflow
- 杠杆借贷利率矩阵 /api/margin-fee/matrix
- 杠杆借贷利率 /api/margin/rates
- 涨跌榜(含成交量下限) /api/market/gainers-losers
- 市值头部币种异动快照 /api/market/top-movers
- 月度 / 季度 / 年度回报率矩阵 /api/p3/btc-returns
- 日度回报率矩阵 /api/p3/btc-returns-daily
- 周度回报率矩阵 /api/p3/btc-returns-weekly
- 涨跌榜(合约或现货) /api/p3/gainers-losers
- 小时 K 线 /api/p3/klines
- 波动率总览 /api/p3/volatility
- 单个币种的波动率历史 /api/p3/volatility/series
- 现货币种行情列表 /api/spot/coins
- 币种成交量页数据 /api/volume/coin