Trading Pages
2 variantsComplete 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 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 USDC | Size ETH | Cumulative total ETH |
|---|---|---|
| 1.292 | 34.164 | |
| 0.774 | 32.872 | |
| 3.066 | 32.098 | |
| 3.846 | 29.032 | |
| 2.076 | 25.187 | |
| 2.437 | 23.110 | |
| 15.532 | 20.673 | |
| 2.706 | 5.140 | |
| 2.435 | 2.435 |
| Price USDC | Size ETH | Cumulative total ETH |
|---|---|---|
| 0.357 | 0.357 | |
| 1.425 | 1.782 | |
| 1.014 | 2.796 | |
| 4.340 | 7.137 | |
| 0.090 | 7.227 | |
| 0.989 | 8.216 | |
| 4.485 | 12.701 | |
| 2.175 | 14.876 | |
| 0.299 | 15.175 |
Hover a level to see the cost of filling up to it
- Available
- 12,480.50 USDC
- Fee
- 0.10%
- Total
- 0.00 USDC
- You receive
- ≈ 0.000 ETH
Assets
Account value25,419.84 USDC
ETH
0.400 in orders
4.618
43.8%
USDC
1,798.88 in orders
14,279.38
56.2%
| Time | Side | Type | Price | Amount | Total | Cancel |
|---|---|---|---|---|---|---|
| 11:52:08 | Buy | Limit | 2,398.50 | 0.750 ETH | 1,798.88 USDC | |
| 11:47:51 | Sell | Limit | 2,436.00 | 0.400 ETH | 974.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 />;
}
Source code is locked
Get access to install premium components and view the full source.
Open dashboardInstall
API Reference
Every prop is optional unless marked required. Data, copy, and colors default to the sample content.
TradingTerminal7 props
pairMarket pair for the book, chart, and ticket; also seeds the simulated feed.
OrderBookPairbalancesStarting available and locked balances per asset, read once on mount.
TradingBalancesordersStarting open and past orders, read once on mount.
readonly TradingOrder[]labelsText overrides merged over the default English labels.
Partial<TradingLabels>liveSimulate market data.
booleanDefault
trueonPlaceOrderCalled before the simulated fill; return a promise to hold the button.
((request: PlaceOrderRequest) => unknown)classNameClasses merged onto the root element.
string
Types4 types
The object types these props take, field by field.
OrderBookPair9 fields
baseRequiredBase asset symbol, such as ETH; sizes are in this unit.
stringquoteRequiredQuote asset symbol, such as USDC; prices are in this unit.
stringtickSizeRequiredSmallest price step of the raw book.
numberpriceRequiredStarting best ask, in quote units.
numberchange24hRequired24h change in percent, shown under the pair name.
numberhigh24hRequiredHighest price in the last 24 hours, in quote units.
numberlow24hRequiredLowest price in the last 24 hours, in quote units.
numbervolume24hRequired24h volume in base units.
numbersizeDecimalsRequiredFraction digits for base-unit sizes.
number
TradingOrder7 fields
idRequiredUnique order id, used to cancel it.
stringsideRequiredWhether the order buys or sells the base asset.
TradeSidetypeRequiredLimit orders rest until the market reaches them; market orders fill at once.
OrderTypepriceRequiredLimit price, or the fill price for market orders, in the quote asset.
numberamountRequiredOrder size in the base asset.
numberstatusRequiredOpen orders appear under Open orders; the rest go to History.
"open" | "filled" | "cancelled"timeRequiredDisplay time, such as "12:04:31".
string
PlaceOrderRequest4 fields
sideRequiredTradeSidetypeRequiredOrderTypepriceRequiredLimit price, or the execution price for market orders.
numberamountRequirednumber
TradingLabels30 fields
chartRequiredLabel for the chart panel; not rendered by the current layout.
stringbookRequiredOrder book tab label.
stringtradesRequiredRecent trades tab label.
stringbuyRequiredBuy side label in the ticket, button, and order rows.
stringsellRequiredSell side label in the ticket, button, and order rows.
stringlimitRequiredLimit order type label.
stringmarketRequiredMarket order type label.
stringpriceRequiredPrice field label and price column header.
stringamountRequiredAmount field label and amount column header.
stringtotalRequiredOrder total label in the ticket and orders table.
stringavailableRequiredLabel for available balance in the ticket and balances table.
stringmarketPriceRequiredText shown in the locked price field for market orders.
stringopenOrdersRequiredOpen orders tab label.
stringhistoryRequiredOrder history tab label.
stringbalancesRequiredBalances tab label.
stringcancelRequiredCancel button text and hidden column header for open orders.
stringsideRequiredSide column header and accessible label for the buy and sell switch.
stringtypeRequiredType column header and accessible label for the order type switch.
stringstatusRequiredStatus column header in the order history table.
stringtimeRequiredTime column header in the orders table.
stringassetRequiredAsset column header in the balances table.
stringlockedRequiredHeader for funds held by open orders in the balances table.
stringenterAmountRequiredButton text before an amount is entered.
stringinsufficientRequiredBuilds the button text when the balance is too low, from the asset ticker.
(asset: string) => stringplacingRequiredButton text while an order is being placed.
stringplacedRequiredButton text after an order is placed.
stringnoOpenOrdersRequiredEmpty state for the open orders tab.
stringnoHistoryRequiredEmpty state for the order history tab.
stringtimeframeRequiredAccessible label for the chart timeframe switch.
stringfeeRequiredLabel 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
- Stage 1$0.018
- Stage 2$0.024
- Stage 3$0.030
Contribute
1 HALO = $0.024You 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 />;
}
Source code is locked
Get access to install premium components and view the full source.
Open dashboardInstall
API Reference
Every prop is optional unless marked required. Data, copy, and colors default to the sample content.
TokenPresale16 props
tokenToken being sold, shown in the hero and next to amounts.
PresaleTokenstagesPrice stages in order; the last stage's cap is the hard cap.
readonly PresaleStage[]softCapRaise in USD that marks the sale as successful, flagged on the meter.
numberDefault
750000raisedStarting amount raised in USD; live buys add to it.
numberDefault
2148320contributorsStarting contributor count; live buys add to it.
numberDefault
6412endsInSeconds left in the current stage.
numberDefault
2 * 86_400 + 14 * 3_600 + 37 * 60 + 12tiersContribution tiers in ascending order; the first tier's minimum is the sale minimum.
readonly PresaleTier[]payTokensTokens the user can pay with; the first is selected by default.
readonly PresalePayToken[]quickAmountsQuick-pick contribution amounts in USD.
readonly number[]Default
[250, 1_000, 5_000] as constvestingMonthly circulating supply data for the unlock chart.
readonly StackedBarDatum[]Default
buildVesting()vestingSeriesAllocation series, labels, and colors for the unlock chart.
readonly ChartSeries[]recentBuysInitial buys in the feed, read once on mount. Defaults to generated sample buys.
readonly PresaleBuy[]labelsText overrides merged over the default English labels.
Partial<PresaleLabels>liveSimulate incoming contributions.
booleanDefault
trueonContributeCalled before the simulated confirmation; return a promise to hold the button.
((request: ContributeRequest) => unknown)classNameClasses merged onto the root element.
string
Types8 types
The object types these props take, field by field.
ChartSeries4 fields
idRequiredUnique key that matches the value keys in each datum.
stringlabelRequiredSeries name shown in the legend and tooltip.
stringcolorRequiredFill class for bars, segments, and dots, such as `bg-blue-500`.
stringstrokeStroke class for lines, such as `stroke-blue-500`.
string
PresaleToken3 fields
nameRequiredToken name shown in the hero.
stringsymbolRequiredTicker shown next to prices, amounts, and the token mark.
stringnetworkRequiredNetwork the sale settles on, used for icon badges.
string
PresaleStage4 fields
idRequiredUnique stage id.
stringlabelRequiredStage name shown in the eyebrow and on the raise meter.
stringpriceRequiredToken price in USD during the stage.
numbercapRequiredRaise, in USD, at which the stage ends.
number
PresaleTier4 fields
idRequiredUnique tier id, sent as `tier` in the contribute request.
stringlabelRequiredTier name shown in the tier ladder.
stringminRequiredMinimum contribution in USD.
numberbonusRequiredBonus tokens as a fraction, such as 0.05 for 5%.
number
PresalePayToken4 fields
symbolRequiredTicker of the token used to pay, such as "USDC".
stringusdRequiredUSD value of one unit.
numberbalanceRequiredWallet balance in this token; caps the amount and drops after each buy.
numberdecimalsRequiredDecimal places allowed when typing an amount in this token.
number
PresaleBuy7 fields
idRequiredUnique buy id.
stringwalletRequiredShort wallet address shown on the row.
stringpayTokenRequiredTicker the buyer paid with, which picks the row icon.
stringusdRequiredContribution value in USD.
numbertokensRequiredTokens bought, including any tier bonus.
numberagoRequiredSeconds ago at mount, or 0 for buys that arrive live.
numbermineMarks the user's own buy; shows a "You" badge instead of the wallet.
boolean
ContributeRequest5 fields
payTokenRequiredTicker of the token the user paid with.
stringamountRequiredAmount entered, in units of the pay token.
numberusdRequiredUSD value of the amount at the pay token's price.
numbertokensRequiredTokens the user receives, including the tier bonus.
numbertierRequiredId of the reached tier, or null below the lowest tier.
string | null
PresaleLabels27 fields
eyebrowRequiredBuilds the hero eyebrow from the current stage label.
(stage: string) => stringtitleRequiredHero heading.
stringdescriptionRequiredHero paragraph under the heading.
stringendsInRequiredLabel above the stage countdown.
stringraisedRequiredLabel for the raised total and the meter's accessible name.
stringhardCapRequiredLabel for the hard cap, the last stage's cap.
stringsoftCapRequiredLabel on the soft cap flag above the meter.
stringcontributorsRequiredLabel for the contributor count.
stringpriceRequiredLabel for the current price; not rendered by the current layout.
stringnextPriceRequiredPrefix for the row valuing your tokens at the next stage's price.
stringcontributeRequiredContribute card heading and button text, followed by the USD amount.
stringyouPayRequiredLabel for the pay amount field, followed by the pay token ticker.
stringyouReceiveRequiredLabel for the token amount the user receives.
stringbonusRequiredLabel for the tier bonus row in the receive summary.
stringmaxRequiredText of the button that fills in the full balance.
stringbalanceRequiredLabel before the pay token balance.
stringminimumRequiredBuilds the error shown below the minimum, from the formatted minimum.
(min: string) => stringinsufficientRequiredBuilds the field error and button text when the balance is too low.
(symbol: string) => stringconfirmingRequiredButton text while a contribution is confirming.
stringdoneRequiredButton text after a contribution confirms.
stringtiersRequiredHeading for the tier ladder.
stringyourAllocationRequiredLabel for the user's total tokens bought this session.
stringvestingRequiredHeading for the unlock schedule chart.
stringvestingNoteRequiredNote under the vesting heading, such as the chart's unit.
stringrecentBuysRequiredHeading for the recent buys feed.
stringyouRequiredBadge text and wallet name for the user's own buys.
stringdisclaimerRequiredSmall print shown under the whole block.
string