Trading deskPro
Work screens / Trading desk: a brokerage trade screen with fictional symbols. A watchlist with prices, day change and the account value; the open symbol's live price, ticking with the clock (Pause holds it), and its chart over 1D, 1W, 1M, 3M or 1Y; positions with return, open orders with Cancel and today's fills. The order ticket switches Buy / Sell and Market / Limit, steps shares and the limit price, shows the estimate and refuses an order the cash or the shares cannot cover.
oxyn add trading-desk- Individual
- Trade
Positions
| Symbol | Shares | Avg cost | Value | Return |
|---|---|---|---|---|
| 40 | $159.10 | $7,457 | +17.17% | |
| 120 | $84.02 | $11,058 | +9.67% | |
| 75 | $63.55 | $4,590 | -3.69% | |
| 12 | $248.70 | $3,277 | +9.81% | |
| 30 | $124.40 | $3,572 | -4.29% |
Open orders
- Buy25 NVLA · $89.502026-11-12 09:41
- Sell4 QLMR · $284.002026-11-11 15:12
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Work screens / Trading desk: a brokerage trade screen with fictional symbols.
- A watchlist with prices, day change and the account value; the open symbol's live price, ticking with the clock (Pause holds it), and its chart over 1D, 1W, 1M, 3M or 1Y; positions with return, open orders with Cancel and today's fills.
- The order ticket switches Buy / Sell and Market / Limit, steps shares and the limit price, shows the estimate and refuses an order the cash or the shares cannot cover.
When not to use
- Mail folders with counts and labels beside a message list: use Inbox sidebar instead.
- The app frame: use App shell instead.
- An assistant docked beside a page: use AI side panel instead.
Installation
Trading desk is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add trading-deskUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Sample
Sample data, the page as an inset card beside the sidebar.
- Individual
- Trade
Positions
| Symbol | Shares | Avg cost | Value | Return |
|---|---|---|---|---|
| 40 | $159.10 | $7,457 | +17.17% | |
| 120 | $84.02 | $11,058 | +9.67% | |
| 75 | $63.55 | $4,590 | -3.69% | |
| 12 | $248.70 | $3,277 | +9.81% | |
| 30 | $124.40 | $3,572 | -4.29% |
Open orders
- Buy25 NVLA · $89.502026-11-12 09:41
- Sell4 QLMR · $284.002026-11-11 15:12
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Flat
The same view with the page edge to edge.
- Individual
- Trade
Positions
| Symbol | Shares | Avg cost | Value | Return |
|---|---|---|---|---|
| 40 | $159.10 | $7,457 | +17.17% | |
| 120 | $84.02 | $11,058 | +9.67% | |
| 75 | $63.55 | $4,590 | -3.69% | |
| 12 | $248.70 | $3,277 | +9.81% | |
| 30 | $124.40 | $3,572 | -4.29% |
Open orders
- Buy25 NVLA · $89.502026-11-12 09:41
- Sell4 QLMR · $284.002026-11-11 15:12
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Loading
Skeletons where the data lands.
- Individual
- Trade
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Empty
A first run: what will show here and how to start.
- Individual
- Trade
Positions
No positions yet
Fund the account, then buy your first shares from the ticket.
Open orders
No open orders
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Limit
The ticket on Limit with a price below the market.
- Individual
- Trade
Positions
| Symbol | Shares | Avg cost | Value | Return |
|---|---|---|---|---|
| 40 | $159.10 | $7,457 | +17.17% | |
| 120 | $84.02 | $11,058 | +9.67% | |
| 75 | $63.55 | $4,590 | -3.69% | |
| 12 | $248.70 | $3,277 | +9.81% | |
| 30 | $124.40 | $3,572 | -4.29% |
Open orders
- Buy25 NVLA · $89.502026-11-12 09:41
- Sell4 QLMR · $284.002026-11-11 15:12
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Placed
A market buy filled, listed under Filled today.
- Individual
- Trade
Positions
| Symbol | Shares | Avg cost | Value | Return |
|---|---|---|---|---|
| 50 | $164.56 | $9,321 | +13.28% | |
| 120 | $84.02 | $11,058 | +9.67% | |
| 75 | $63.55 | $4,590 | -3.69% | |
| 12 | $248.70 | $3,277 | +9.81% | |
| 30 | $124.40 | $3,572 | -4.29% |
Open orders
- Buy25 NVLA · $89.502026-11-12 09:41
- Sell4 QLMR · $284.002026-11-11 15:12
Filled today
- Bought 10 KSTR2026-11-12 14:05
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Closed
The market closed: prices still, market orders queue.
- Individual
- Trade
The market is closed. Market orders queue for the open on 2026-11-13 09:30 ET.
Positions
| Symbol | Shares | Avg cost | Value | Return |
|---|---|---|---|---|
| 40 | $159.10 | $7,457 | +17.17% | |
| 120 | $84.02 | $11,058 | +9.67% | |
| 75 | $63.55 | $4,590 | -3.69% | |
| 12 | $248.70 | $3,277 | +9.81% | |
| 30 | $124.40 | $3,572 | -4.29% |
Open orders
- Buy25 NVLA · $89.502026-11-12 09:41
- Sell4 QLMR · $284.002026-11-11 15:12
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
TradingDeskScreen
| Prop | Type | Default | Description |
|---|---|---|---|
layout | String | "inset" | `inset` or `flat`. |
state | String | "sample" | A state key. |
now | ClockMs | Default::default() | The host clock (the live price ticks every 1.5 s). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Watchlist, range, positions, orders, then the ticket |
| Enter | Place the order from the ticket |
Accessibility
- The price is a status region; gains and losses carry a sign as well as a colour.
- Buy / Sell and Market / Limit are radio groups; a refusal is an alert.
Responsive behaviour
- Authored on the 1440 × 900 canvas: a 248 px sidebar, the page as an inset card and, where the screen has one, a 328 px right card in the gutter.
- Under 960 px the sidebar becomes a drawer from the header's menu button and the right card hides.
- Under 640 px header actions turn into icon buttons, grids drop to one column and labels ellipsise.
Notes for AI
- Import
TradingDeskScreenfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
TradingDeskElinoxyn_gpui. - It reads a clock (
now) for live timers; pass one clock for the whole page rather than one per component. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.