Trade Analytics Dashboard
Dashboard for swap volume, fee revenue, routing performance, and user trading patterns.
📁 File Structure 24 files
📖 Documentation Preview README excerpt
trade-analytics
React dashboard for trade execution analytics — fill rates, slippage, gas efficiency, provider performance, and fee revenue.
Price: $12.99 | Store: defi-router | Product #8
Overview
trade-analytics is a production-ready React dashboard for monitoring DeFi trade execution quality. It connects to a CryptoForge DeFi Router contract via wagmi/viem for on-chain data (trade events, fee events) and supports off-chain API data for historical analysis. Built with the CryptoForge dark theme.
Features
| Feature | Description |
|---|---|
| KPI Dashboard | Total volume, avg slippage, total fees, trade count with 7-day trends |
| Volume Chart | Area chart with 7d/30d/90d toggle for daily trade volume |
| Slippage Scatter | Scatter plot of slippage vs trade size with P50/P95 reference lines |
| Provider Comparison | Bar charts + table comparing DEX providers on volume, slippage, gas, fill rate |
| Gas Analytics | Gas cost trends, efficiency score, gas cost distribution histogram |
| Fee Revenue | Daily fee tracking, cumulative total, breakdown by token (pie chart) |
| Trade History | Sortable, paginated table of all trades with full detail |
| Dark Theme | CryptoForge branded dark UI with responsive sidebar layout |
Screenshots
The dashboard renders five main views:
1. Dashboard — KPI cards + volume area chart + slippage scatter plot
2. Providers — DEX provider comparison (bar charts + detail table)
3. Gas Analytics — Gas trend, distribution histogram, efficiency score
4. Fee Revenue — Daily fees, cumulative chart, token breakdown pie chart
5. Trade History — Sortable paginated table of all trades
Installation
# Clone the product
cp -r trade-analytics/ my-trade-analytics/
cd my-trade-analytics
# Install dependencies
npm install
# Start development server
npm run dev
The dashboard opens at http://localhost:3000.
Prerequisites
- Node.js 18+
- npm 9+ or pnpm 8+
- An RPC endpoint (Alchemy, Infura, or public)
... continues with setup instructions, usage examples, and more.