GET降級STALE
依到期日的期權資料
每個到期日一列:持倉量、成交量、看跌看漲比、最大痛點、ATM IV 與偏度,可取所有交易所或單一交易所。
GET
/api/sd/options/expiries降級. 端點回報的資料品質為 STALE
請求
查詢參數
| 名稱 | 型別 | 必填 | 預設值 | 可用值 | 說明 |
|---|---|---|---|---|---|
| coin | string | 必填 | — | — | 幣種代號,不分大小寫(例如 `BTC`)。缺少或格式錯誤時回傳 400。 範例: BTC |
| exchange | string | 選填 | all | all, deribit, binance, bybit, okx, gate, coincall | 單一交易所,或以 `all` 取得跨交易所彙總值。 |
請求範例
curl -s "https://www.coinboss.com/api/sd/options/expiries?coin=BTC"回應欄位
欄位表由真實回應產生,因此列出的正是端點實際回傳的內容。路徑中的 a[] 代表陣列元素,{*} 代表以動態名稱(例如幣種或交易所)為鍵的物件。
| 欄位 | 型別 | 單位 | 說明 |
|---|---|---|---|
| success | boolean | — | 請求成功時為 true。失敗時回應內容為 `{ success: false, code, error, request_id }`。 |
| schema | string | — | 此回應的結構描述 ID。只有在既有欄位的意義或型別改變時才會變更。 |
| now | number | ms | 建立回應時的伺服器時間。 |
| coin | string | — | 幣種代號(大寫)。 |
| exchange | string | — | 交易所 ID(小寫)。 |
| n_expiries | number | — | 納入的到期日數量。 |
| n_contracts | number | — | 納入的期權合約數量。 |
| oi_usd | number | USD | 以 USD 名義價值計的持倉量:幣數量 × 現貨指數價格。單邊計算。 |
| call_oi_usd | number | USD | 看漲期權持倉量,以 USD 名義價值計。 |
| put_oi_usd | number | USD | 看跌期權持倉量,以 USD 名義價值計。 |
| oi_coin | number | coin | 持倉量,以標的幣為單位。 |
| call_oi_coin | number | coin | 看漲期權持倉量,以標的幣為單位。 |
| put_oi_coin | number | coin | 看跌期權持倉量,以標的幣為單位。 |
| vol_usd_24h | number | USD | 24h 名義成交額:成交幣數量 × 當前現貨指數價格。並非權利金成交額。 |
| call_vol_usd_24h | number | USD | 看漲期權的 24h 名義成交額。 |
| put_vol_usd_24h | number | USD | 看跌期權的 24h 名義成交額。 |
| vol_coin_24h | number | coin | 24h 成交數量,以標的幣為單位。 |
| call_vol_coin_24h | number | coin | 看漲期權的 24h 成交數量,以幣為單位。 |
| put_vol_coin_24h | number | coin | 看跌期權的 24h 成交數量,以幣為單位。 |
| vol_premium_usd_24h | number | USD | 交易所有公布時為 24h 權利金成交額(期權價格 × 數量);否則為 `null`。絕不併入名義成交額。 |
| pcr_oi | number | ratio | 看跌期權持倉量 ÷ 看漲期權持倉量,以幣為單位;看漲一側為 0 時為 `null`。 |
| pcr_vol | number | ratio | 看跌期權 24h 成交量 ÷ 看漲期權 24h 成交量,以幣為單位;看漲一側為 0 時為 `null`。 |
| atm_iv_30d | number | % | 以線性內插至固定 30 天期限的 ATM IV;30 天未落在兩個到期日之間時為 `null`。 |
| expiries | array | — | 每個到期日一列。 |
| expiries[] | object | — | 每個到期日一列。 |
| expiries[].expiry | string | — | 到期日(UTC),`YYYY-MM-DD`,或 `all`。 |
| expiries[].expiry_ts | number | ms | 到期時間。 |
| expiries[].days_left | number | days | 距到期的天數。 |
| expiries[].exchanges | array | — | 此列納入的交易所。 |
| expiries[].exchanges[] | string | — | 此列納入的交易所。 |
| expiries[].n_contracts | number | — | 納入的期權合約數量。 |
| expiries[].oi_usd | number | USD | 以 USD 名義價值計的持倉量:幣數量 × 現貨指數價格。單邊計算。 |
| expiries[].call_oi_usd | number | USD | 看漲期權持倉量,以 USD 名義價值計。 |
| expiries[].put_oi_usd | number | USD | 看跌期權持倉量,以 USD 名義價值計。 |
| expiries[].oi_coin | number | coin | 持倉量,以標的幣為單位。 |
| expiries[].call_oi_coin | number | coin | 看漲期權持倉量,以標的幣為單位。 |
| expiries[].put_oi_coin | number | coin | 看跌期權持倉量,以標的幣為單位。 |
| expiries[].vol_usd_24h | number | USD | 24h 名義成交額:成交幣數量 × 當前現貨指數價格。並非權利金成交額。 |
| expiries[].call_vol_usd_24h | number | USD | 看漲期權的 24h 名義成交額。 |
| expiries[].put_vol_usd_24h | number | USD | 看跌期權的 24h 名義成交額。 |
| expiries[].vol_coin_24h | number | coin | 24h 成交數量,以標的幣為單位。 |
| expiries[].call_vol_coin_24h | number | coin | 看漲期權的 24h 成交數量,以幣為單位。 |
| expiries[].put_vol_coin_24h | number | coin | 看跌期權的 24h 成交數量,以幣為單位。 |
| expiries[].vol_premium_usd_24h | number|null | USD | 交易所有公布時為 24h 權利金成交額(期權價格 × 數量);否則為 `null`。絕不併入名義成交額。 |
| expiries[].pcr_oi | number | ratio | 看跌期權持倉量 ÷ 看漲期權持倉量,以幣為單位;看漲一側為 0 時為 `null`。 |
| expiries[].pcr_vol | number | ratio | 看跌期權 24h 成交量 ÷ 看漲期權 24h 成交量,以幣為單位;看漲一側為 0 時為 `null`。 |
| expiries[].oi_share_pct | number | % | 佔所選範圍總持倉量(USD 名義價值)的比例。 |
| expiries[].max_pain | number | USD | 到期時期權持有人獲得的總支付金額最小的行權價。 |
| expiries[].max_pain_usd | number | USD | 若該到期日以最大痛點行權價結算,期權持有人獲得的總支付金額。 |
| expiries[].atm_iv | number | % | 平值隱含波動率:最接近遠期價格的行權價之標記 IV 平均值。 |
| expiries[].atm_strike | number | USD | 最接近遠期價格的行權價,用於計算 ATM IV。 |
| expiries[].skew_25d | number|null | percentage points | Delta 最接近 −0.25 的看跌期權 IV,減去 Delta 最接近 +0.25 的看漲期權 IV。僅採用交易所公布的 Delta。 |
| expiries[].skew_exchanges | array | — | 有 Delta 可用於計算偏度的交易所。 |
| expiries[].skew_exchanges[] | string | — | 有 Delta 可用於計算偏度的交易所。 |
| expiries[].index_price | number | USD | 用於換算 USD 的現貨指數價格(彙總時取各交易所自身指數價格的中位數)。 |
| expiries[].underlying_price | number|null | USD | 交易所針對此到期日公布的遠期/標的價格。 |
| expiries[].by_exchange_iv | array | — | 各交易所此到期日的 ATM IV。 |
| expiries[].by_exchange_iv[] | object | — | 各交易所此到期日的 ATM IV。 |
| expiries[].by_exchange_iv[].exchange | string | — | 交易所 ID(小寫)。 |
| expiries[].by_exchange_iv[].atm_iv | number | % | 平值隱含波動率:最接近遠期價格的行權價之標記 IV 平均值。 |
| expiries[].by_exchange_iv[].atm_strike | number | USD | 最接近遠期價格的行權價,用於計算 ATM IV。 |
| expiries[].by_exchange_iv[].ref_price | number | USD | 選取該交易所 ATM 行權價時所依據的遠期價格。 |
| expiries[].by_exchange_iv[].skew_25d | number|null | percentage points | Delta 最接近 −0.25 的看跌期權 IV,減去 Delta 最接近 +0.25 的看漲期權 IV。僅採用交易所公布的 Delta。 |
| expiries[].by_exchange_iv[].oi_usd | number | USD | 以 USD 名義價值計的持倉量:幣數量 × 現貨指數價格。單邊計算。 |
| coverage | object | — | 數字中納入與未納入的內容。與其他來源比較合計值之前,請先比對這一項。 |
| coverage.included_exchanges | array | — | 新鮮資料已被納入的來源。 |
| coverage.included_exchanges[] | string | — | 新鮮資料已被納入的來源。 |
| coverage.unavailable | array | — | 無法納入的來源,各附原因。它們絕不會以 0 計入。 |
| coverage.unavailable[] | object | — | 無法納入的來源,各附原因。它們絕不會以 0 計入。 |
| coverage.unavailable[].exchange | string | — | 交易所 ID(小寫)。 |
| coverage.unavailable[].reason | string | — | 機器可讀的原因代碼。 |
| coverage.unavailable[].detail | string | — | 供人閱讀的原因說明。 |
| coverage.stale_excluded | array | — | 因最近一次更新超出新鮮視窗而被排除的資料列。 在產生此表所用的樣本中為空 |
| coverage.field_gaps | array | — | 交易所未公布的欄位;該交易所的這些欄位為 `null`。 |
| coverage.field_gaps[] | object | — | 交易所未公布的欄位;該交易所的這些欄位為 `null`。 |
| coverage.field_gaps[].exchange | string | — | 交易所 ID(小寫)。 |
| coverage.field_gaps[].fields | array | — | 缺少的欄位名稱。 |
| coverage.field_gaps[].fields[] | string | — | 缺少的欄位名稱。 |
| coverage.field_gaps[].kind | string | — | 合約類別:`inverse`(幣本位結算)或 `linear`(穩定幣結算)。 |
| method | object | — | 此回應所用公式的純文字說明,每個欄位一項。 |
| method.oi_usd | string | — | `oi_usd` 的公式說明,純文字。 |
| method.vol_usd_24h | string | — | `vol_usd_24h` 的公式說明,純文字。 |
| method.vol_premium_usd_24h | string | — | `vol_premium_usd_24h` 的公式說明,純文字。 |
| method.pcr_oi | string | — | `pcr_oi` 的公式說明,純文字。 |
| method.pcr_vol | string | — | `pcr_vol` 的公式說明,純文字。 |
| method.max_pain | string | — | `max_pain` 的公式說明,純文字。 |
| method.atm_iv | string | — | `atm_iv` 的公式說明,純文字。 |
| method.atm_iv_30d | string | — | `atm_iv_30d` 的公式說明,純文字。 |
| method.skew_25d | string | — | `skew_25d` 的公式說明,純文字。 |
| method.expiry | string | — | `expiry` 的公式說明,純文字。 |
| method.oi_share_pct | string | — | `oi_share_pct` 的公式說明,純文字。 |
| meta | object | — | 此回應的資料歷程與新鮮度。 |
| meta.schema | string | — | 此回應的結構描述 ID。只有在既有欄位的意義或型別改變時才會變更。 |
| meta.source | array | — | 資料採集所用的上游公開端點。 |
| meta.source[] | object | — | 資料採集所用的上游公開端點。 |
| meta.source[].exchange | string | — | 交易所 ID(小寫)。 |
| meta.source[].endpoint | string | — | 採集器讀取的來源公開端點(僅供說明資料歷程;用戶端不會直接呼叫它)。 |
| meta.observed_at | number | ms | 來源為該資料提供的時間戳記。 |
| meta.received_at | number | ms | CoinBoss 採集器收到資料的時間。 |
| meta.fetched_at | number | ms | 此回應組裝完成的時間。 |
| meta.window | string | — | 數字涵蓋的時間視窗。 |
| meta.quality | string | — | FRESH、PARTIAL、STALE、BROKEN 或 UNAVAILABLE,依資料時間戳記與覆蓋範圍判定。 |
| meta.is_stale | boolean | — | 資料已超出其新鮮視窗時為 true。 |
| meta.cache_ttl_s | number | s | 此回應的快取存活時間。 |
| meta.fallback | string | — | 採集器或來源發生故障時,此端點回傳的內容。 |
產生於 2026-11-11 23:00 UTC,依據 3 筆真實回應。
回應範例
/api/sd/options/expiries?coin=BTC · 真實回應,擷取於 2026-11-13 04:02:52 UTC。 較長的陣列與對應表已截短顯示:expiries 原有 12 個項目; meta.source 原有 6 個項目; coverage.field_gaps 原有 4 個項目; coverage.unavailable 原有 12 個項目; coverage.stale_included 原有 6 個項目; expiries[].by_exchange_iv 原有 6 個項目。
- "success"true
- "schema""coinboss.sd.options/1"
- "now"1794542572935
- "coin""BTC"
- "exchange""all"
- "n_expiries"12
- "n_contracts"5792
- "oi_usd"32670143083.84
- "call_oi_usd"18276964561.96
- "put_oi_usd"14393178521.88
- "oi_coin"457419.65
- "call_oi_coin"255899.54
- "put_oi_coin"201520.11
- "vol_usd_24h"4295495191.7
- "call_vol_usd_24h"2031780368.24
- "put_vol_usd_24h"2263714823.46
- "vol_coin_24h"60122.56
- "call_vol_coin_24h"28436.77
- "put_vol_coin_24h"31685.79
- "vol_premium_usd_24h"34033631.12
- "pcr_oi"0.7875
- "pcr_vol"1.1143
- "atm_iv_30d"37.2
- "expiries"
- "coverage"
- "included_exchanges"
- "unavailable"
- "stale_excluded"
- "field_gaps"
- "stale_included"
- "method"
- "oi_usd""sum over contracts of oi_coin x that exchange's spot index price (USDT/USDC treated 1:1 as USD); oi_coin is open interest in units of the underlying coin after …"
- "vol_usd_24h""NOTIONAL 24h volume = sum of vol_coin (24h traded quantity in underlying coin) x the exchange's CURRENT spot index price; not premium turnover. Binance statisti…"
- "vol_premium_usd_24h""PREMIUM turnover (option price x quantity) as reported by the exchange: Deribit volume_usd, Binance amount, Gate sum(|size| x multiplier x price) from the 24h t…"
- "pcr_oi""put open interest / call open interest, both in underlying-coin units; null when call side is 0 or missing"
- "pcr_vol""put 24h volume / call 24h volume, both in underlying-coin units; null when call side is 0 or missing"
- "max_pain""per expiry: settlement price S among strikes with OI>0 minimizing pain_usd(S) = sum_calls oi_coin x max(S-K,0) + sum_puts oi_coin x max(K-S,0); ties take the lo…"
- "atm_iv""per exchange and expiry: reference price F = median of the exchange-published forward/underlying price of that expiry (the exchange index price where no forward…"
- "atm_iv_30d""30-day constant-maturity ATM IV: linear interpolation in days between the two expiries bracketing 30 days; null when 30 days is not bracketed"
- "skew_25d""IV(put with delta closest to -0.25, within +-0.10) - IV(call with delta closest to +0.25, within +-0.10), in percentage points, using exchange-published deltas …"
- "expiry""UTC date of the expiry timestamp (all integrated exchanges expire at 08:00 UTC); contracts from different exchanges with the same UTC expiry date are merged"
- "oi_share_pct""expiry oi_usd / total oi_usd of this response x 100"
- "meta"
- "schema""coinboss.sd.options/1"
- "source"
- "observed_at"1794522472654
- "received_at"1794522473814
- "fetched_at"1794542572935
- "window""latest"
- "quality""STALE"
- "is_stale"true
- "cache_ttl_s"60
- "fallback""on collector failure the last stored rows are served: an exchange whose newest batch is older than 25 min (collector cycle is 10 min) is excluded from totals (l…"
已驗證的樣本
除了上方的範例之外,探針還會以下列參數呼叫此端點,並在每次呼叫時檢查結構描述。
| 參數 | HTTP | 延遲 | 結果 |
|---|---|---|---|
| coin=ETH&exchange=deribit | 200 | 46 ms | 通過 STALE |
| coin=SOL | 200 | 22 ms | 通過 STALE |
| coin=BTC&exchange=nope | 400 | 1 ms | 通過 回傳預期的錯誤 |
檢查於 2026-11-13 03:58:20 UTC
詳細資訊
- 身分驗證
- 無。公開端點。
- 速率限制
- 每個 IP 每分鐘 1200 次請求
- 伺服器快取
- 60s
- 邊緣微快取
- 10s
- 更新頻率
- 採集器每 10 分鐘執行一輪;交易所在最近一次成功採集後的 25 分鐘內視為新鮮。
- 時間視窗
- 各到期日的最新快照;成交量欄位涵蓋過去 24 小時。
- 資料來源
- Deribit、Binance、Bybit、OKX、Gate 與 Coincall 的公開 REST 期權端點,由 CoinBoss 採集並儲存(sd_opt_latest、sd_opt_summary_hourly)。未使用任何第三方聚合商。
- 交易所覆蓋範圍
- 六家期權交易所。若某幣種在所選交易所沒有上架期權,會回傳 HTTP 200,欄位為 null、`meta.quality = "UNAVAILABLE"`,原因列於 `coverage.unavailable`。沒有公開期權資料流的交易所也會列於該處。
- 排序
- 到期日升冪。
- 單位
- USD notional = contracts × contract size × spot index price of the venue. `*_coin` fields are in units of the underlying coin. Implied volatility is in percent (55 = 55 %). `vol_premium_usd_24h` is premium turnover, reported separately and never added to notional volume.
- 計算方法
- Contracts of different venues are grouped by UTC expiry date. Max pain and ATM IV are computed per expiry; `oi_share_pct` is the share of that expiry in the total open interest of the selection.
- 時間戳記
- Unix epoch 毫秒(UTC),除非欄位說明另有註明
- 回應格式
- json
- 穩定性
- 穩定版
- 上線時間
- 2026-11-11
即時狀態
降級檢查於 2026-11-13 04:02:52 UTCHTTP 20068 ms結構描述相符最新資料點距今 5.6h
端點回報的資料品質為 STALE
近 30 天可用率
408 次檢查中有 100% 通過
最近一次探測發現結構描述偏移
- 回應中有但文件未記載: coverage.stale_included, coverage.stale_included[], coverage.stale_included[].exchange, coverage.stale_included[].age_s
錯誤
所有端點的失敗回應都採用同一種結構。完整清單請見錯誤頁面。 錯誤與速率限制 →
| 錯誤碼 | 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/options/expiries降級參數
string — Coin symbol, case-insensitive (for example `BTC`). Missing or malformed values return 400.
string · 預設 all — One venue, or `all` for the cross-venue aggregate.
請求 URL
https://www.coinboss.com/api/sd/options/expiries?coin=BTC選擇一個端點並按下「送出請求」。回應內容、標頭與耗時會顯示在這裡。
此分類的其他端點
- 期權鏈(單一交易所) /api/sd/options/chain
- 依到期日的期權資料 /api/sd/options/expiries
- 期權歷史(小時級) /api/sd/options/history
- 期權總覽(所有交易所) /api/sd/options/overview
- 依行權價的期權資料 /api/sd/options/strikes
- 幣種頁期權摘要 /api/currency/options-summary
- 期權隱含波動率微笑/期限結構 /api/options/iv
- 期權隱含波動率歷史 /api/options/iv-history
- 期權最大痛點 /api/options/max-pain
- 依到期日的期權 OI /api/options/oi-by-expiry
- 依行權價的期權 OI /api/options/oi-by-strike
- 期權總覽 /api/options/overview
- 期權成交量分布 /api/options/volume-dist