/api/sd/options/chain
GET降級STALE

期權鏈(單一交易所)

單一交易所某個到期日的每個行權價,看漲與看跌並列:持倉量、成交量、標記價格、標記/買價/賣價 IV,以及交易所公布的希臘值。

GET/api/sd/options/chain
降級. 端點回報的資料品質為 STALE

請求

查詢參數

名稱型別必填預設值可用值說明
coinstring必填——幣種代號,不分大小寫(例如 `BTC`)。缺少或格式錯誤時回傳 400。 範例: BTC
exchangestring必填—deribit, binance, bybit, okx, gate, coincall交易所 ID。此處不接受 `all`:一條期權鏈只屬於一家交易所。 範例: okx
expirystring選填——UTC 到期日,格式為 `YYYY-MM-DD`。預設:最近的到期日。不接受 `all`。
kindstring選填—inverse, linear交易所同時上架幣本位結算(`inverse`)與穩定幣結算(`linear`)期權時的合約類別。預設:該到期日持倉量較大的類別。
limitinteger選填100≥ 1 · ≤ 500每頁的行權價數量(一列 = 一個行權價及其看漲與看跌期權)。
offsetinteger選填0≥ 0 · ≤ 100000要略過的行權價數量。

請求範例

curl -s "https://www.coinboss.com/api/sd/options/chain?coin=BTC&exchange=okx"

回應欄位

欄位表由真實回應產生,因此列出的正是端點實際回傳的內容。路徑中的 a[] 代表陣列元素,{*} 代表以動態名稱(例如幣種或交易所)為鍵的物件。

