Trading terminalPro
Live price, candlesticks, a watchlist with sparklines and an order ticket.
What's inside
- Live last price
- Candlesticks with MA 20 / 50
- Watchlist with sparklines
- Order ticket with fills
When to use
- Trading, crypto and portfolio products.
When not to use
- Long-term investing dashboards where live prices aren't needed.
Installation
Usage
Import it from @/components/blocks/trading-terminal after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { TradingTerminal } from "@/components/blocks/trading-terminal";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<TradingTerminal />
</main>
);
}API reference
TradingTerminal
Candles with moving averages, a watchlist with sparklines, a live last price and an order ticket that fills. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| Tab | Move through watchlist, range control and order ticket |
| ↑or↓ | Change quantity in the ticket |
| EnterorSpace | Place the order from the focused button |
Accessibility
- Buy and sell are a labelled toggle with aria-pressed.
- Prices are text with up and down signs, not only colors.
Motion
- The last price ticks every 2.2 seconds; digits roll.
- Fills slide into the order list.
Responsive behavior
- The watchlist moves under the chart below 1024px.
Performance
- One interval drives the live price; it's cleared on unmount.
- Sample data is plain arrays at the top of the file. Replace them with your API data and keep the shapes.
Notes for AI
- Replace the interval with your WebSocket feed and keep the candle shape.
This page as Markdown, for assistants and coding agents:
/blocks/trading-terminal/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt