TradePanel
Reference照 app.opinion.trade 線上產品重建的對照版,用來量測與討論。不是 production 的程式碼。
Production:src/components/TradePanel/index.tsx
Installation
import { TradePanel } from "@/components/product/trade-panel/trade-panel";Overview
TradePanel CONSUMES OutcomeSelector — it does not construct the YES/NO action pair internally. It shows the user's balance in a given currency, a Buy/Sell mode default, and a Market/Limit order type toggle, and can be disabled as a whole (e.g. while a market is closed). MUST NOT include Top Holders, Merge/Split, Chart, Market info, or OrderBook — those are sibling surfaces, not part of this panel.
Interactive Demo
Amount
Balance 20.84 USDT
Total— USDT
To Win— USDT
Est. Fee—--%
Slippage Tolerance 2%
State Matrix
Selection states
No outcome selected (CTA disabled)
Amount
Balance 20.84 USDT
Total— USDT
To Win— USDT
Slippage Tolerance 2%
YES selected
Amount
Balance 20.84 USDT
Total— USDT
To Win— USDT
Slippage Tolerance 2%
Disabled panel
Amount
Balance 20.84 USDT
Total— USDT
To Win— USDT
Slippage Tolerance 2%