欄位型別單位說明
successboolean—請求成功時為 true。失敗時回應內容為 `{ success: false, code, error, request_id }`。
schemastring—此回應的結構描述 ID。只有在既有欄位的意義或型別改變時才會變更。
nownumberms建立回應時的伺服器時間。
coinstring—幣種代號(大寫)。
exchangestring—交易所 ID(小寫)。
expirystring—到期日(UTC),`YYYY-MM-DD`,或 `all`。
expiry_tsnumberms到期時間。
days_leftnumberdays距到期的天數。
kindstring—合約類別:`inverse`(幣本位結算)或 `linear`(穩定幣結算)。
kinds_availablearray—交易所在此到期日上架的合約類別。
kinds_available[]string—交易所在此到期日上架的合約類別。
expiries_availablearray—目前有合約的到期日。
expiries_available[]string—目前有合約的到期日。
underlyingstring—該合約類別的標的。
settlestring—該合約類別的結算幣種。
contract_sizenumbercoin每張合約對應的標的幣數量。
underlying_pricenumberUSD交易所針對此到期日公布的遠期/標的價格。
index_pricenumberUSD用於換算 USD 的現貨指數價格(彙總時取各交易所自身指數價格的中位數)。
total_strikesnumber—分頁前此到期日可用的行權價數量。
limitnumber—實際套用的列數上限。
offsetnumber—略過的列數。
returnednumber—本頁回傳的行權價數量。
rowsarray—每個行權價一列,含其看漲與看跌期權。
rows[]object—每個行權價一列,含其看漲與看跌期權。
rows[].strikenumberUSD行權價。
rows[].callobject—此行權價的看漲合約;交易所未上架時為 `null`。
rows[].call.instrumentstring—交易所原始寫法的合約名稱。
rows[].call.oi_contractsnumbercontracts持倉量,以交易所計算的合約張數為單位。
rows[].call.oi_coinnumbercoin持倉量,以標的幣為單位。
rows[].call.oi_usdnumberUSD以 USD 名義價值計的持倉量:幣數量 × 現貨指數價格。單邊計算。
rows[].call.vol_contracts_24hnumbercontracts24h 成交量,以交易所計算的合約張數為單位。
rows[].call.vol_coin_24hnumbercoin24h 成交數量,以標的幣為單位。
rows[].call.vol_usd_24hnumberUSD24h 名義成交額:成交幣數量 × 當前現貨指數價格。並非權利金成交額。
rows[].call.vol_premium_usd_24hnumber|nullUSD交易所有公布時為 24h 權利金成交額(期權價格 × 數量);否則為 `null`。絕不併入名義成交額。
rows[].call.mark_pricenumber|null—期權的標記價格,以其報價單位表示(幣本位結算合約為幣)。
rows[].call.mark_price_usdnumber|nullUSD換算為 USD 的期權標記價格。
rows[].call.mark_ivnumber%標記價格對應的隱含波動率。
rows[].call.bid_ivnumber|null%最佳買價對應的隱含波動率;交易所未公布時為 `null`。
rows[].call.ask_ivnumber|null%最佳賣價對應的隱含波動率;交易所未公布時為 `null`。
rows[].call.deltanumber|null—交易所公布的 Delta;未公布時為 `null`。
rows[].call.gammanumber|null—交易所公布的 Gamma;未公布時為 `null`。
rows[].call.veganumber|null—交易所公布的 Vega;未公布時為 `null`。
rows[].call.thetanumber|null—交易所公布的 Theta;未公布時為 `null`。
rows[].call.observed_atnumberms來源為該資料提供的時間戳記。
rows[].putobject—此行權價的看跌合約;交易所未上架時為 `null`。
rows[].put.instrumentstring—交易所原始寫法的合約名稱。
rows[].put.oi_contractsnumbercontracts持倉量,以交易所計算的合約張數為單位。
rows[].put.oi_coinnumbercoin持倉量,以標的幣為單位。
rows[].put.oi_usdnumberUSD以 USD 名義價值計的持倉量:幣數量 × 現貨指數價格。單邊計算。
rows[].put.vol_contracts_24hnumbercontracts24h 成交量,以交易所計算的合約張數為單位。
rows[].put.vol_coin_24hnumbercoin24h 成交數量,以標的幣為單位。
rows[].put.vol_usd_24hnumberUSD24h 名義成交額:成交幣數量 × 當前現貨指數價格。並非權利金成交額。
rows[].put.vol_premium_usd_24hnumber|nullUSD交易所有公布時為 24h 權利金成交額(期權價格 × 數量);否則為 `null`。絕不併入名義成交額。
rows[].put.mark_pricenumber—期權的標記價格,以其報價單位表示(幣本位結算合約為幣)。
rows[].put.mark_price_usdnumberUSD換算為 USD 的期權標記價格。
rows[].put.mark_ivnumber%標記價格對應的隱含波動率。
rows[].put.bid_ivnumber|null%最佳買價對應的隱含波動率;交易所未公布時為 `null`。
rows[].put.ask_ivnumber|null%最佳賣價對應的隱含波動率;交易所未公布時為 `null`。
rows[].put.deltanumber|null—交易所公布的 Delta;未公布時為 `null`。
rows[].put.gammanumber|null—交易所公布的 Gamma;未公布時為 `null`。
rows[].put.veganumber|null—交易所公布的 Vega;未公布時為 `null`。
rows[].put.thetanumber|null—交易所公布的 Theta;未公布時為 `null`。
rows[].put.observed_atnumberms來源為該資料提供的時間戳記。
coverageobject—數字中納入與未納入的內容。與其他來源比較合計值之前,請先比對這一項。
coverage.included_exchangesarray—新鮮資料已被納入的來源。
coverage.included_exchanges[]string—新鮮資料已被納入的來源。
coverage.unavailablearray—無法納入的來源,各附原因。它們絕不會以 0 計入。 在產生此表所用的樣本中為空
coverage.stale_excludedarray—因最近一次更新超出新鮮視窗而被排除的資料列。 在產生此表所用的樣本中為空
coverage.field_gapsarray—交易所未公布的欄位;該交易所的這些欄位為 `null`。
coverage.field_gaps[]object—交易所未公布的欄位;該交易所的這些欄位為 `null`。
coverage.field_gaps[].exchangestring—交易所 ID(小寫)。
coverage.field_gaps[].fieldsarray—缺少的欄位名稱。
coverage.field_gaps[].fields[]string—缺少的欄位名稱。
coverage.field_gaps[].kindstring—合約類別:`inverse`(幣本位結算)或 `linear`(穩定幣結算)。
methodobject—此回應所用公式的純文字說明,每個欄位一項。
method.chainstring—`chain` 的公式說明,純文字。
method.kindstring—`kind` 的公式說明,純文字。
method.oi_usdstring—`oi_usd` 的公式說明,純文字。
method.mark_pricestring—`mark_price` 的公式說明,純文字。
method.ivstring—`iv` 的公式說明,純文字。
method.greeksstring—`greeks` 的公式說明,純文字。
method.vol_usd_24hstring—`vol_usd_24h` 的公式說明,純文字。
method.vol_premium_usd_24hstring—`vol_premium_usd_24h` 的公式說明,純文字。
metaobject—此回應的資料歷程與新鮮度。
meta.schemastring—此回應的結構描述 ID。只有在既有欄位的意義或型別改變時才會變更。
meta.sourcearray—資料採集所用的上游公開端點。
meta.source[]object—資料採集所用的上游公開端點。
meta.source[].exchangestring—交易所 ID(小寫)。
meta.source[].endpointstring—採集器讀取的來源公開端點(僅供說明資料歷程;用戶端不會直接呼叫它)。
meta.observed_atnumberms來源為該資料提供的時間戳記。
meta.received_atnumbermsCoinBoss 採集器收到資料的時間。
meta.fetched_atnumberms此回應組裝完成的時間。
meta.windowstring—數字涵蓋的時間視窗。
meta.qualitystring—FRESH、PARTIAL、STALE、BROKEN 或 UNAVAILABLE,依資料時間戳記與覆蓋範圍判定。
meta.is_staleboolean—資料已超出其新鮮視窗時為 true。
meta.cache_ttl_snumbers此回應的快取存活時間。
meta.fallbackstring—採集器或來源發生故障時,此端點回傳的內容。

