Trading Pages

2 variants

Complete trading screens for exchanges and wallets, with live charts, depth, an order ticket, and account panels.

Trading terminal

A live trading terminal where one feed drives a candlestick chart, order book, trade tape, order ticket, and open orders that fill as the market moves.

ETH/USDC

Spot

2,412.4

2.41%
24h low 2,351.224h range24h high 2,448.9
24h volume
184,220 ETH
24h value
444.4M USDC
Candle
12:04
O
2,412.8
H
2,413.0
L
2,412.3
C
2,412.4
Vol
104.6
−0.02%
Price USDCSize ETHCumulative total ETH
1.29234.164
0.77432.872
3.06632.098
3.84629.032
2.07625.187
2.43723.110
15.53220.673
2.7065.140
2.4352.435
Reference price: 2,412.4Spread 0.1 · 0.004%
Price USDCSize ETHCumulative total ETH
0.3570.357
1.4251.782
1.0142.796
4.3407.137
0.0907.227
0.9898.216
4.48512.701
2.17514.876
0.29915.175

Hover a level to see the cost of filling up to it

USDC
ETH
Share of available USDC
Available
12,480.50 USDC
Fee
0.10%
Total
0.00 USDC
You receive
≈ 0.000 ETH

Assets

Account value

25,419.84 USDC

  • ETH

    0.400 in orders

    4.618

    43.8%

  • USDC

    1,798.88 in orders

    14,279.38

    56.2%

TimeSideTypePriceAmountTotalCancel
11:52:08BuyLimit2,398.500.750 ETH1,798.88 USDC
11:47:51SellLimit2,436.000.400 ETH974.40 USDC

Simulated market and account for demonstration. Not market data, and no real orders are placed.

"use client";

import { TradingTerminal } from "@/components/premium/trading-pages";

export function TradingTerminalPreview() {
  return <TradingTerminal />;
}

Install

$ bunx --bun shadcn add @beui-pro/trading-terminal

API Reference

Every prop is optional unless marked required. Data, copy, and colors default to the sample content.

TradingTerminal7 props
  • pair

    Market pair for the book, chart, and ticket; also seeds the simulated feed.

    OrderBookPair
  • balances

    Starting available and locked balances per asset, read once on mount.

    TradingBalances
  • orders

    Starting open and past orders, read once on mount.

    readonly TradingOrder[]
  • labels

    Text overrides merged over the default English labels.

    Partial<TradingLabels>
  • live

    Simulate market data.

    boolean

    Default true

  • onPlaceOrder

    Called before the simulated fill; return a promise to hold the button.

    ((request: PlaceOrderRequest) => unknown)
  • className

    Classes merged onto the root element.

    string
Types4 types

The object types these props take, field by field.

OrderBookPair9 fields
  • baseRequired

    Base asset symbol, such as ETH; sizes are in this unit.

    string
  • quoteRequired

    Quote asset symbol, such as USDC; prices are in this unit.

    string
  • tickSizeRequired

    Smallest price step of the raw book.

    number
  • priceRequired

    Starting best ask, in quote units.

    number
  • change24hRequired

    24h change in percent, shown under the pair name.

    number
  • high24hRequired

    Highest price in the last 24 hours, in quote units.

    number
  • low24hRequired

    Lowest price in the last 24 hours, in quote units.

    number
  • volume24hRequired

    24h volume in base units.

    number
  • sizeDecimalsRequired

    Fraction digits for base-unit sizes.

    number
TradingOrder7 fields
  • idRequired

    Unique order id, used to cancel it.

    string
  • sideRequired

    Whether the order buys or sells the base asset.

    TradeSide
  • typeRequired

    Limit orders rest until the market reaches them; market orders fill at once.

    OrderType
  • priceRequired

    Limit price, or the fill price for market orders, in the quote asset.

    number
  • amountRequired

    Order size in the base asset.

    number
  • statusRequired

    Open orders appear under Open orders; the rest go to History.

    "open" | "filled" | "cancelled"
  • timeRequired

    Display time, such as "12:04:31".

    string
PlaceOrderRequest4 fields
  • sideRequired
    TradeSide
  • typeRequired
    OrderType
  • priceRequired

    Limit price, or the execution price for market orders.

    number
  • amountRequired
    number
