Last updated
TradingWidget β Full layout: header, chart, recent trades, trade panel, bottom tabs (positions/orders/history), dialogs and toasts.
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.
PriceChart β Pyth-backed candlestick chart (history + streaming).
RecentTrades β Recent trades for the selected symbol.
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.
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.
RpcSettings β Dropdown: choose predefined RPC or enter custom URL; shows latency. Persists to localStorage so the widgetβs provider uses the selected RPC.
Last updated