產生於 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": [
      • { … 3 },
      • { … 3 }
      ],
    • "coverage": {
      • "included_exchanges": [ … 1 ],
      • "unavailable": [],
      • "stale_excluded": [],
      • "field_gaps": [ … 1 ],
      • "stale_included": [ … 1 ]
      },
    • "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": [ … 1 ],
      • "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=deribit20059 ms通過 STALE
coin=BTC&limit=5&exchange=bybit2003 ms通過 STALE
coin=BTC4001 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

即時狀態

降級檢查於 2026-11-13 03:52:54 UTCHTTP 20057 ms結構描述相符最新資料點距今 5.4h

端點回報的資料品質為 STALE

近 30 天可用率

406 次檢查中有 100% 通過

最近一次探測發現結構描述偏移
  • 回應中有但文件未記載: coverage.stale_included, coverage.stale_included[], coverage.stale_included[].exchange, coverage.stale_included[].age_s

錯誤

所有端點的失敗回應都採用同一種結構。完整清單請見錯誤頁面。 錯誤與速率限制 →

錯誤碼HTTP意義處理方式
INVALID_PARAM400缺少必填參數,或某個值不被接受。已知時,`param` 會指出是哪個參數。請勿原樣重試;請修正請求。
UNAUTHORIZED401已送出 `CB-API-KEY` 標頭,但金鑰未知或已撤銷。公開資料不需要金鑰——請移除該標頭或改用有效的金鑰。請勿原樣重試。
FORBIDDEN403此路由不屬於公開 API(內部或僅限帳戶使用)。請勿重試。
NOT_FOUND404未知的路由,或所請求的幣種/交易所/基金不存在。請勿重試;請對照目錄檢查路徑與識別碼。
RATE_LIMITED429請求數超過每分鐘上限。`Retry-After` 會指出需等待的秒數。等待 `Retry-After` 指定的時間後,再以退避策略重試。
INTERNAL500非預期的伺服器錯誤。訊息刻意保持籠統;回報時請附上 `request_id`。幾秒後重試一次;若問題持續,請附上請求 ID 回報。
UPSTREAM_FAILED503此端點背後的資料來源未及時回應。不會以過期或替代的數字代替回傳。以退避策略重試;並查看狀態頁面。
UNAVAILABLE501 / 503資料集暫時尚未就緒(快取預熱中),或此端點目前尚無合法的公開來源。稍後重試;目錄會標示出設計上即無法使用的端點。
REQUEST_FAILED200部分舊版端點會以 HTTP 200 回應但帶有 `success: false`。請務必檢查 `success`,而不只是 HTTP 狀態碼。視訊息而定;請當作失敗的請求處理。

試用

GET/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.

請求 URLhttps://www.coinboss.com/api/sd/options/chain?coin=BTC&exchange=okx
選擇一個端點並按下「送出請求」。回應內容、標頭與耗時會顯示在這裡。