TradingLabels30 fields
  • chartRequired

    Label for the chart panel; not rendered by the current layout.

    string
  • bookRequired

    Order book tab label.

    string
  • tradesRequired

    Recent trades tab label.

    string
  • buyRequired

    Buy side label in the ticket, button, and order rows.

    string
  • sellRequired

    Sell side label in the ticket, button, and order rows.

    string
  • limitRequired

    Limit order type label.

    string
  • marketRequired

    Market order type label.

    string
  • priceRequired

    Price field label and price column header.

    string
  • amountRequired

    Amount field label and amount column header.

    string
  • totalRequired

    Order total label in the ticket and orders table.

    string
  • availableRequired

    Label for available balance in the ticket and balances table.

    string
  • marketPriceRequired

    Text shown in the locked price field for market orders.

    string
  • openOrdersRequired

    Open orders tab label.

    string
  • historyRequired

    Order history tab label.

    string
  • balancesRequired

    Balances tab label.

    string
  • cancelRequired

    Cancel button text and hidden column header for open orders.

    string
  • sideRequired

    Side column header and accessible label for the buy and sell switch.

    string
  • typeRequired

    Type column header and accessible label for the order type switch.

    string
  • statusRequired

    Status column header in the order history table.

    string
  • timeRequired

    Time column header in the orders table.

    string
  • assetRequired

    Asset column header in the balances table.

    string
  • lockedRequired

    Header for funds held by open orders in the balances table.

    string
  • enterAmountRequired

    Button text before an amount is entered.

    string
  • insufficientRequired

    Builds the button text when the balance is too low, from the asset ticker.

    (asset: string) => string
  • placingRequired

    Button text while an order is being placed.

    string
  • placedRequired

    Button text after an order is placed.

    string
  • noOpenOrdersRequired

    Empty state for the open orders tab.

    string
  • noHistoryRequired

    Empty state for the order history tab.

    string
  • timeframeRequired

    Accessible label for the chart timeframe switch.

    string
  • feeRequired

    Label for the fee row in the ticket.

    string

Token presale

A token launch page with a rolling stage countdown, a raise meter with stage and soft-cap milestones, a contribution card with tier bonuses, an unlock schedule, and a live feed of recent buys.

Halo NetworkHALO

base

Stage 2 · Public round

Join the Halo presale before the price steps up.

Contribute in USDC or ETH, lock in the current stage price, and claim at launch with a bonus for larger tickets.

Price rises in

Raised

$2,148,320

Hard cap
$4.8M
Contributors
6,412
  1. Stage 1$0.018
  2. Stage 2$0.024
  3. Stage 3$0.030

Contribute

1 HALO = $0.024
Balance 8,420.5 USDC

You receive

42,917HALO

Base allocation
41,667 HALO
Tier bonus +3%
+1,250 HALO
Next stage value
$1,287

Contribution tiers

Add $4,000 more to reach Nova (+6%).

Unlock schedule

Circulating supply in millions of tokens

Recent contributions

  • 0xa8d7…e70b

    29,208 HALO

    $701

    now

  • 0x634b…c448

    94,875 HALO

    $2,277

    23s ago

  • 0x40d2…0a77

    26,208 HALO

    $629

    44s ago

  • 0x823b…84eb

    24,292 HALO

    $583

    59s ago

  • 0x7292…6ec6

    3,333 HALO

    $80

    1m ago

  • 0xee9f…4949

    35,208 HALO

    $845

    1m ago

  • 0x43f5…b269

    733,083 HALO

    $17,594

    1m ago

Simulated sale for demonstration. No funds move and no tokens are issued.

"use client";

import { TokenPresale } from "@/components/premium/trading-pages";

export function TokenPresalePreview() {
  return <TokenPresale />;
}

Install

$ bunx --bun shadcn add @beui-pro/token-presale

API Reference

Every prop is optional unless marked required. Data, copy, and colors default to the sample content.

TokenPresale16 props
  • token

    Token being sold, shown in the hero and next to amounts.

    PresaleToken
  • stages

    Price stages in order; the last stage's cap is the hard cap.

    readonly PresaleStage[]
  • softCap

    Raise in USD that marks the sale as successful, flagged on the meter.

    number

    Default 750000

  • raised

    Starting amount raised in USD; live buys add to it.

    number

    Default 2148320

  • contributors

    Starting contributor count; live buys add to it.

    number

    Default 6412

  • endsIn

    Seconds left in the current stage.

    number

    Default 2 * 86_400 + 14 * 3_600 + 37 * 60 + 12

  • tiers

    Contribution tiers in ascending order; the first tier's minimum is the sale minimum.

    readonly PresaleTier[]
  • payTokens

    Tokens the user can pay with; the first is selected by default.

    readonly PresalePayToken[]
  • quickAmounts

    Quick-pick contribution amounts in USD.

    readonly number[]

    Default [250, 1_000, 5_000] as const

  • vesting

    Monthly circulating supply data for the unlock chart.

    readonly StackedBarDatum[]

    Default buildVesting()

  • vestingSeries

    Allocation series, labels, and colors for the unlock chart.

    readonly ChartSeries[]
  • recentBuys

    Initial buys in the feed, read once on mount. Defaults to generated sample buys.

    readonly PresaleBuy[]
  • labels

    Text overrides merged over the default English labels.

    Partial<PresaleLabels>
  • live

    Simulate incoming contributions.

    boolean

    Default true

  • onContribute

    Called before the simulated confirmation; return a promise to hold the button.

    ((request: ContributeRequest) => unknown)
  • className

    Classes merged onto the root element.

    string
