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

期權歷史(小時級)

單一幣種的期權持倉量、成交量、看跌看漲比、ATM IV 或最大痛點的小時序列。歷史自 CoinBoss 開始採集時(2026-11-11)起算;更早的時段不會回補。

GET/api/sd/options/history
部分覆蓋. 此序列的採集始於 2026-11-11。在請求的範圍補齊之前,回應會回傳現有的資料點、回報 `points_count` 與 `expected_points` 的對照,並標記 `meta.quality = "PARTIAL"`。缺少的小時不做內插。
降級. 端點回報的資料品質為 STALE

請求

查詢參數

名稱型別必填預設值可用值說明
coinstring必填——幣種代號,不分大小寫(例如 `BTC`)。缺少或格式錯誤時回傳 400。 範例: BTC
metricstring必填—oi, volume, pcr, atm_iv, max_pain要回傳的序列。 範例: oi
rangestring選填7d24h, 7d, 30d, 90d回溯範圍;每小時一個資料點,最多 2160 個。
exchangestring選填allall, deribit, binance, bybit, okx, gate, coincall單一交易所,或以 `all` 取得跨交易所彙總值。

請求範例

curl -s "https://www.coinboss.com/api/sd/options/history?coin=BTC&metric=oi"

回應欄位

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

欄位型別單位說明
successboolean—請求成功時為 true。失敗時回應內容為 `{ success: false, code, error, request_id }`。
schemastring—此回應的結構描述 ID。只有在既有欄位的意義或型別改變時才會變更。
nownumberms建立回應時的伺服器時間。
coinstring—幣種代號(大寫)。
exchangestring—交易所 ID(小寫)。
metricstring—由 `metric` 參數選定的序列。
rangestring—實際套用的回溯範圍。
intervalstring—序列資料點的間隔。
points_countnumber—回傳的資料點數量。
expected_pointsnumber—請求範圍完整時應有的小時資料點數量。
history_started_atnumbermsCoinBoss 採集到的第一個小時的時間。
first_tnumberms回傳的第一個資料點的時間。
last_tnumberms回傳的最後一個資料點的時間。
pointsarray—序列資料點,由舊到新排列。
points[]object—序列資料點,由舊到新排列。
points[].tnumberms時間區間的起始時間。
points[].snapshot_atnumberms寫入該資料點的那一輪採集的時間。
points[].n_exchangesnumber—該資料點包含的交易所數量。
points[].exchangesarray—此列納入的交易所。
points[].exchanges[]string—此列納入的交易所。
points[].oi_usdnumberUSD以 USD 名義價值計的持倉量:幣數量 × 現貨指數價格。單邊計算。 可能不存在
points[].call_oi_usdnumberUSD看漲期權持倉量,以 USD 名義價值計。 可能不存在
points[].put_oi_usdnumberUSD看跌期權持倉量,以 USD 名義價值計。 可能不存在
points[].oi_coinnumbercoin持倉量,以標的幣為單位。 可能不存在
points[].index_pricenumberUSD用於換算 USD 的現貨指數價格(彙總時取各交易所自身指數價格的中位數)。 可能不存在
coverageobject—數字中納入與未納入的內容。與其他來源比較合計值之前,請先比對這一項。
coverage.included_exchangesarray—新鮮資料已被納入的來源。
coverage.included_exchanges[]string—新鮮資料已被納入的來源。
coverage.unavailablearray—無法納入的來源,各附原因。它們絕不會以 0 計入。
coverage.unavailable[]object—無法納入的來源,各附原因。它們絕不會以 0 計入。
coverage.unavailable[].exchangestring—交易所 ID(小寫)。
coverage.unavailable[].reasonstring—機器可讀的原因代碼。
coverage.unavailable[].detailstring—供人閱讀的原因說明。
coverage.stale_excludedarray—因最近一次更新超出新鮮視窗而被排除的資料列。 在產生此表所用的樣本中為空
methodobject—此回應所用公式的純文字說明,每個欄位一項。
method.pointsstring—`points` 的公式說明,純文字。
method.exchangesstring—`exchanges` 的公式說明,純文字。
method.history_depthstring—`history_depth` 的公式說明,純文字。
method.oi_usdstring—`oi_usd` 的公式說明,純文字。 可能不存在
metaobject—此回應的資料歷程與新鮮度。
meta.schemastring—此回應的結構描述 ID。只有在既有欄位的意義或型別改變時才會變更。
meta.sourcearray—資料採集所用的上游公開端點。
meta.source[]object—資料採集所用的上游公開端點。
meta.source[].exchangestring—交易所 ID(小寫)。
meta.source[].endpointstring—採集器讀取的來源公開端點(僅供說明資料歷程;用戶端不會直接呼叫它)。
meta.observed_atnull—來源為該資料提供的時間戳記。
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—採集器或來源發生故障時,此端點回傳的內容。
points[].pcr_oinumberratio看跌期權持倉量 ÷ 看漲期權持倉量,以幣為單位;看漲一側為 0 時為 `null`。 可能不存在
points[].pcr_volnumberratio看跌期權 24h 成交量 ÷ 看漲期權 24h 成交量,以幣為單位;看漲一側為 0 時為 `null`。 可能不存在
method.pcr_oistring—`pcr_oi` 的公式說明,純文字。 可能不存在
method.pcr_volstring—`pcr_vol` 的公式說明,純文字。 可能不存在
points[].atm_iv_30dnumber%以線性內插至固定 30 天期限的 ATM IV;30 天未落在兩個到期日之間時為 `null`。 可能不存在
method.atm_ivstring—`atm_iv` 的公式說明,純文字。 可能不存在
method.atm_iv_30dstring—`atm_iv_30d` 的公式說明,純文字。 可能不存在

