Skip to main content

CryptoETF — Python SDK for spot crypto ETF flows

PyPI

The official client for the CryptoETF API: daily net flows of every US-listed spot crypto ETF, fund by fund, plus fund AUM, the Wall Street Money Index (WSMI) and the CEFI ETF flow index, and coin prices. Data by cryptoetf.today.

Sixteen assets: BTC, ETH, SOL, XRP, HYPE, DOGE, LINK, AVAX, HBAR, LTC, BNB, DOT, SUI, NEAR, TRX, ZEC. Zero dependencies (standard library only), typed, Python 3.9+.

Install

pip install cryptoetf

Get an API key

Sign in to the developer console and create a key under API keys. It is free.

Quick start

from cryptoetf import CryptoETF

etf = CryptoETF(api_key="...")  # or set CRYPTOETF_API_KEY

# Latest daily net flow for every asset, US$ millions
for a in etf.flows.summary()["assets"]:
    print(a["symbol"], a["date"], a["netFlowUsdM"])

# Bitcoin ETFs fund by fund
btc = etf.flows.funds("btc")
last_day = btc["days"][-1]
print([(f["ticker"], f["netFlowUsdM"]) for f in last_day["funds"]])

Responses are plain dicts with the same field names as the API, so they drop straight into pandas:

import pandas as pd

df = pd.DataFrame(etf.flows.asset("eth")["days"])

Methods

Method Endpoint Returns
flows.summary() GET /v1/flows/summary Latest net flow per asset
flows.asset(asset) GET /v1/flows/{asset} Daily net flows of one asset
flows.funds(asset) GET /v1/flows/{asset}/funds Daily net flows of one asset, per fund
funds(asset=None) GET /v1/funds Fund directory with AUM, fees, coins held
wsmi() GET /v1/index/wsmi Wall Street Money Index (0–100): ETFs 50%, stablecoins 30%, tokenized assets 20%, with channel parts and history
cefi() GET /v1/index/cefi CEFI — Crypto ETF Flow Index, the ETF channel of WSMI (0–100), and its history
tickers() GET /v1/tickers Tracked assets
prices() GET /v1/prices Spot prices of the 16 coins
weekly() GET /v1/analytics/weekly Seven-day totals per asset

Paid datasets

These need a paid API plan; a free key gets 403 with code == "plan_required".

Method Endpoint Returns
holdings(asset=None) GET /v1/holdings Coins held by the ETFs, share of circulating supply, per fund, with daily history
metrics.cost_basis(asset=None) GET /v1/metrics/cost-basis Estimated average entry price of holders, unrealised P&L, streak above/below entry
metrics.issuer_revenue(asset=None) GET /v1/metrics/issuer-revenue Estimated sponsor fee revenue per fund, issuer and market
metrics.staking(asset=None) GET /v1/metrics/staking Staking status, share staked, disclosed yields and providers per fund
metrics.vs_miners() GET /v1/metrics/vs-miners Bitcoin ETF net creations in BTC against newly mined bitcoin
fund_snapshots(ticker) GET /v1/funds/{ticker}/snapshots Daily shares outstanding, NAV, net assets, coins and premium of one fund
etf_prices(ticker) GET /v1/etf-prices/{ticker} Daily OHLCV of one ETF, regular session
filings.list() GET /v1/filings Crypto ETF applications at the SEC with stage and dates
filings.get(slug) GET /v1/filings/{slug} One application with its document history
institutions.overview(period=None) GET /v1/institutions 13F institutional holders for a quarter
institutions.fund(ticker, period=None, limit=None) GET /v1/institutions/funds/{ticker} Largest 13F holders of one fund

Stablecoins and tokenized RWA

Amounts are whole US dollars (…Usd), not millions. A free key gets the current snapshot, 30 days of history and the top 25 products; methods marked paid need a paid plan. List filters (segment, issuer, chain, asset) take comma-separated ids.

