DeFiLive Preview
Limit Order Manager
Clean order list with tab filtering (Active / Filled / All), buy/sell type badges, status indicators, and cancel with loading state. Parent owns all state.
limit-ordertradingbuysell
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
orders* | LimitOrder[] | — | Order list (id, type buy/sell, token, amount, price, status, timestamp) |
onCancel | (orderId: string) => void | — | Called when user cancels an active order |
onCreateOrder | () => void | — | Called when user clicks New Order (parent handles form) |
cancellingId | string | — | Order ID being cancelled (shows loading spinner) |
className | string | — | Additional CSS classes |