現貨 ETF 歷史
單一資產(已覆蓋基金加總)或單一基金的持有量、淨資產或淨流量日線序列。每個資料點都會註明包含多少檔基金。
/api/sd/etf/history請求
查詢參數
| 名稱 | 型別 | 必填 | 預設值 | 可用值 | 說明 |
|---|---|---|---|---|---|
| asset | string | 必填 | — | BTC, ETH, SOL, HYPE | 標的資產,不分大小寫。也接受 `coin` 作為別名。 範例: BTC |
| metric | string | 必填 | — | holdings, aum, flow | 要回傳的序列:持有量(幣)、淨資產(USD)或淨流量(USD)。 範例: flow |
| range | string | 選填 | 30d | 30d, 90d, all | 回溯範圍。 |
| ticker | string | 選填 | — | — | 該資產已登錄的基金代號(例如 `ARKB`)。預設:所有已涵蓋基金的加總。未登錄的代號回傳 404;已登錄但無法採集的基金回傳 200,且 `series: null`。 |
請求範例
curl -s "https://www.coinboss.com/api/sd/etf/history?asset=BTC&metric=flow"回應欄位
欄位表由真實回應產生,因此列出的正是端點實際回傳的內容。路徑中的 a[] 代表陣列元素,{*} 代表以動態名稱(例如幣種或交易所)為鍵的物件。
| 欄位 | 型別 | 單位 | 說明 |
|---|---|---|---|
| success | boolean | — | 請求成功時為 true。失敗時回應內容為 `{ success: false, code, error, request_id }`。 |
| schema | string | — | 此回應的結構描述 ID。只有在既有欄位的意義或型別改變時才會變更。 |
| now | number | ms | 建立回應時的伺服器時間。 |
| asset | string | — | 標的資產。 |
| metric | string | — | 由 `metric` 參數選定的序列。 |
| range | string | — | 實際套用的回溯範圍。 |
| ticker | string|null | — | 基金代號。 |
| unit | string | — | 序列數值的單位:`coin` 或 `USD`。 |
| funds_total | number | — | 該資產已登錄的基金數。 |
| funds_in_series | array | — | 計入該序列的基金。 |
| funds_in_series[] | string | — | 計入該序列的基金。 |
| first_date_by_fund | object | — | 各基金最早可用的日期(鍵為基金代號)。 動態鍵: ARKB,EZBC |
| first_date_by_fund.{*} | string | — | 各基金最早可用的日期(鍵為基金代號)。 |
| points | number | — | 序列資料點,由舊到新排列。 |
| series | array | — | 每日資料點,由舊到新排列;基金無法採集時為 `null`。 |
| series[] | object | — | 每日資料點,由舊到新排列;基金無法採集時為 `null`。 |
| series[].date | string | — | 該資料點的發行商資料基準日。 |
| series[].value | number | — | 所選指標的數值,為該日有資料的基金加總。 |
| series[].funds | number | — | 每檔已登錄的基金一列,包含無法採集的基金。 可能不存在 |
| 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[].issuer | string | — | 基金發行商 ID。 |
| coverage.unavailable[].reason | string | — | 機器可讀的原因代碼。 |
| coverage.unavailable[].detail | string | — | 供人閱讀的原因說明。 |
| coverage.stale_excluded | array | — | 因最近一次更新超出新鮮視窗而被排除的資料列。 在產生此表所用的樣本中為空 |
| method | object | — | 此回應所用公式的純文字說明,每個欄位一項。 |
| method.value | string | — | `value` 的公式說明,純文字。 |
| method.funds | string | — | `funds` 的公式說明,純文字。 |
| method.multi_day | string | — | `multi_day` 的公式說明,純文字。 |
| method.history_start | string | — | `history_start` 的公式說明,純文字。 |
| 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/etf/history?asset=BTC&metric=flow · 真實回應,擷取於 2026-11-13 04:02:51 UTC。 較長的陣列與對應表已截短顯示:series 原有 21 個項目; meta.source 原有 5 個項目; first_date_by_fund 原有 5 個項目; coverage.unavailable 原有 7 個項目。
- "success"true
- "schema""coinboss.sd.etf/1"
- "now"1794542297946
- "asset""BTC"
- "metric""flow"
- "range""30d"
- "ticker"null
- "unit""USD"
- "funds_total"12
- "funds_in_series"
- "ARKB"
- "BITB"
- "BTCO"
- "EZBC"
- "HODL"
- "first_date_by_fund"
- "ARKB""2026-10-14"
- "BITB""2026-11-11"
- "points"21
- "series"
- "coverage"
- "included_exchanges"
- "unavailable"
- "stale_excluded"
- "method"
- "value""own method, per fund between two consecutive issuer as-of rows: shares_x_nav = (shares_out[t] - shares_out[t-1]) x NAV[t], dated t; aum_nav_ratio_t1 (issuer pub…"
- "funds""number of funds contributing to that date; the aggregate is only comparable across dates with the same contributing funds (history starts on different dates per…"
- "multi_day""true when a contributing flow spans more than one trading day because the issuer history has no row for the day(s) in between"
- "history_start""issuer-provided official history is back-filled where it exists (21Shares valuation history, Franklin price history); other issuers start on the first collectio…"
- "meta"
- "schema""coinboss.sd.etf/1"
- "source"
- "observed_at"1794441600000
- "received_at"1794537318126
- "fetched_at"1794542297946
- "window""30d"
- "quality""PARTIAL"
- "is_stale"false
- "cache_ttl_s"300
- "fallback""collector failure keeps the last issuer row with its real as_of_date; a fund whose as_of_date is more than 1 trading day behind the expected as-of is flagged is…"
已驗證的樣本
除了上方的範例之外,探針還會以下列參數呼叫此端點,並在每次呼叫時檢查結構描述。
| 參數 | HTTP | 延遲 | 結果 |
|---|---|---|---|
| asset=ETH&range=90d&metric=aum | 200 | 5 ms | 通過 PARTIAL |
| asset=BTC&metric=holdings&ticker=ARKB | 200 | 4 ms | 通過 FRESH |
| asset=BTC | 400 | 1 ms | 通過 回傳預期的錯誤 |
檢查於 2026-11-13 03:58:17 UTC
詳細資訊
- 身分驗證
- 無。公開端點。
- 速率限制
- 每個 IP 每分鐘 1200 次請求
- 伺服器快取
- 5m
- 邊緣微快取
- 10s
- 更新頻率
- 採集器每天執行三輪(02:35、10:35、16:35 UTC)。發行商在每個美國交易日公布一次,通常在交易日當天傍晚。
- 時間視窗
- 30d / 90d / all,每個發行商資料基準日一個資料點。
- 資料來源
- 基金發行商自行公布的每日揭露資料(持有量、淨資產、流通份額、NAV),由 CoinBoss 採集並儲存(sd_etf_fund_daily)。淨流量由 CoinBoss 依這些揭露資料計算。
- 交易所覆蓋範圍
- 僅涵蓋發行商有公布機器可讀每日資料的基金。`funds_total` 與 `funds_covered` 說明其數量;每一檔未涵蓋的基金都會列於 `coverage.unavailable`,並附原因。合計值僅為已涵蓋基金的加總(`totals_scope = "covered_funds_only"`),並非整個市場。
- 分頁
- 不分頁;資料點數量由 `range` 決定。
- 排序
- 日期升冪。
- 單位
- Amounts in USD; holdings in units of the underlying coin; NAV and market price in USD per share; `premium_pct` and `fee_pct` in percent.
- 計算方法
- A point sums the funds that have a row on that date; `funds` is that count. Points with different `funds` are not directly comparable. Flow is bucketed by its booking date.
- 時間戳記
- Unix epoch 毫秒(UTC),除非欄位說明另有註明
- 回應格式
- json
- 穩定性
- 穩定版
- 上線時間
- 2026-11-11
即時狀態
端點回報的資料品質為 PARTIAL — 部分覆蓋:數家大型發行商並未提供可由伺服器採集的公開機器可讀揭露資料。其基金會列為未提供,合計值僅涵蓋其餘基金。與其他來源比較合計值之前,請先比對 `funds_covered` / `funds_total`。
近 30 天可用率
408 次檢查中有 100% 通過
錯誤
所有端點的失敗回應都採用同一種結構。完整清單請見錯誤頁面。 錯誤與速率限制 →
| 錯誤碼 | 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/etf/history部分可用string — Underlying asset, case-insensitive. `coin` is accepted as an alias.
string — Series to return: holdings (coin), net assets (USD) or net flow (USD).
string · 預設 30d — Look-back range.
string — Fund ticker registered for the asset (for example `ARKB`). Default: all covered funds summed. An unregistered ticker returns 404; a registered fund that cannot be collected returns 200 with `series: null`.
https://www.coinboss.com/api/sd/etf/history?asset=BTC&metric=flow此分類的其他端點
- 現貨 ETF 基金 /api/sd/etf/funds
- 現貨 ETF 歷史 /api/sd/etf/history
- 現貨 ETF 總覽(發行商揭露) /api/sd/etf/overview
- 各基金的現貨 ETF 每日淨流量 /api/etf/detail
- 現貨 ETF 每日淨流量歷史 /api/etf/flows
- 單一 ETF 詳情 /api/etf/fund/:ticker
- ETF 基金清單 /api/etf/funds
- 各基金的 ETF 持幣量 /api/etf/holdings
- 單一發行商的 ETF/信託產品 /api/etf/issuer
- ETF 總覽 /api/etf/overview
- Grayscale 信託溢價/折價 /api/grayscale/premium
- 期貨型 ETF 成交量 /api/indicators/futures-etf-volumes