期權鏈(單一交易所)
單一交易所某個到期日的每個行權價,看漲與看跌並列:持倉量、成交量、標記價格、標記/買價/賣價 IV,以及交易所公布的希臘值。
/api/sd/options/chain請求
查詢參數
| 名稱 | 型別 | 必填 | 預設值 | 可用值 | 說明 |
|---|---|---|---|---|---|
| coin | string | 必填 | — | — | 幣種代號,不分大小寫(例如 `BTC`)。缺少或格式錯誤時回傳 400。 範例: BTC |
| exchange | string | 必填 | — | deribit, binance, bybit, okx, gate, coincall | 交易所 ID。此處不接受 `all`:一條期權鏈只屬於一家交易所。 範例: okx |
| expiry | string | 選填 | — | — | UTC 到期日,格式為 `YYYY-MM-DD`。預設:最近的到期日。不接受 `all`。 |
| kind | string | 選填 | — | inverse, linear | 交易所同時上架幣本位結算(`inverse`)與穩定幣結算(`linear`)期權時的合約類別。預設:該到期日持倉量較大的類別。 |
| limit | integer | 選填 | 100 | ≥ 1 · ≤ 500 | 每頁的行權價數量(一列 = 一個行權價及其看漲與看跌期權)。 |
| offset | integer | 選填 | 0 | ≥ 0 · ≤ 100000 | 要略過的行權價數量。 |
請求範例
curl -s "https://www.coinboss.com/api/sd/options/chain?coin=BTC&exchange=okx"回應欄位
欄位表由真實回應產生,因此列出的正是端點實際回傳的內容。路徑中的 a[] 代表陣列元素,{*} 代表以動態名稱(例如幣種或交易所)為鍵的物件。
| 欄位 | 型別 | 單位 | 說明 |
|---|---|---|---|
| success | boolean | — | 請求成功時為 true。失敗時回應內容為 `{ success: false, code, error, request_id }`。 |
| schema | string | — | 此回應的結構描述 ID。只有在既有欄位的意義或型別改變時才會變更。 |
| now | number | ms | 建立回應時的伺服器時間。 |
| coin | string | — | 幣種代號(大寫)。 |
| exchange | string | — | 交易所 ID(小寫)。 |
| expiry | string | — | 到期日(UTC),`YYYY-MM-DD`,或 `all`。 |
| expiry_ts | number | ms | 到期時間。 |
| days_left | number | days | 距到期的天數。 |
| kind | string | — | 合約類別:`inverse`(幣本位結算)或 `linear`(穩定幣結算)。 |
| kinds_available | array | — | 交易所在此到期日上架的合約類別。 |
| kinds_available[] | string | — | 交易所在此到期日上架的合約類別。 |
| expiries_available | array | — | 目前有合約的到期日。 |
| expiries_available[] | string | — | 目前有合約的到期日。 |
| underlying | string | — | 該合約類別的標的。 |
| settle | string | — | 該合約類別的結算幣種。 |
| contract_size | number | coin | 每張合約對應的標的幣數量。 |
| underlying_price | number | USD | 交易所針對此到期日公布的遠期/標的價格。 |
| index_price | number | USD | 用於換算 USD 的現貨指數價格(彙總時取各交易所自身指數價格的中位數)。 |
| total_strikes | number | — | 分頁前此到期日可用的行權價數量。 |
| limit | number | — | 實際套用的列數上限。 |
| offset | number | — | 略過的列數。 |
| returned | number | — | 本頁回傳的行權價數量。 |
| rows | array | — | 每個行權價一列,含其看漲與看跌期權。 |
| rows[] | object | — | 每個行權價一列,含其看漲與看跌期權。 |
| rows[].strike | number | USD | 行權價。 |
| rows[].call | object | — | 此行權價的看漲合約;交易所未上架時為 `null`。 |
| rows[].call.instrument | string | — | 交易所原始寫法的合約名稱。 |
| rows[].call.oi_contracts | number | contracts | 持倉量,以交易所計算的合約張數為單位。 |
| rows[].call.oi_coin | number | coin | 持倉量,以標的幣為單位。 |
| rows[].call.oi_usd | number | USD | 以 USD 名義價值計的持倉量:幣數量 × 現貨指數價格。單邊計算。 |
| rows[].call.vol_contracts_24h | number | contracts | 24h 成交量,以交易所計算的合約張數為單位。 |
| rows[].call.vol_coin_24h | number | coin | 24h 成交數量,以標的幣為單位。 |
| rows[].call.vol_usd_24h | number | USD | 24h 名義成交額:成交幣數量 × 當前現貨指數價格。並非權利金成交額。 |
| rows[].call.vol_premium_usd_24h | number|null | USD | 交易所有公布時為 24h 權利金成交額(期權價格 × 數量);否則為 `null`。絕不併入名義成交額。 |
| rows[].call.mark_price | number|null | — | 期權的標記價格,以其報價單位表示(幣本位結算合約為幣)。 |
| rows[].call.mark_price_usd | number|null | USD | 換算為 USD 的期權標記價格。 |
| rows[].call.mark_iv | number | % | 標記價格對應的隱含波動率。 |
| rows[].call.bid_iv | number|null | % | 最佳買價對應的隱含波動率;交易所未公布時為 `null`。 |
| rows[].call.ask_iv | number|null | % | 最佳賣價對應的隱含波動率;交易所未公布時為 `null`。 |
| rows[].call.delta | number|null | — | 交易所公布的 Delta;未公布時為 `null`。 |
| rows[].call.gamma | number|null | — | 交易所公布的 Gamma;未公布時為 `null`。 |
| rows[].call.vega | number|null | — | 交易所公布的 Vega;未公布時為 `null`。 |
| rows[].call.theta | number|null | — | 交易所公布的 Theta;未公布時為 `null`。 |
| rows[].call.observed_at | number | ms | 來源為該資料提供的時間戳記。 |
| rows[].put | object | — | 此行權價的看跌合約;交易所未上架時為 `null`。 |
| rows[].put.instrument | string | — | 交易所原始寫法的合約名稱。 |
| rows[].put.oi_contracts | number | contracts | 持倉量,以交易所計算的合約張數為單位。 |
| rows[].put.oi_coin | number | coin | 持倉量,以標的幣為單位。 |
| rows[].put.oi_usd | number | USD | 以 USD 名義價值計的持倉量:幣數量 × 現貨指數價格。單邊計算。 |
| rows[].put.vol_contracts_24h | number | contracts | 24h 成交量,以交易所計算的合約張數為單位。 |
| rows[].put.vol_coin_24h | number | coin | 24h 成交數量,以標的幣為單位。 |
| rows[].put.vol_usd_24h | number | USD | 24h 名義成交額:成交幣數量 × 當前現貨指數價格。並非權利金成交額。 |
| rows[].put.vol_premium_usd_24h | number|null | USD | 交易所有公布時為 24h 權利金成交額(期權價格 × 數量);否則為 `null`。絕不併入名義成交額。 |
| rows[].put.mark_price | number | — | 期權的標記價格,以其報價單位表示(幣本位結算合約為幣)。 |
| rows[].put.mark_price_usd | number | USD | 換算為 USD 的期權標記價格。 |
| rows[].put.mark_iv | number | % | 標記價格對應的隱含波動率。 |
| rows[].put.bid_iv | number|null | % | 最佳買價對應的隱含波動率;交易所未公布時為 `null`。 |
| rows[].put.ask_iv | number|null | % | 最佳賣價對應的隱含波動率;交易所未公布時為 `null`。 |
| rows[].put.delta | number|null | — | 交易所公布的 Delta;未公布時為 `null`。 |
| rows[].put.gamma | number|null | — | 交易所公布的 Gamma;未公布時為 `null`。 |
| rows[].put.vega | number|null | — | 交易所公布的 Vega;未公布時為 `null`。 |
| rows[].put.theta | number|null | — | 交易所公布的 Theta;未公布時為 `null`。 |
| rows[].put.observed_at | number | ms | 來源為該資料提供的時間戳記。 |
| coverage | object | — | 數字中納入與未納入的內容。與其他來源比較合計值之前,請先比對這一項。 |
| coverage.included_exchanges | array | — | 新鮮資料已被納入的來源。 |
| coverage.included_exchanges[] | string | — | 新鮮資料已被納入的來源。 |
| coverage.unavailable | array | — | 無法納入的來源,各附原因。它們絕不會以 0 計入。 在產生此表所用的樣本中為空 |
| 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.chain | string | — | `chain` 的公式說明,純文字。 |
| method.kind | string | — | `kind` 的公式說明,純文字。 |
| method.oi_usd | string | — | `oi_usd` 的公式說明,純文字。 |
| method.mark_price | string | — | `mark_price` 的公式說明,純文字。 |
| method.iv | string | — | `iv` 的公式說明,純文字。 |
| method.greeks | string | — | `greeks` 的公式說明,純文字。 |
| method.vol_usd_24h | string | — | `vol_usd_24h` 的公式說明,純文字。 |
| method.vol_premium_usd_24h | string | — | `vol_premium_usd_24h` 的公式說明,純文字。 |
| 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/chain?coin=BTC&exchange=okx · 真實回應,擷取於 2026-11-13 03:52:54 UTC。 較長的陣列與對應表已截短顯示:rows 原有 45 個項目; expiries_available 原有 12 個項目。
- "success"true
- "schema""coinboss.sd.options/1"
- "now"1794541974766
- "coin""BTC"
- "exchange""okx"
- "expiry""2026-11-13"
- "expiry_ts"1794556800000
- "days_left"0.1716
- "kind""inverse"
- "kinds_available"
- "inverse"
- "linear"
- "expiries_available"
- "2026-11-13"
- "2026-11-14"
- "2026-11-15"
- "2026-11-16"
- "2026-11-20"
- "2026-11-27"
- "2026-12-04"
- "2026-12-25"
- "underlying""BTC-USD"
- "settle""BTC"
- "contract_size"0.01
- "underlying_price"71428.8359576
- "index_price"71417.4
- "total_strikes"45
- "limit"100
- "offset"0
- "returned"45
- "rows"
- "coverage"
- "included_exchanges"
- "unavailable"
- "stale_excluded"
- "field_gaps"
- "stale_included"
- "method"
- "chain""T-quote for one exchange, one expiry and one contract family: one row per strike (ascending) with the call and put legs; paginated by strike with limit (default…"
- "kind""inverse = coin-settled (Deribit BTC/ETH, OKX *-USD); linear = USD/USDT/USDC-settled. When an exchange lists both families for the expiry and kind is omitted, th…"
- "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 …"
- "mark_price""exchange-native quote: Deribit/OKX inverse in underlying coin per 1 coin; Binance in USDT per contract (contract_size coins); others in USD per 1 coin. mark_pri…"
- "iv""mark_iv / bid_iv / ask_iv in percent as published by the exchange (no-quote sentinels such as 0 or -1 are null)"
- "greeks""delta/gamma/vega/theta exactly as published by the exchange (OKX: Black-Scholes greeks in USD terms); never computed by CoinBoss; null where the exchange does n…"
- "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…"
- "meta"
- "schema""coinboss.sd.options/1"
- "source"
- "observed_at"1794522472654
- "received_at"1794522473638
- "fetched_at"1794541974766
- "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 | 59 ms | 通過 STALE |
| coin=BTC&limit=5&exchange=bybit | 200 | 3 ms | 通過 STALE |
| coin=BTC | 400 | 1 ms | 通過 回傳預期的錯誤 |
檢查於 2026-11-13 03:28:17 UTC
詳細資訊
- 身分驗證
- 無。公開端點。
- 速率限制
- 每個 IP 每分鐘 1200 次請求
- 伺服器快取
- 60s
- 邊緣微快取
- 10s
- 更新頻率
- 採集器每 10 分鐘執行一輪;交易所在最近一次成功採集後的 25 分鐘內視為新鮮。
- 時間視窗
- 單一到期日的最新快照。
- 資料來源
- Deribit、Binance、Bybit、OKX、Gate 與 Coincall 的公開 REST 期權端點,由 CoinBoss 採集並儲存(sd_opt_latest、sd_opt_summary_hourly)。未使用任何第三方聚合商。
- 交易所覆蓋範圍
- 六家期權交易所。若某幣種在所選交易所沒有上架期權,會回傳 HTTP 200,欄位為 null、`meta.quality = "UNAVAILABLE"`,原因列於 `coverage.unavailable`。沒有公開期權資料流的交易所也會列於該處。
- 分頁
- 以位移分頁:`limit`(最大 500)與 `offset`;回應中含有 `total_strikes` 與 `returned`。
- 排序
- 行權價升冪。
- 單位
- 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.
- 計算方法
- Greeks and IV are passed through from the venue, not recomputed. A venue that does not publish a column returns `null` for it and the column is listed under `coverage.field_gaps`.
- 時間戳記
- Unix epoch 毫秒(UTC),除非欄位說明另有註明
- 回應格式
- json
- 穩定性
- 穩定版
- 上線時間
- 2026-11-11
即時狀態
端點回報的資料品質為 STALE
近 30 天可用率
406 次檢查中有 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 狀態碼。 | 視訊息而定;請當作失敗的請求處理。 |
試用
/api/sd/options/chain降級string — Coin symbol, case-insensitive (for example `BTC`). Missing or malformed values return 400.
string — Venue id. `all` is not accepted here: a chain belongs to one venue.
string — UTC expiry date as `YYYY-MM-DD`. Default: the nearest expiry. `all` is not accepted.
string — Contract family when the venue lists both coin-settled (`inverse`) and stablecoin-settled (`linear`) options. Default: the family with the larger open interest for that expiry.
integer · 預設 100 · 最小 1 · 最大 500 — Strikes per page (one row = one strike with its call and put).
integer · 預設 0 · 最小 0 · 最大 100000 — Number of strikes to skip.
https://www.coinboss.com/api/sd/options/chain?coin=BTC&exchange=okx此分類的其他端點
- 期權鏈(單一交易所) /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