Client libraries
Client libraries
Official SDKs cover every /v1 endpoint, read the key from CRYPTOETF_API_KEY and raise a typed error with the HTTP status, the error code and Retry-After. Both have no dependencies. Source: zerosix-studio/cryptoetf-sdk.
TypeScript / JavaScript — Node 18+, Deno, Bun and browsers · cryptoetf on npm
npm i cryptoetfimport { CryptoETF } from "cryptoetf";
const etf = new CryptoETF(); // reads CRYPTOETF_API_KEY
const { days } = await etf.flows.asset("btc"); // oldest → newestPython — 3.9+ · cryptoetf on PyPI
pip install cryptoetffrom cryptoetf import CryptoETF
etf = CryptoETF() # reads CRYPTOETF_API_KEY
print(etf.flows.asset("btc")["days"][-1]) # newest day