DeFiStream API Reference
Introduction
The DeFiStream API provides programmatic access to decoded blockchain events across multiple chains and exchanges. Use this API to:
- Track token transfers (EVM ERC20, EVM native tokens, Tron TRC20, Tron TRX, Bitcoin BTC)
- Monitor lending protocol activity (AAVE deposits, borrows, liquidations)
- Analyze DEX trading data (Uniswap swaps, liquidity events)
- Track staking flows (Lido deposits and withdrawals)
- Access exchange data from Binance and Hyperliquid (trades, OHLCV candles, open interest, funding rates, book depth, long/short ratios)
- Aggregate events into time or block buckets for volume charts and trend analysis
Coverage & Availability
The number of supported protocols and networks is expanding continuously. Currently, approximately 1 year of historical data is available for each supported network, with more being indexed rapidly.
Health Check
Endpoint: GET /health
No authentication required. Use this to verify API availability.
curl "https://api.defistream.dev/health" Response:
{"status":"healthy","service":"defistream-gateway"}