Skip to content

ETF Service

Igor Sazonov edited this page Jul 12, 2026 · 1 revision

The ETFService provides access to Coinglass ETF data, including Bitcoin and Ethereum ETF flows, net assets, and Grayscale holdings. It is accessed via client.ETF.

Initialization

client := coinglass.NewClient("YOUR_API_KEY")
ctx := context.Background()

Bitcoin ETFs

Get Bitcoin ETF List

btcEtfs, err := client.ETF.BitcoinList(ctx)
for _, etf := range btcEtfs {
    fmt.Printf("%s: %.2f holdings\n", etf.Ticker, etf.Holdings)
}

Bitcoin ETF Flow History

flows, err := client.ETF.BitcoinFlowHistory(ctx, &coinglass.ETFFlowParams{
    Interval: "1w",
    Limit:    coinglass.IntPtr(10),
})

Bitcoin ETF Net Assets History

assets, err := client.ETF.BitcoinNetAssetsHistory(ctx, &coinglass.ETFNetAssetsParams{
    Interval: "1d",
})

Ethereum ETFs

Get Ethereum ETF List

ethEtfs, err := client.ETF.EthereumList(ctx)

Ethereum ETF Flow History

ethFlows, err := client.ETF.EthereumFlowHistory(ctx, &coinglass.ETFFlowParams{
    Interval: "1w",
})

Grayscale Holdings

Get Grayscale Holdings List

holdings, err := client.ETF.GrayscaleHoldings(ctx)
for _, h := range holdings {
    fmt.Printf("%s (%s): %.2f\n", h.Symbol, h.Asset, h.Holdings)
}

Clone this wiki locally