Components
All-in-one
TradingWidgetβ Full layout: header, chart, recent trades, trade panel, bottom tabs (positions/orders/history), dialogs and toasts.
Layout & header
TradingWidgetProviderβ Sui + React Query + Jotai setup. Use when building a custom layout so sub-components have the same context.MarketHeaderβ Symbol dropdown (from ZLP/SLP index tokens), mark price, funding rate.
Market data
PriceChartβ Pyth-backed candlestick chart (history + streaming).RecentTradesβ Recent trades for the selected symbol.
Trading & account
TradePanelβ Long/short, market/limit, leverage, collateral selector; opens positions on ZLP/SLP/USDZ.CustomConnectButtonβ Connect wallet; when connected opens the account sidebar instead of a dropdown.
Tables (bottom section)
BottomTabsβ Tabs: Positions, Orders, History; each shows a circular countdown to next refresh.PositionsListβ Open positions with PnL, adjust/close.OrdersListβ Open orders with cancel.HistoryListβ Trade history.
Settings
RpcSettingsβ Dropdown: choose predefined RPC or enter custom URL; shows latency. Persists tolocalStorageso the widgetβs provider uses the selected RPC.
Last updated