Types8 types

The object types these props take, field by field.

ChartSeries4 fields
  • idRequired

    Unique key that matches the value keys in each datum.

    string
  • labelRequired

    Series name shown in the legend and tooltip.

    string
  • colorRequired

    Fill class for bars, segments, and dots, such as `bg-blue-500`.

    string
  • stroke

    Stroke class for lines, such as `stroke-blue-500`.

    string
PresaleToken3 fields
  • nameRequired

    Token name shown in the hero.

    string
  • symbolRequired

    Ticker shown next to prices, amounts, and the token mark.

    string
  • networkRequired

    Network the sale settles on, used for icon badges.

    string
PresaleStage4 fields
  • idRequired

    Unique stage id.

    string
  • labelRequired

    Stage name shown in the eyebrow and on the raise meter.

    string
  • priceRequired

    Token price in USD during the stage.

    number
  • capRequired

    Raise, in USD, at which the stage ends.

    number
PresaleTier4 fields
  • idRequired

    Unique tier id, sent as `tier` in the contribute request.

    string
  • labelRequired

    Tier name shown in the tier ladder.

    string
  • minRequired

    Minimum contribution in USD.

    number
  • bonusRequired

    Bonus tokens as a fraction, such as 0.05 for 5%.

    number
PresalePayToken4 fields
  • symbolRequired

    Ticker of the token used to pay, such as "USDC".

    string
  • usdRequired

    USD value of one unit.

    number
  • balanceRequired

    Wallet balance in this token; caps the amount and drops after each buy.

    number
  • decimalsRequired

    Decimal places allowed when typing an amount in this token.

    number
PresaleBuy7 fields
  • idRequired

    Unique buy id.

    string
  • walletRequired

    Short wallet address shown on the row.

    string
  • payTokenRequired

    Ticker the buyer paid with, which picks the row icon.

    string
  • usdRequired

    Contribution value in USD.

    number
  • tokensRequired

    Tokens bought, including any tier bonus.

    number
  • agoRequired

    Seconds ago at mount, or 0 for buys that arrive live.

    number
  • mine

    Marks the user's own buy; shows a "You" badge instead of the wallet.

    boolean
ContributeRequest5 fields
  • payTokenRequired

    Ticker of the token the user paid with.

    string
  • amountRequired

    Amount entered, in units of the pay token.

    number
  • usdRequired

    USD value of the amount at the pay token's price.

    number
  • tokensRequired

    Tokens the user receives, including the tier bonus.

    number
  • tierRequired

    Id of the reached tier, or null below the lowest tier.

    string | null
PresaleLabels27 fields
  • eyebrowRequired

    Builds the hero eyebrow from the current stage label.

    (stage: string) => string
  • titleRequired

    Hero heading.

    string
  • descriptionRequired

    Hero paragraph under the heading.

    string
  • endsInRequired

    Label above the stage countdown.

    string
  • raisedRequired

    Label for the raised total and the meter's accessible name.

    string
  • hardCapRequired

    Label for the hard cap, the last stage's cap.

    string
  • softCapRequired

    Label on the soft cap flag above the meter.

    string
  • contributorsRequired

    Label for the contributor count.

    string
  • priceRequired

    Label for the current price; not rendered by the current layout.

    string
  • nextPriceRequired

    Prefix for the row valuing your tokens at the next stage's price.

    string
  • contributeRequired

    Contribute card heading and button text, followed by the USD amount.

    string
  • youPayRequired

    Label for the pay amount field, followed by the pay token ticker.

    string
  • youReceiveRequired

    Label for the token amount the user receives.

    string
  • bonusRequired

    Label for the tier bonus row in the receive summary.

    string
  • maxRequired

    Text of the button that fills in the full balance.

    string
  • balanceRequired

    Label before the pay token balance.

    string
  • minimumRequired

    Builds the error shown below the minimum, from the formatted minimum.

    (min: string) => string
  • insufficientRequired

    Builds the field error and button text when the balance is too low.

    (symbol: string) => string
  • confirmingRequired

    Button text while a contribution is confirming.

    string
  • doneRequired

    Button text after a contribution confirms.

    string
  • tiersRequired

    Heading for the tier ladder.

    string
  • yourAllocationRequired

    Label for the user's total tokens bought this session.

    string
  • vestingRequired

    Heading for the unlock schedule chart.

    string
  • vestingNoteRequired

    Note under the vesting heading, such as the chart's unit.

    string
  • recentBuysRequired

    Heading for the recent buys feed.

    string
  • youRequired

    Badge text and wallet name for the user's own buys.

    string
  • disclaimerRequired

    Small print shown under the whole block.

    string