GET可用
幣種一次取齊(OI、資金費率、爆倉、成交量、多空比)
自研資料層:幣種一次取齊(OI/資金費率/爆倉/成交量/多空比,各區塊故障隔離)
GET
/api/sd/coin請求
查詢參數
| 名稱 | 型別 | 必填 | 預設值 | 可用值 | 說明 |
|---|---|---|---|---|---|
| coin | string | 必填 | — | — | 幣種代號;缺少時回傳 400。別名:`base`。 範例: BTC |
請求範例
curl -s "https://www.coinboss.com/api/sd/coin?coin=BTC"回應欄位
欄位表由真實回應產生,因此列出的正是端點實際回傳的內容。路徑中的 a[] 代表陣列元素,{*} 代表以動態名稱(例如幣種或交易所)為鍵的物件。
| 欄位 | 型別 | 單位 | 說明 |
|---|---|---|---|
| success | boolean | — | 請求成功時為 true。失敗時回應內容為 `{ success: false, code, error, request_id }`。 |
| coin | string | — | 幣種代號,大寫(例如 BTC)。 |
| now | number | ms | 建立回應時的伺服器時間。 |
| oi | object | — | 與 `/api/sd/oi` 針對此幣種回傳的物件相同。 |
| oi.coin | string | — | 幣種代號,大寫(例如 BTC)。 |
| oi.now | number | ms | 建立回應時的伺服器時間。 |
| oi.total_usd | number | USD | 所有納入的交易所與合約的持倉量,依各交易所回報的口徑(USD 名義價值)。 |
| oi.n_exchanges | number | — | 總額所含的交易所數量。 |
| oi.n_contracts | number | — | 總額所含的合約數量。 |
| oi.asof | number | ms | 所納入資料列中最新的更新時間。 |
| oi.total_usd_single_adjusted | number | USD | 即 `total_usd`,但回報雙邊數字的交易所(`double_sided.exchanges`)其數值已減半,使每家交易所都只計一邊。 |
| oi.double_sided | object | — | 已知將多頭 + 空頭持倉量合併為單一數字公布的交易所。 |
| oi.double_sided.exchanges | array | — | 交易所。 |
| oi.double_sided.exchanges[] | string | — | 交易所。 |
| oi.double_sided.oi_usd | number | USD | 這些交易所減半前所回報的持倉量。 |
| oi.by_kind | object | — | 依正向/反向合約拆分。 |
| oi.by_kind.linear_usd | number | USD | 正向合約(以穩定幣或 USD 作為保證金並結算)的持倉量。 |
| oi.by_kind.inverse_usd | number | USD | 反向(幣本位)合約的持倉量,依合約價格換算為 USD。 |
| oi.by_margin | object | — | 依保證金幣種拆分。 |
| oi.by_margin.other | number | USD | 其他保證金幣種(例如 CME 這類以 USD 結算的交易所)。 |
| oi.by_margin.usdt | number | USD | USDT 本位合約。 |
| oi.by_margin.usdc | number | USD | USDC 本位合約。 可能不存在 |
| oi.by_margin.coin | number | USD | 幣本位合約。 可能不存在 |
| oi.by_contract_type | object | — | 依永續/交割合約拆分。 |
| oi.by_contract_type.perpetual_usd | number | USD | 永續合約。 |
| oi.by_contract_type.delivery_usd | number | USD | 定期期貨(交割合約)。 |
| oi.change | object | — | 持倉量在 1h / 4h / 24h 內的變化,兩端皆以同一組合約計算。 動態鍵: h1,h4,h24 |
| oi.change.{*} | object | — | 所述期間內的變化。 |
| oi.change.{*}.pct | number | % | `prev` 與 `cur` 之間的變化百分比。 |
| oi.change.{*}.cur | number | USD | 配對合約的當前加總。 |
| oi.change.{*}.prev | number | USD | 同一組合約在 `prev_ts` 時的加總。 |
| oi.change.{*}.n_matched | number | — | 兩端皆存在的合約(或交易所)。 |
| oi.change.{*}.n_total | number | — | 目前存在的合約(或交易所)。 |
| oi.change.{*}.matched_share_pct | number | % | 配對集合佔當前持倉量的比例。 可能不存在 |
| oi.change.{*}.prev_ts | number | ms | 基準快照的時間。 |
| oi.change.{*}.span_min | number | min | 基準與目前之間的實際時間差。 |
| oi.change.{*}.basis | string | — | 基準取自哪一個快照序列。 |
| oi.change.{*}.frozen_excluded | object | — | 因數值在兩次快照之間沒有變動(來源未更新)而未計入變化的資料列。 可能不存在 |
| oi.change.{*}.frozen_excluded.n_baseline | number | — | 基準快照中的項目。 可能不存在 |
| oi.change.{*}.frozen_excluded.n_current | number | — | 當前快照中的項目。 可能不存在 |
| oi.change.{*}.frozen_excluded.cur_usd | number | USD | 當前值。 可能不存在 |
| oi.change.{*}.frozen_excluded.prev_usd | number | USD | 基準值。 可能不存在 |
| oi.by_exchange | array | — | 各交易所明細。 |
| oi.by_exchange[] | object | — | 各交易所明細。 |
| oi.by_exchange[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| oi.by_exchange[].oi_usd | number | USD | 持倉量,以 USD 名義價值計。 |
| oi.by_exchange[].share_pct | number | % | 佔總額的比例。 |
| oi.by_exchange[].n_contracts | number | — | 合約數量。 |
| oi.by_exchange[].linear_usd | number | USD | 正向合約。 |
| oi.by_exchange[].inverse_usd | number | USD | 反向(幣本位)合約。 |
| oi.by_exchange[].perpetual_usd | number | USD | 永續合約。 |
| oi.by_exchange[].delivery_usd | number | USD | 交割合約。 |
| oi.by_exchange[].oi_side | string | — | 交易所以單一數字回報雙邊時為 `double`,回報單邊時為 `single`,交易所文件未說明時為 `unstated`。 |
| oi.by_exchange[].oi_usd_single_adjusted | number|null | USD | 單邊等值;單雙邊口徑未說明時為 null。 |
| oi.by_exchange[].updated_at | number | ms | 此資料列最近一次更新的時間。 |
| oi.by_exchange[].age_s | number | s | 此資料列距上次更新的秒數。 |
| oi.by_exchange[].is_stale | boolean | — | 資料列超出新鮮視窗時為 true;過期的資料列不計入總額。 |
| oi.contracts | array | — | 各合約的資料列。 |
| oi.contracts[] | object | — | 各合約的資料列。 |
| oi.contracts[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| oi.contracts[].symbol | string | — | 經 CoinBoss 正規化的交易品種代號(例如 BTCUSDT)。 |
| oi.contracts[].native_symbol | string|null | — | 與交易所寫法完全一致的合約代號。 |
| oi.contracts[].oi_usd | number | USD | 持倉量,以 USD 名義價值計。 |
| oi.contracts[].oi_side | string | — | `double`、`single` 或 `unstated`:交易所是否以單一數字回報持倉量的雙邊。 |
| oi.contracts[].oi_usd_single | number|null | USD | `oi_usd` 的單邊等值;單雙邊口徑未說明時為 null。 |
| oi.contracts[].margin | string | — | 保證金幣種類別:`usdt`、`usdc`、`coin` 或 `other`。 |
| oi.contracts[].kind | string | — | `linear` 或 `inverse`。 |
| oi.contracts[].contract_type | string | — | `perpetual` 或 `delivery`。 |
| oi.contracts[].expiry_ts | number|null | ms | 交割合約的到期日;永續合約或未公布時為 null。 |
| oi.contracts[].margin_basis | string | — | 保證金類別的判定依據(合約規格或交易所預設值)。 |
| oi.contracts[].updated_at | number | ms | 此資料列最近一次更新的時間。 |
| oi.contracts[].age_s | number | s | 此資料列距上次更新的秒數。 |
| oi.contracts[].is_stale | boolean | — | 資料列超出新鮮視窗時為 true;過期的資料列不計入總額。 |
| oi.contracts[].collector | string | — | 產生此資料列的內部採集器。 |
| oi.contracts[].included_since | number|null | ms | 此合約納入總額的時間;基礎集合為 null。 |
| oi.coverage | object | — | 上述數字包含與不包含哪些內容。與其他來源比較總額之前,請先比對這一項。 |
| oi.coverage.included_exchanges | array | — | 資料已計入總額的交易所。 |
| oi.coverage.included_exchanges[] | string | — | 已計入總額的交易所。 |
| oi.coverage.pending | array | — | 已採集但尚未計入總額的合約(例如仍在累積自身 25 小時歷史的期間)。會連同當前數值一併列出,讓缺口一目了然。 |
| oi.coverage.pending[] | object | — | 已採集但尚未計入的項目。 |
| oi.coverage.pending[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| oi.coverage.pending[].symbol | string | — | 經 CoinBoss 正規化的交易品種代號(例如 BTCUSDT)。 |
| oi.coverage.pending[].native_symbol | string | — | 與交易所寫法完全一致的合約代號。 |
| oi.coverage.pending[].margin | string | — | 保證金幣種類別。 |
| oi.coverage.pending[].contract_type | string | — | `perpetual` 或 `delivery`。 |
| oi.coverage.pending[].oi_usd | number | USD | 持倉量,以 USD 名義價值計。 |
| oi.coverage.pending[].age_s | number | s | 此資料列距上次更新的秒數。 |
| oi.coverage.pending[].reason | string | — | 原因代碼。 |
| oi.coverage.pending[].detail | string|null | — | 詳細說明。 |
| oi.coverage.pending_usd | number|null | USD | 待納入合約的加總,不屬於 `total_usd`。 |
| oi.coverage.stale_excluded | array | — | 因最後更新時間超出可用視窗而未計入的資料列。 在產生此表所用的樣本中為空 |
| oi.coverage.unavailable | array | — | 無法納入的交易所/合約組合,各附原因。絕不會以 0 計入。 |
| oi.coverage.unavailable[] | object | — | 沒有資料的項目及其原因。絕不會回報為 0。 |
| oi.coverage.unavailable[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| oi.coverage.unavailable[].symbol | string | — | 經 CoinBoss 正規化的交易品種代號(例如 BTCUSDT)。 |
| oi.coverage.unavailable[].native_symbol | string | — | 與交易所寫法完全一致的合約代號。 |
| oi.coverage.unavailable[].margin | string | — | 保證金幣種類別。 |
| oi.coverage.unavailable[].contract_type | string | — | `perpetual` 或 `delivery`。 |
| oi.coverage.unavailable[].reason | string | — | 原因代碼。 |
| oi.coverage.unavailable[].detail | string | — | 詳細說明。 |
| oi.method | object | — | 以純文字說明此回應所用的公式。 |
| oi.method.total | string | — | 總數。 |
| oi.method.usd | string | USD | 數值。 |
| oi.method.change_h1_h4 | string | — | 1h 與 4h 持倉量變化定義的純文字說明:每個合約與其自身最接近時間視窗起點的快照比較。 |
| oi.method.change_h24 | string | — | 24h 持倉量變化定義的純文字說明:同一交易所與最接近 24 小時前的小時快照配對,並排除凍結的基準。 |
| oi.method.oi_side | string | — | `double`、`single` 或 `unstated`:交易所是否以單一數字回報持倉量的雙邊。 |
| funding | object | — | 與 `/api/sd/funding` 針對此幣種回傳的物件相同。 |
| funding.coin | string | — | 幣種代號,大寫(例如 BTC)。 |
| funding.now | number | ms | 建立回應時的伺服器時間。 |
| funding.unit | string | — | 此回應中所有費率欄位的單位:`fraction`(0.0001 = 0.01 %)。 |
| funding.avg_8h | number | fraction per 8h | 8h 歸一化費率的簡單平均,每家交易所取一個合約。 |
| funding.oi_weighted_8h | number | fraction per 8h | 8h 歸一化費率的持倉量加權平均。 |
| funding.apr_pct | number | % per year | 簡單年化:8h 費率 × 3 × 365 × 100。 |
| funding.apr_basis | string | — | 主要顯示的 `apr_pct` 所依據的彙總值。 |
| funding.n_exchanges | number | — | 納入計算的交易所數量。 |
| funding.n_normalized | number | — | 資金費率結算週期已知、可歸一為 8h 的交易所。 |
| funding.n_unknown_interval | number | — | 因資金費率結算週期不明而未計入彙總的交易所。 |
| funding.settled_cum_7d | object | — | 過去 7 天實際結算的資金費率加總,再對有結算歷史的交易所取平均。 |
| funding.settled_cum_7d.avg | number | fraction | 跨交易所的簡單平均。 |
| funding.settled_cum_7d.oi_weighted | number | fraction | 持倉量加權平均。 |
| funding.settled_cum_7d.n | number | — | 時間視窗完整的交易所。 |
| funding.settled_cum_30d | object | — | 同上,但為 30 天。 |
| funding.settled_cum_30d.avg | number | fraction | 跨交易所的簡單平均。 |
| funding.settled_cum_30d.oi_weighted | number | fraction | 持倉量加權平均。 |
| funding.settled_cum_30d.n | number | — | 時間視窗完整的交易所。 |
| funding.by_exchange | array | — | 每家交易所一列:該交易所此幣種的主力合約(持倉量最大者)。 |
| funding.by_exchange[] | object | — | 各交易所明細。 |
| funding.by_exchange[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| funding.by_exchange[].symbol | string | — | 經 CoinBoss 正規化的交易品種代號(例如 BTCUSDT)。 |
| funding.by_exchange[].margin | string | — | 保證金幣種類別。 |
| funding.by_exchange[].kind | string | — | 種類。 |
| funding.by_exchange[].primary | boolean | — | 在彙總中代表其交易所的合約(持倉量最大者)為 true;在此清單中一律為 true。 |
| funding.by_exchange[].rate | number | — | 費率。 |
| funding.by_exchange[].interval_h | number | h | 結算週期。 |
| funding.by_exchange[].rate_8h | number | — | 歸一為 8 小時週期的費率。 |
| funding.by_exchange[].apr_pct | number | % per year | 年化百分比。 |
| funding.by_exchange[].next_funding_time | number|null | ms | 時間戳記。 |
| funding.by_exchange[].next_derived | boolean | — | 交易所未公布 `next_funding_time`、改以下一個 UTC 整點推定時為 true(僅限每小時結算的交易場所)。 |
| funding.by_exchange[].predicted_rate | null | — | 下一期的預估費率;未公布時為 null。 |
| funding.by_exchange[].oi_usd | number|null | USD | 持倉量,以 USD 名義價值計。 |
| funding.by_exchange[].updated_at | number | ms | 此資料列最近一次更新的時間。 |
| funding.by_exchange[].age_s | number | s | 此資料列距上次更新的秒數。 |
| funding.by_exchange[].is_stale | boolean | — | 資料列超出新鮮視窗時為 true;過期的資料列不計入總額。 |
| funding.by_exchange[].settled | object|null | — | 實際結算紀錄;沒有公開歷史時為 null。 |
| funding.by_exchange[].settled.last_rate | number | fraction | 最近一次結算(`last_time`)實際收取的資金費率,取自交易所的資金費率歷史(0.0001 = 0.01 %)。 可能不存在 |
| funding.by_exchange[].settled.last_time | number | ms | 時間戳記。 可能不存在 |
| funding.by_exchange[].settled.interval_h | number | h | 結算週期。 可能不存在 |
| funding.by_exchange[].settled.cum_7d | number | fraction | 此合約過去 7 天已結算資金費率的總和(0.0015 = 0.15 %);沒有任何結算紀錄時為 null。 可能不存在 |
| funding.by_exchange[].settled.n_7d | number | count | 過去 7 天採集到的結算紀錄筆數。 可能不存在 |
| funding.by_exchange[].settled.n_7d_expected | number | count | 完整 7 天時間視窗應有的結算次數:168 ÷ 結算週期(小時);週期不明時為 null。 可能不存在 |
| funding.by_exchange[].settled.cum_7d_complete | boolean | — | 歷史資料涵蓋 7 天時間視窗的起點,且至少包含 90 % 的預期結算次數時為 true。 可能不存在 |
| funding.by_exchange[].settled.cum_30d | number | fraction | 此合約過去 30 天已結算資金費率的總和(0.006 = 0.6 %)。 可能不存在 |
| funding.by_exchange[].settled.n_30d | number | count | 過去 30 天採集到的結算紀錄筆數。 可能不存在 |
| funding.by_exchange[].settled.n_30d_expected | number | count | 完整 30 天時間視窗應有的結算次數:720 ÷ 結算週期(小時);週期不明時為 null。 可能不存在 |
| funding.by_exchange[].settled.cum_30d_complete | boolean | — | 歷史資料涵蓋 30 天時間視窗的起點,且至少包含 90 % 的預期結算次數時為 true。 可能不存在 |
| funding.by_exchange[].settled.history_from | number | ms | 所保存的最早紀錄。 可能不存在 |
| funding.other_contracts | array | — | 同一幣種的其他合約(USDC 本位、幣本位……)。不計入彙總。 |
| funding.other_contracts[] | object | — | 某交易所另一個有資金費率的合約(幣本位、USDC 本位…),並非其主力合約,不計入彙總。 |
| funding.other_contracts[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| funding.other_contracts[].symbol | string | — | 經 CoinBoss 正規化的交易品種代號(例如 BTCUSDT)。 |
| funding.other_contracts[].margin | string | — | 保證金幣種類別。 |
| funding.other_contracts[].kind | string | — | 種類。 |
| funding.other_contracts[].primary | boolean | — | 此清單中每一列皆為 false:該合約不是在彙總中代表其交易所的合約。 |
| funding.other_contracts[].rate | number | — | 費率。 |
| funding.other_contracts[].interval_h | number|null | h | 結算週期。 |
| funding.other_contracts[].rate_8h | number|null | — | 歸一為 8 小時週期的費率。 |
| funding.other_contracts[].apr_pct | number|null | % per year | 年化百分比。 |
| funding.other_contracts[].next_funding_time | number|null | ms | 時間戳記。 |
| funding.other_contracts[].next_derived | boolean | — | 交易所未公布 `next_funding_time`、改以下一個 UTC 整點推定時為 true(僅限每小時結算的交易場所)。 |
| funding.other_contracts[].predicted_rate | number|null | — | 下一期的預估費率;未公布時為 null。 |
| funding.other_contracts[].oi_usd | number|null | USD | 持倉量,以 USD 名義價值計。 |
| funding.other_contracts[].updated_at | number | ms | 此資料列最近一次更新的時間。 |
| funding.other_contracts[].age_s | number | s | 此資料列距上次更新的秒數。 |
| funding.other_contracts[].is_stale | boolean | — | 資料列超出新鮮視窗時為 true;過期的資料列不計入總額。 |
| funding.other_contracts[].settled | object|null | — | 實際結算紀錄;沒有公開歷史時為 null。 |
| funding.other_contracts[].settled.last_rate | number | fraction | 最近一次結算(`last_time`)實際收取的資金費率,取自交易所的資金費率歷史(0.0001 = 0.01 %)。 可能不存在 |
| funding.other_contracts[].settled.last_time | number | ms | 時間戳記。 可能不存在 |
| funding.other_contracts[].settled.interval_h | number | h | 結算週期。 可能不存在 |
| funding.other_contracts[].settled.cum_7d | number | fraction | 此合約過去 7 天已結算資金費率的總和(0.0015 = 0.15 %);沒有任何結算紀錄時為 null。 可能不存在 |
| funding.other_contracts[].settled.n_7d | number | count | 過去 7 天採集到的結算紀錄筆數。 可能不存在 |
| funding.other_contracts[].settled.n_7d_expected | number | count | 完整 7 天時間視窗應有的結算次數:168 ÷ 結算週期(小時);週期不明時為 null。 可能不存在 |
| funding.other_contracts[].settled.cum_7d_complete | boolean | — | 歷史資料涵蓋 7 天時間視窗的起點,且至少包含 90 % 的預期結算次數時為 true。 可能不存在 |
| funding.other_contracts[].settled.cum_30d | number | fraction | 此合約過去 30 天已結算資金費率的總和(0.006 = 0.6 %)。 可能不存在 |
| funding.other_contracts[].settled.n_30d | number | count | 過去 30 天採集到的結算紀錄筆數。 可能不存在 |
| funding.other_contracts[].settled.n_30d_expected | number | count | 完整 30 天時間視窗應有的結算次數:720 ÷ 結算週期(小時);週期不明時為 null。 可能不存在 |
| funding.other_contracts[].settled.cum_30d_complete | boolean | — | 歷史資料涵蓋 30 天時間視窗的起點,且至少包含 90 % 的預期結算次數時為 true。 可能不存在 |
| funding.other_contracts[].settled.history_from | number | ms | 所保存的最早紀錄。 可能不存在 |
| funding.coverage | object | — | 上述數字包含與不包含哪些內容。與其他來源比較總額之前,請先比對這一項。 |
| funding.coverage.settle_history_exchanges | array | — | 有採集實際結算紀錄的交易所。 |
| funding.coverage.settle_history_exchanges[] | string | — | 已針對此幣種採集實際資金費率結算紀錄的交易所 ID。 |
| funding.coverage.no_settle_history | array | — | 沒有公開結算歷史來源的交易所;其 `settled` 為 null。 |
| funding.coverage.no_settle_history[] | string | — | 主力合約沒有採集到結算歷史的交易所 ID,因此其 `settled` 區塊為 null。 |
| funding.coverage.unknown_interval | array | — | 無法判定資金費率結算週期的資料列。 在產生此表所用的樣本中為空 |
| funding.coverage.no_liveness_excluded | array | — | 因合約沒有任何交易跡象(近期無行情、持倉量或報價)而被排除的資料列。 在產生此表所用的樣本中為空 |
| funding.method | object | — | 以純文字說明此回應所用的公式。 |
| funding.method.rate | string | — | 費率。 |
| funding.method.rate_8h | string | — | 歸一為 8 小時週期的費率。 |
| funding.method.apr_pct | string | % per year | 年化百分比。 |
| funding.method.aggregate | string | — | 跨交易所彙總值。 |
| funding.method.settled | string | — | 實際結算紀錄;沒有公開歷史時為 null。 |
| funding.method.predicted_rate | string | — | 下一期的預估費率;未公布時為 null。 |
| funding.method.liveness | string | — | 剔除失效合約之規則的純文字說明:資金費率資料列須有 1h 內的行情、3h 內的持倉量或 3h 內的自有報價,才會計入。 |
| liquidations | object | — | 與 `/api/sd/liquidations` 針對此幣種回傳的物件相同。 |
| liquidations.coin | string | — | 幣種代號,大寫(例如 BTC)。 |
| liquidations.now | number | ms | 建立回應時的伺服器時間。 |
| liquidations.windows | object | — | 各時間視窗的總額(鍵如 `1h`、`4h`、`12h`、`24h`)。 動態鍵: 1h,4h,12h,24h |
| liquidations.windows.{*} | object | — | 各時間視窗的數值。 |
| liquidations.windows.{*}.long_usd | number | USD | 多單爆倉金額;該時間視窗沒有任何來源覆蓋時為 null。 |
| liquidations.windows.{*}.short_usd | number | USD | 空單爆倉金額;該時間視窗沒有任何來源覆蓋時為 null。 |
| liquidations.windows.{*}.total_usd | number | USD | 多 + 空。 |
| liquidations.windows.{*}.count | number | — | 爆倉單筆數。 |
| liquidations.windows.{*}.long_pct | number | % | 多單佔總額的比例。 |
| liquidations.windows.{*}.max_order | object | — | 該時間視窗內最大的單筆爆倉。 |
| liquidations.windows.{*}.max_order.exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| liquidations.windows.{*}.max_order.symbol | string | — | 經 CoinBoss 正規化的交易品種代號(例如 BTCUSDT)。 |
| liquidations.windows.{*}.max_order.side | string | — | `long` / `short` 或 `buy` / `sell`。 |
| liquidations.windows.{*}.max_order.price | number | — | 以計價貨幣表示的最新價格(除非另有註明,否則為 USD 或 USDT)。 |
| liquidations.windows.{*}.max_order.qty | number | — | 數量。 |
| liquidations.windows.{*}.max_order.contract_multiplier | number | x | 最大一筆爆倉單的合約每個報價單位所代表的幣數(1000PEPE 這類合約為 1000);`price` 與 `qty` 已換算為單一幣的數值。 |
| liquidations.windows.{*}.max_order.value_usd | number | USD | 數值。 |
| liquidations.windows.{*}.max_order.timestamp | number | ms | 時間戳記。 |
| liquidations.by_exchange | object | — | 各時間視窗的交易所拆分。 動態鍵: 1h,4h,12h,24h |
| liquidations.by_exchange.{*} | array | — | 各交易所明細。 |
| liquidations.by_exchange.{*}[] | object | — | 各交易所明細。 |
| liquidations.by_exchange.{*}[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| liquidations.by_exchange.{*}[].long_usd | number | USD | 多方。 |
| liquidations.by_exchange.{*}[].short_usd | number | USD | 空方。 |
| liquidations.by_exchange.{*}[].total_usd | number | USD | 總數。 |
| liquidations.by_exchange.{*}[].count | number | — | 項目數。 |
| liquidations.by_exchange.{*}[].share_pct | number | % | 佔總額的比例。 |
| liquidations.last_event_at | number | ms | 此幣種最近一次爆倉的時間。 |
| liquidations.last_event_age_s | number | s | 距該事件的秒數。 |
| liquidations.sources | array | — | 每個爆倉資料來源的狀態:採集方式,以及最近一次送達資料的時間。 |
| liquidations.sources[] | object | — | 資料來源。 |
| liquidations.sources[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| liquidations.sources[].via | string | — | 採集方式(`ws`、`rest`……)。 |
| liquidations.sources[].status | string | — | 依資料來源自身的事件時間與心跳判定的狀態。 |
| liquidations.sources[].feed_last_event_age_s | number|null | s | 距該事件的秒數。 |
| liquidations.sources[].ws_heartbeat_age_s | number|null | s | 距該事件的秒數。 |
| liquidations.sources[].judged_by | string | — | 狀態是依哪個時間戳記判定的。 |
| liquidations.sources[].coin_last_event_age_s | number|null | s | 距該事件的秒數。 |
| liquidations.sources[].min_event_usd | number | USD | 該資料來源公布的最小訂單金額;低於此金額的爆倉在這家交易所無法得知。 |
| liquidations.sources[].note | string|null | — | 備註。 |
| liquidations.sources[].node_heartbeat_age_s | number | s | 距該事件的秒數。 可能不存在 |
| liquidations.sources[].pipeline_last_event_age_s | number | s | 距該事件的秒數。 可能不存在 |
| liquidations.coverage | object | — | 上述數字包含與不包含哪些內容。與其他來源比較總額之前,請先比對這一項。 |
| liquidations.coverage.collected_exchanges | array | — | 有公開爆倉資料來源且由 CoinBoss 採集的交易所。 |
| liquidations.coverage.collected_exchanges[] | string | — | 已採集的交易所。 |
| liquidations.coverage.unavailable | array | — | 無法納入的交易所/合約組合,各附原因。絕不會以 0 計入。 |
| liquidations.coverage.unavailable[] | object | — | 沒有資料的項目及其原因。絕不會回報為 0。 |
| liquidations.coverage.unavailable[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| liquidations.coverage.unavailable[].reason | string | — | 原因代碼。 |
| liquidations.method | object | — | 以純文字說明此回應所用的公式。 |
| liquidations.method.event | string | — | 何謂一筆爆倉事件的純文字說明:由交易所串流推送、或由其公開 REST API 回傳的一筆爆倉單。 |
| liquidations.method.side | string | — | `long` / `short` 或 `buy` / `sell`。 |
| liquidations.method.value_usd | string | USD | 數值。 |
| liquidations.method.dedupe | string | — | 去除重複規則的純文字說明:事件以交易所、合約代號、方向、價格、金額與時間戳記判定唯一性,交易所有提供時再加上交易所訂單 ID。 |
| liquidations.method.null_rule | string | — | 純文字說明:時間視窗內沒有採集到任何事件時回傳 null 而非 0,並說明沒有公開資料來源的交易所列於何處。 |
| liquidations.method.binance_note | string | — | 純文字注意事項:Binance 每個合約代號每秒最多推送一筆爆倉,因此 Binance 的總額為下限。 |
| liquidations.method.min_event_usd | string | USD | 該資料來源公布的最小訂單。 |
| volume | object | — | 與 `/api/sd/volume` 針對此幣種回傳的物件相同。 |
| volume.coin | string | — | 幣種代號,大寫(例如 BTC)。 |
| volume.now | number | ms | 建立回應時的伺服器時間。 |
| volume.futures | object | — | 合約市場區塊或數值。 |
| volume.futures.total_usd | number | USD | 跨交易所的 24h 合約成交量(USD 名義價值)。 |
| volume.futures.n_exchanges | number | — | 納入計算的交易所數量。 |
| volume.futures.by_exchange | array | — | 各交易所明細。 |
| volume.futures.by_exchange[] | object | — | 各交易所明細。 |
| volume.futures.by_exchange[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| volume.futures.by_exchange[].vol_usd | number | USD | 成交量,以 USD 名義價值計。 |
| volume.futures.by_exchange[].legacy_usd | number | USD | 成交量中來自 USDT 永續合約行情集合的部分。 |
| volume.futures.by_exchange[].sd_usd | number | USD | 來自已納入的其他合約(USDC 本位、幣本位、交割合約)的部分。 |
| volume.futures.by_exchange[].share_pct | number | % | 佔總額的比例。 |
| volume.futures.change_24h | object | — | 24h 漲跌幅。 |
| volume.futures.change_24h.pct | number | % | 百分比。 |
| volume.futures.change_24h.cur | number | — | 當前值。 |
| volume.futures.change_24h.prev | number | — | 前值(基準)。 |
| volume.futures.change_24h.n_matched | number | — | 比較區間兩端皆存在的項目。 |
| volume.futures.change_24h.n_total | number | — | 目前存在的項目。 |
| volume.futures.change_24h.prev_ts | number | ms | 基準快照的時間。 |
| volume.futures.change_24h.basis | string | — | 合約價格減現貨價格,或基差區塊。 |
| volume.futures.selfdata_contracts | object | — | 其他合約:哪些已納入、哪些仍待納入。 |
| volume.futures.selfdata_contracts.included_usd | null | USD | 已計入合約總額的額外採集合約(幣本位、USDC 本位、交割)的 24h 成交量;尚未計入任何合約時為 null。 |
| volume.futures.selfdata_contracts.n_included | number | count | 已計入合約總額的額外採集合約數量(即擁有約 24 小時前自身快照的合約)。 |
| volume.futures.selfdata_contracts.pending_usd | number|null | USD | 待納入項目的加總,不計入總額。 |
| volume.futures.selfdata_contracts.n_pending | number | count | 因缺少自身 24 小時前基準而尚未計入的額外採集合約數量;其中最大者列於 `pending`。 |
| volume.futures.selfdata_contracts.pending | array | — | 已採集但尚未計入的項目。 |
| volume.futures.selfdata_contracts.pending[] | object | — | 已採集但尚未計入的項目。 |
| volume.futures.selfdata_contracts.pending[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| volume.futures.selfdata_contracts.pending[].symbol | string | — | 經 CoinBoss 正規化的交易品種代號(例如 BTCUSDT)。 |
| volume.futures.selfdata_contracts.pending[].margin | string | — | 保證金幣種類別。 |
| volume.futures.selfdata_contracts.pending[].contract_type | string | — | `perpetual` 或 `delivery`。 |
| volume.futures.selfdata_contracts.pending[].vol_usd | number | USD | 成交量,以 USD 名義價值計。 |
| volume.futures.selfdata_contracts.pending[].reason | string | — | 原因代碼。 |
| volume.spot | object | — | 現貨市場區塊或數值。 |
| volume.spot.total_usd | number | USD | 跨交易所的 24h 現貨成交量。 |
| volume.spot.n_exchanges | number | — | 納入計算的交易所數量。 |
| volume.spot.asof | number | ms | 所用最新資料的時間。 |
| volume.spot.by_exchange | array | — | 各交易所明細。 |
| volume.spot.by_exchange[] | object | — | 各交易所明細。 |
| volume.spot.by_exchange[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| volume.spot.by_exchange[].vol_usd | number | USD | 成交量,以 USD 名義價值計。 |
| volume.spot.by_exchange[].quote | string | — | 此交易所納入的計價貨幣。 |
| volume.spot.by_exchange[].ts | number | ms | 時間戳記。 |
| volume.spot.by_exchange[].price | number | — | 以計價貨幣表示的最新價格(除非另有註明,否則為 USD 或 USDT)。 |
| volume.spot.by_exchange[].age_s | number | s | 此資料列距上次更新的秒數。 |
| volume.spot.by_exchange[].share_pct | number | % | 佔總額的比例。 |
| volume.spot.change_24h | object | — | 24h 漲跌幅。 |
| volume.spot.change_24h.pct | number | % | 百分比。 |
| volume.spot.change_24h.cur | number | — | 當前值。 |
| volume.spot.change_24h.prev | number | — | 前值(基準)。 |
| volume.spot.change_24h.n_matched | number | — | 比較區間兩端皆存在的項目。 |
| volume.spot.change_24h.n_total | number | — | 目前存在的項目。 |
| volume.spot.change_24h.prev_ts | number | ms | 基準快照的時間。 |
| volume.spot.change_24h.basis | string | — | 合約價格減現貨價格,或基差區塊。 |
| volume.ratios | object | — | 成交量比值:`futures_to_spot`(24h 合約成交量 ÷ 24h 現貨成交量)與 `oi_to_futures_volume`;任一輸入值缺漏時,對應的比值為 null。 |
| volume.ratios.futures_to_spot | number | — | 合約成交量除以現貨成交量。 |
| volume.ratios.oi_to_futures_volume | number | — | 持倉量除以 24h 合約成交量。 |
| volume.method | object | — | 以純文字說明此回應所用的公式。 |
| volume.method.futures | string | — | 合約市場區塊或數值。 |
| volume.method.spot | string | — | 現貨市場區塊或數值。 |
| volume.method.change | string | — | 所述期間內的變化。 |
| volume.method.oi_to_futures_volume | string | — | `ratios.oi_to_futures_volume` 定義的純文字說明:以 USD 計的總持倉量 ÷ 以 USD 計的 24h 合約成交量。 |
| ls | object | — | 與 `/api/sd/ls` 針對此幣種回傳的物件相同。 |
| ls.coin | string | — | 幣種代號,大寫(例如 BTC)。 |
| ls.now | number | ms | 建立回應時的伺服器時間。 |
| ls.account | object | — | 所有帳戶中淨多頭與淨空頭的佔比。 |
| ls.account.long_pct | number | % | 多頭佔比。 |
| ls.account.short_pct | number | % | 空頭佔比。 |
| ls.account.ratio | number | — | 比值。 |
| ls.account.n_exchanges | number | — | 納入計算的交易所數量。 |
| ls.account.by_exchange | array | — | 各交易所明細。 |
| ls.account.by_exchange[] | object | — | 各交易所明細。 |
| ls.account.by_exchange[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| ls.account.by_exchange[].symbol | string | — | 經 CoinBoss 正規化的交易品種代號(例如 BTCUSDT)。 |
| ls.account.by_exchange[].long_pct | number | % | 多頭佔比。 |
| ls.account.by_exchange[].short_pct | number | % | 空頭佔比。 |
| ls.account.by_exchange[].ratio | number | — | 比值。 |
| ls.account.by_exchange[].updated_at | number | ms | 此資料列最近一次更新的時間。 |
| ls.account.by_exchange[].age_s | number | s | 此資料列距上次更新的秒數。 |
| ls.account.by_exchange[].is_stale | boolean | — | 資料列超出新鮮視窗時為 true;過期的資料列不計入總額。 |
| ls.account.by_exchange[].source | string | — | 數值的來源。 |
| ls.account.by_exchange[].period | string | — | 期間。 |
| ls.top_account | object | — | 同上,但僅限交易所定義的大戶。 |
| ls.top_account.long_pct | number|null | % | 多頭佔比。 |
| ls.top_account.short_pct | number|null | % | 空頭佔比。 |
| ls.top_account.ratio | number|null | — | 比值。 |
| ls.top_account.n_exchanges | number | — | 納入計算的交易所數量。 |
| ls.top_account.by_exchange | array | — | 各交易所明細。 |
| ls.top_account.by_exchange[] | object | — | 各交易所明細。 |
| ls.top_account.by_exchange[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| ls.top_account.by_exchange[].symbol | string | — | 經 CoinBoss 正規化的交易品種代號(例如 BTCUSDT)。 |
| ls.top_account.by_exchange[].long_pct | number | % | 多頭佔比。 |
| ls.top_account.by_exchange[].short_pct | number | % | 空頭佔比。 |
| ls.top_account.by_exchange[].ratio | number | — | 比值。 |
| ls.top_account.by_exchange[].updated_at | number | ms | 此資料列最近一次更新的時間。 |
| ls.top_account.by_exchange[].age_s | number | s | 此資料列距上次更新的秒數。 |
| ls.top_account.by_exchange[].is_stale | boolean | — | 資料列超出新鮮視窗時為 true;過期的資料列不計入總額。 |
| ls.top_account.by_exchange[].source | string | — | 數值的來源。 |
| ls.top_account.by_exchange[].period | string | — | 期間。 |
| ls.top_position | object | — | 大戶所持倉位中的多空佔比。 |
| ls.top_position.long_pct | number|null | % | 多頭佔比。 |
| ls.top_position.short_pct | number|null | % | 空頭佔比。 |
| ls.top_position.ratio | number|null | — | 比值。 |
| ls.top_position.n_exchanges | number | — | 納入計算的交易所數量。 |
| ls.top_position.by_exchange | array | — | 各交易所明細。 |
| ls.top_position.by_exchange[] | object | — | 各交易所明細。 |
| ls.top_position.by_exchange[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| ls.top_position.by_exchange[].symbol | string | — | 經 CoinBoss 正規化的交易品種代號(例如 BTCUSDT)。 |
| ls.top_position.by_exchange[].long_pct | number | % | 多頭佔比。 |
| ls.top_position.by_exchange[].short_pct | number | % | 空頭佔比。 |
| ls.top_position.by_exchange[].ratio | number | — | 比值。 |
| ls.top_position.by_exchange[].updated_at | number | ms | 此資料列最近一次更新的時間。 |
| ls.top_position.by_exchange[].age_s | number | s | 此資料列距上次更新的秒數。 |
| ls.top_position.by_exchange[].is_stale | boolean | — | 資料列超出新鮮視窗時為 true;過期的資料列不計入總額。 |
| ls.top_position.by_exchange[].source | string | — | 數值的來源。 |
| ls.top_position.by_exchange[].period | string | — | 期間。 |
| ls.position_all | object | — | 所有倉位的多空佔比(僅限有公布此資料的交易所)。 |
| ls.position_all.long_pct | number|null | % | 多頭佔比。 |
| ls.position_all.short_pct | number|null | % | 空頭佔比。 |
| ls.position_all.ratio | number|null | — | 比值。 |
| ls.position_all.n_exchanges | number | — | 納入計算的交易所數量。 |
| ls.position_all.by_exchange | array | — | 各交易所明細。 |
| ls.position_all.by_exchange[] | object | — | 各交易所明細。 |
| ls.position_all.by_exchange[].exchange | string | — | 交易所 ID,小寫(例如 `binance`)。 |
| ls.position_all.by_exchange[].symbol | string | — | 經 CoinBoss 正規化的交易品種代號(例如 BTCUSDT)。 |
| ls.position_all.by_exchange[].long_pct | number | % | 多頭佔比。 |
| ls.position_all.by_exchange[].short_pct | number | % | 空頭佔比。 |
| ls.position_all.by_exchange[].ratio | number | — | 比值。 |
| ls.position_all.by_exchange[].updated_at | number | ms | 此資料列最近一次更新的時間。 |
| ls.position_all.by_exchange[].age_s | number | s | 此資料列距上次更新的秒數。 |
| ls.position_all.by_exchange[].is_stale | boolean | — | 資料列超出新鮮視窗時為 true;過期的資料列不計入總額。 |
| ls.position_all.by_exchange[].source | string | — | 數值的來源。 |
| ls.position_all.by_exchange[].period | string | — | 期間。 |
| ls.taker | object | — | 主動買入與主動賣出的成交量佔比。 |
| ls.taker.long_pct | number|null | % | 多頭佔比。 |
| ls.taker.short_pct | number|null | % | 空頭佔比。 |
| ls.taker.ratio | number|null | — | 比值。 |
| ls.taker.n_exchanges | number | — | 納入計算的交易所數量。 |
| ls.taker.by_exchange | array | — | 各交易所明細。 |
| ls.definitions | object | — | 各項口徑的定義。這五種口徑回答的是不同的問題,絕不混算。 可能不存在 |
| ls.definitions.account | string | — | 帳戶數口徑。 可能不存在 |
| ls.definitions.top_account | string | — | 大戶帳戶數口徑。 可能不存在 |
| ls.definitions.top_position | string | — | 大戶持倉量口徑。 可能不存在 |
| ls.definitions.position_all | string | — | 全部持倉量口徑。 可能不存在 |
| ls.definitions.taker | string | — | 主動買賣口徑。 可能不存在 |
| ls.method | object | — | 以純文字說明此回應所用的公式。 可能不存在 |
| ls.method.normalize | string | — | 歸一化方式的純文字說明:各交易所的數值會重新換算,使多方 % + 空方 % = 100,且比值 = 多方 % ÷ 空方 %。 可能不存在 |
| ls.method.aggregate | string | — | 跨交易所彙總值。 可能不存在 |
| ls.method.freshness | string | — | 新鮮度規則的純文字說明:顯示 24 小時內有更新的資料列,`is_stale` 標示超過 2 小時的資料列。 可能不存在 |
| errors | object | — | 組合中建立失敗的部分,以部分名稱為鍵;所有部分都齊全時為空。 可能不存在 |
產生於 2026-11-11 23:00 UTC,依據 4 筆真實回應。
回應範例
最近一次成功的回應過大而無法顯示,因此未保存範例。請在 Playground 中呼叫此端點。
已驗證的樣本
除了上方的範例之外,探針還會以下列參數呼叫此端點,並在每次呼叫時檢查結構描述。
| 參數 | HTTP | 延遲 | 結果 |
|---|---|---|---|
| coin=ETH | 200 | 60 ms | 通過 |
| coin=SOL | 200 | 53 ms | 通過 |
| coin=ARKM | 200 | 43 ms | 通過 |
| — | 400 | 1 ms | 通過 回傳預期的錯誤 |
檢查於 2026-11-12 23:27:35 UTC
詳細資訊
- 身分驗證
- 無。公開端點。
- 速率限制
- 每個 IP 每分鐘 1200 次請求
- 伺服器快取
- 15s
- 邊緣微快取
- 10s
- 更新頻率
- 見 /api/sd/oi、/api/sd/funding、/api/sd/liquidations、/api/sd/volume、/api/sd/ls(輪詢間隔 60 s 至 5 min;爆倉為即時;現貨每 10 min)
- 時間視窗
- 各區塊的最新快照,加上各區塊自身的滾動時間視窗
- 資料來源
- 單一幣種的持倉量、資金費率、爆倉、成交量與多空比區塊合併回傳,全部由 CoinBoss 自有採集器輪詢約 30 家交易所(例如 binance、okx、bybit、bitget、gate、hyperliquid)的公開 API 後建立。
- 交易所覆蓋範圍
- 與五個單區塊端點相同;contracts 清單截短為 60 列
- 單位
- USD notional for OI / volume / liquidations; funding as fraction; long/short in percent
- 計算方法
- same builders as the five single-block endpoints
- 時間戳記
- Unix epoch 毫秒(UTC),除非欄位說明另有註明
- 回應格式
- json
- 穩定性
- 穩定版
- 上線時間
- 2026-11-11
即時狀態
可用檢查於 2026-11-12 23:42:32 UTCHTTP 200858 ms結構描述相符最新資料點距今 0s
近 30 天可用率
360 次檢查中有 100% 通過
最近一次探測發現結構描述偏移
- 回應中有但文件未記載: oi.coverage.stale_excluded[], oi.coverage.stale_excluded[].exchange, oi.coverage.stale_excluded[].symbol, oi.coverage.stale_excluded[].oi_usd, oi.coverage.stale_excluded[].age_s, oi.coverage.stale_excluded[].reason, ls.taker.by_exchange[], ls.taker.by_exchange[].exchange, ls.taker.by_exchange[].symbol, ls.taker.by_exchange[].long_pct
錯誤
所有端點的失敗回應都採用同一種結構。完整清單請見錯誤頁面。 錯誤與速率限制 →
| 錯誤碼 | 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/coin可用參數
string — Coin symbol; 400 when missing. Alias: `base`.
請求 URL
https://www.coinboss.com/api/sd/coin?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