產生於 2026-11-11 23:00 UTC,依據 3 筆真實回應。

回應範例

/api/sd/options/history?coin=BTC&metric=oi · 真實回應,擷取於 2026-11-13 04:02:53 UTC。 較長的陣列與對應表已截短顯示:points 原有 23 個項目; meta.source 原有 6 個項目; coverage.unavailable 原有 12 個項目。

  • {
    • "success": true,
    • "schema": "coinboss.sd.options/1",
    • "now": 1794542300888,
    • "coin": "BTC",
    • "exchange": "all",
    • "metric": "oi",
    • "range": "7d",
    • "interval": "1h",
    • "points_count": 23,
    • "expected_points": 168,
    • "history_started_at": 1794416400000,
    • "first_t": 1794416400000,
    • "last_t": 1794520800000,
    • "points": [
      • { … 9 },
      • { … 9 }
      ],
    • "coverage": {
      • "included_exchanges": [ … 6 ],
      • "unavailable": [ … 2 ],
      • "stale_excluded": []
      },
    • "method": {
      • "points": "one point per UTC hour bucket (t = bucket start, ms); the value is the LAST collector snapshot inside that hour (snapshot_at); hours in which the collector prod…",
      • "exchanges": "exchanges that were fresh and therefore included in that hour's figure; a change in this list between points explains level shifts in the all-exchange series",
      • "history_depth": "hourly summaries are kept for 90 days; the series starts when the collector was first deployed (history_started_at), so fewer points than the requested range ma…",
      • "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 …"
      },
    • "meta": {
      • "schema": "coinboss.sd.options/1",
      • "source": [ … 2 ],
      • "observed_at": null,
      • "received_at": 1794522484809,
      • "fetched_at": 1794542300888,
      • "window": "7d",
      • "quality": "STALE",
      • "is_stale": true,
      • "cache_ttl_s": 300,
      • "fallback": "hours without a collector snapshot are absent from the series (no interpolation); PARTIAL means fewer hourly points exist than the requested range (history shor…"
      }
    }

已驗證的樣本

除了上方的範例之外,探針還會以下列參數呼叫此端點,並在每次呼叫時檢查結構描述。

參數HTTP延遲結果
coin=ETH&range=24h&metric=pcr2002 ms通過 STALE
coin=BTC&metric=atm_iv2003 ms通過 STALE
coin=BTC4001 ms通過 回傳預期的錯誤

檢查於 2026-11-13 03:58:20 UTC

詳細資訊

身分驗證
無。公開端點。
速率限制
每個 IP 每分鐘 1200 次請求
伺服器快取
5m
邊緣微快取
10s
更新頻率
每小時一個資料點,取自該小時最後一輪採集。
時間視窗
24h / 7d / 30d / 90d,小時資料點。
資料來源
Deribit、Binance、Bybit、OKX、Gate 與 Coincall 的公開 REST 期權端點,由 CoinBoss 採集並儲存(sd_opt_latest、sd_opt_summary_hourly)。未使用任何第三方聚合商。
交易所覆蓋範圍
六家期權交易所。若某幣種在所選交易所沒有上架期權,會回傳 HTTP 200,欄位為 null、`meta.quality = "UNAVAILABLE"`,原因列於 `coverage.unavailable`。沒有公開期權資料流的交易所也會列於該處。
分頁
不分頁;資料點數量由 `range` 決定。
排序
時間升冪。
單位
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.
時間戳記
Unix epoch 毫秒(UTC),除非欄位說明另有註明
回應格式
json
穩定性
穩定版
上線時間
2026-11-11

即時狀態

降級檢查於 2026-11-13 04:02:53 UTCHTTP 2001 ms結構描述相符最新資料點距今 6h

端點回報的資料品質為 STALE

近 30 天可用率

408 次檢查中有 99.75% 通過

錯誤

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

錯誤碼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/history降級
參數

string — Coin symbol, case-insensitive (for example `BTC`). Missing or malformed values return 400.

string — Series to return.

string · 預設 7d — Look-back range; one point per hour, 2160 points at most.

string · 預設 all — One venue, or `all` for the cross-venue aggregate.

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