幣種頁交易所表格
幣種頁交易所表格(各交易所的價格、成交量、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 | — | 交易對的顯示形式,格式為基礎幣種/計價貨幣(`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 | — | Table-level information: grouping, freshness and volume windows, sort rule and row counts. Present with `group=pair` and with `market=spot`, `perpetual`, `delivery` or `all`. 可能不存在 |
| 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 | — | Number of rows per `status`. 可能不存在 |
| 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 | — | Number of rows per `market_status`. 可能不存在 |
| 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 | — | Number of rows per market type. 可能不存在 |
| 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 | — | Number of rankable rows (`ACTIVE` or `EXPIRING`) per market type. 可能不存在 |
| 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 s 至 5 min;訂單簿深度每 5 min;現貨成交量每 10 min;爆倉為即時
- 時間視窗
- 最新快照(行情 1 h、OI 3 h、資金費率 4 h、多空比 24 h、深度 30 min);24 h 變化以小時歸檔為基準
- 資料來源
- 單一幣種在各交易所的合約與現貨統計,由 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 epoch 毫秒(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