DEX funding rate aggregator for perpetual futures arbitrage signals
Aggregates funding rates across Hyperliquid and Aster, detecting convergence/divergence arbitrage opportunities in decentralized perpetual futures markets.
Perpetual DEXs (like Hyperliquid and Aster) often have vastly different funding rates for the same asset. As a heavy user of these platforms, I needed a way to visualize funding rate trends historically to identify mean-reversion and basis trading opportunities. Existing tools didn't cover the long-tail DEXs I traded on. So I built it myself.
- Continually polls rates from Hyperliquid and Aster API endpoints.
- Normalizes the data structures across exchanges.
- Ingests into TimescaleDB optimized for time-series operations.
- Serves data via FastAPI to a dashboard, flagging extreme divergences.
git clone https://github.com/Kowalskk/funding-radar.git
cd funding-radar
cp .env.example .env
docker-compose up -d- Time-series DBs change the game. Writing to standard Postgres was fine at first, but switching to TimescaleDB (hypertable) drastically improved query performance on historical rollups.
- DEX APIs fail silently. Building robust retry logic and exponential backoffs was critical to maintain data integrity when scraping long-tail decentralised exchange endpoints.
MIT