import useTradeHistory from '../hooks/useTradeHistory' const TradeHistoryTable = () => { const { tradeHistory } = useTradeHistory() return (
{tradeHistory && tradeHistory.length ? (
{tradeHistory.map((trade, index) => ( ))}
Market Side Size Price Liquidity Fees
{trade.marketName}
{trade.side.toUpperCase()}
{trade.size} {trade.price} {trade.liquidity} {trade.feeCost}
) : (
No trade history
)}
) } export default TradeHistoryTable