Create an interactive analytics dashboard for crypto currency monitoring aimed at live…
- User
Create an interactive analytics dashboard for crypto currency monitoring aimed at live monitoring the crypto market using ccxt with binance api.. Include KPI summary cards with trend indicators, a mix of line, bar, and donut charts with hover tooltips and smooth transitions, a sortable and filterable data table, and date-range and segment filters that update every view live. Use a clean, modern visual style with clear layout hierarchy and a dark mode toggle, generate realistic sample data so every chart feels alive, and make it fully responsive.
Assistant
Now the shared UI primitives and KPI cards.
Built a live crypto analytics terminal:
Data layer (
src/lib/)exchange.ts— ccxt-style client (fetchTickers,fetchOHLCV, unifiedBTC/USDTsymbols, timeframe map) hitting Binance's public REST API, with a deterministic simulated feed fallback if Binance is unreachable/CORS-blocked, so charts always look alive.useMarketData.ts— polls tickers every 20s, klines every 30s, plus 2.2s micro-tick random walk that updates prices, caps, volumes and sparklines everywhere at once.markets.ts— 24 curated USDT pairs tagged into 6 segments with colors and supply for market-cap math.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.