import useTradeHistory from '../hooks/useTradeHistory' const TradeHistoryTable = () => { const { tradeHistory } = useTradeHistory() return (
Market | Side | Size | Price | Liquidity | Fees | Date |
---|---|---|---|---|---|---|
{trade.marketName} |
{trade.side.toUpperCase()}
|
{trade.size} | {trade.price} | {trade.liquidity} | {trade.feeCost} | {trade.loadTimestamp ? new Date(trade.loadTimestamp).toLocaleDateString() : 'Recent'} |