Method Endpoint Returns
stablecoins.index() GET /v1/index/stablecoins Stablecoin index (0–100), the WSMI channel, with history
stablecoins.list(chain=None) GET /v1/stablecoins Every stablecoin: circulating supply, USD value, 7/30-day flows, totals per chain
stablecoins.history(chain=None, id=None) GET /v1/stablecoins/history Daily USD value (Free: 30 days; paid: from 2017)
stablecoins.get(id) GET /v1/stablecoins/{id} One coin: contracts on every chain, daily circulating
stablecoins.frozen() GET /v1/stablecoins/frozen Frozen balances per coin contract
stablecoins.frozen_addresses() GET /v1/stablecoins/frozen/addresses Paid. Largest frozen addresses and frozen history
rwa.index() GET /v1/index/rwa Tokenized asset index (0–100), the WSMI channel, with history
rwa.overview() GET /v1/rwa/overview Market by segment, totals, top issuers, movers
rwa.flows(days=None) GET /v1/rwa/flows Daily net flow by segment (paid: 120 days, by issuer, top products)
rwa.flow_history() GET /v1/rwa/flows/history Paid. Daily net flow over the whole history
rwa.issuers(segment=, chain=, asset=) GET /v1/rwa/issuers Issuers with value, flows, holders, segments
rwa.chains(segment=, issuer=, asset=) GET /v1/rwa/chains Chains with tokenized assets
rwa.products(segment=, …, limit=, offset=) GET /v1/rwa/products Products, largest first (paid: all, paged, with price and APY)
rwa.product(slug, days=None) GET /v1/rwa/products/{slug} Paid. One product with contracts and daily history
rwa.assets(segment=, …, limit=, offset=) GET /v1/rwa/assets Paid. Underlyings summed over issuers and chains
rwa.tokens(segment=, …, address=, limit=, offset=) GET /v1/rwa/tokens Paid. Token contracts
rwa.holders(chain, address, limit=None) GET /v1/rwa/tokens/{chain}/{address}/holders Paid. Largest holders of one contract
rwa.premiums() GET /v1/rwa/premiums Paid. Tokenized stocks against the share price
rwa.weekends() GET /v1/rwa/weekends Paid. Tokenized stocks over weekends
rwa.venues() GET /v1/rwa/venues Paid. Where tokenized assets are held

asset is a code such as btc, eth, sol, hype or a full name such as bitcoin. All values are net US$ millions: positive = inflow, negative = outflow. Full field reference: docs.cryptoetf.today.

Errors and limits

Every failed call raises CryptoETFError with status, an optional code and, on HTTP 429, retry_after in seconds:

from cryptoetf import CryptoETFError

try:
    etf.prices()
except CryptoETFError as e:
    if e.status == 429:
        print(f"rate limited, retry in {e.retry_after}s")
  • Rate limit: 120 requests per minute per key. The latest limit headers are available as etf.rate_limit.
  • History: the free tier covers the last 30 days. Full history will be available on a paid plan.
  • Freshness: a trading day appears the next morning (UTC), before the US open. The newest day can be revised once later that day. SUI funds arrive a day later.

Options

CryptoETF(
    api_key="...",          # default: CRYPTOETF_API_KEY
    timeout=15.0,           # seconds per request
    base_url="https://api.cryptoetf.today/v1",
)

Not investment advice. MIT licensed.

Metadata

Release files for cryptoetf 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cryptoetf 1.2.0
File Size Uploaded Provenance Actions
cryptoetf-1.2.0.tar.gz 13.4 kB With provenance Details for cryptoetf-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cryptoetf 1.2.0
File Interpreter ABI Platform Actions
cryptoetf-1.2.0-py3-none-any.whl Python 3 none any Details for cryptoetf-1.2.0-py3-none-any.whl

Total release size: 27.0 kB

Release files / cryptoetf-1.2.0.tar.gz

Download URL cryptoetf-1.2.0.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b5a2ef46d1cc1b3a371dfeb5fe2cb99b9673ac5c71bc51f8a862cc414f77a077
BLAKE2b-256 checksum
How to use checksums
dea9820588ed94792fd56c6b77dca132ca48b45c1e656dc56add10100192b309
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / cryptoetf-1.2.0-py3-none-any.whl

Download URL cryptoetf-1.2.0-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd5eb2c2f7f06561d0ff51f7d833f9bf85f244b05706a051134be3ae2b410f0f
BLAKE2b-256 checksum
How to use checksums
9d194534a07f6075fe2ebe78be4237cde4e47dfad09da4f772367f891ff76f92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for cryptoetf 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cryptoetf-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page