
MetaTrader
Live markets, charts and a trader leaderboard.
MetaTrader is a React market terminal rather than an exchange. It streams crypto prices from Binance over WebSocket, draws candles with lightweight-charts, and wraps the data in a full product: a live market board, a charting detail view, top-performer leaderboards, trader profiles with balance and PnL history, and a dark/light theme. It runs live on Vercel.
metatrader-client-mniw.vercel.app ↗ github.com/nsvoriginals/metatrader-client ↗
- Role
- Frontend, data layer and UX
- Stack
- React 19 · Vite · Tailwind
- Data
- Binance WebSocket · TanStack Query
- Year
- 2026 · live on Vercel
- React 19
- Vite
- Tailwind
- React Router 7
- TanStack Query
- lightweight-charts
- Recharts
- Axios
- Binance WS
- lucide-react
- Vercel
Different from CEX
CEX is the venue: it owns the order book and decides what matches. MetaTrader is the client side of that experience: it consumes a public market feed, keeps it on screen, and gives a trader the context to act. That difference shaped the build — there is no matching logic here, only streaming ingestion, derived chart data, and a lot of attention to loading, empty and error states.
The live market
The market page opens one combined Binance stream for twelve pairs and folds every update into a single ticker map. Each MarketCard gets its ticker as a prop and renders price, 24h change, volume and the high/low range. The detail page switches to a single-symbol client: useKlines seeds a hundred historical one-minute candles and then appends live updates, useAggTrades counts buy and sell flow, and useTicker drives the price header.
- One connection per view. A combined multi-stream socket for the board, a single-symbol client for the chart.
- Server state is not component state. TanStack Query handles fetching, caching and refetching for the REST-backed screens.
- Honest loading states. Skeletons and empty states are part of the page, not an afterthought.
- Responsive by default. The board and chart reflow from desktop to phone without a separate mobile build.
Charts and stats
Opening a symbol goes to /trade/:symbol, where the page composes the candlestick chart with a header, live stats and the order context around it. The chart is drawn with TradingView's lightweight-charts so it stays smooth while the feed updates; Recharts covers the smaller breakdown and portfolio visuals where a full financial chart would be overkill.

Live market. Streaming prices and sparklines across the board, fed by one WebSocket.

Performers. Leaderboards, stat cards and a top-champions rail built from the trader API.

Trader profile. Balance, PnL, stats and the trade history table in one view.
Performers and profiles
The social half of the product is built from the same primitives as the market half. PerformersHero, PerformersGrid, PerformerCard and TopChampions compose a leaderboard from useTopPerformers; the profile page combines BalanceCard, PnLCard, StatsCard and TradeRow behind useProfile and useOrder. Every screen has a skeleton path, so a slow network never leaves a blank panel.
- Composable cards. Small presentational components, one hook per data source.
- Router-driven state. Symbols and pages live in the URL, so links and refreshes land in the right place.
- Theme aware. A ThemeContext toggles Tailwind's dark class across charts, cards and tables.
- Deployed like a product. Vite build with SPA routing on Vercel, not a local demo.