diff --git a/src/views/Wallet.vue b/src/views/Wallet.vue index 16aa16d..8b07cac 100644 --- a/src/views/Wallet.vue +++ b/src/views/Wallet.vue @@ -88,6 +88,10 @@ prepend-inner-icon="mdi-magnify" /> + + mdi-delete-outline + Close Losses + mdi-filter All @@ -104,98 +108,270 @@ Export + + + mdi-filter + Current value + + + + + mdi-filter + Market + + + mdi-close + Cancel all + + mdi-filter Market - - - - - MARKET - - AVG → NOW - mdi-information-outline - - BET - TO WIN - - VALUE - mdi-chevron-down - - - - - - No positions found. - - - {{ pos.market }} - {{ pos.avgNow }} - {{ pos.bet }} - {{ pos.toWin }} - {{ pos.value }} - - - - - - - - MARKET - SIDE - OUTCOME - PRICE - FILLED - TOTAL - EXPIRATION - ACTION - - - - - No open orders found. - - - {{ ord.market }} - - {{ ord.side }} - - {{ ord.outcome }} - {{ ord.price }} - {{ ord.filled }} - {{ ord.total }} - {{ ord.expiration }} - - Cancel - - - - - - - - - ACTIVITY - MARKET - VALUE - - - - - You haven't traded any polymarkets yet - - - - {{ h.activity }} - - {{ h.market }} - {{ h.value }} - - - + + + + + + No positions found. + + + + + {{ pos.iconChar }} + + + {{ pos.market }} + + {{ pos.bet }} on {{ pos.outcomeWord || pos.sellOutcome || 'Position' }} to win {{ pos.toWin }} + + + + {{ pos.value }} + + {{ pos.valueChange }}{{ pos.valueChangePct != null ? ` (${pos.valueChangePct})` : '' }} + + + + + + + AVG • NOW + + + {{ parseAvgNow(pos.avgNow)[0] }} + mdi-chevron-down + mdi-chevron-up + {{ parseAvgNow(pos.avgNow)[1] }} + + {{ pos.avgNow }} + + + + Sell + + mdi-share-variant + + + + + + + + + + MARKET + + AVG → NOW + mdi-information-outline + + BET + TO WIN + + VALUE + mdi-chevron-down + + ACTION + + + + + No positions found. + + + + + + {{ pos.icon }} + {{ pos.iconChar }} + + + {{ pos.market }} + + {{ pos.outcomeTag }} + {{ pos.shares }} + + + + + {{ pos.avgNow }} + {{ pos.bet }} + {{ pos.toWin }} + + {{ pos.value }} + + {{ pos.valueChange }}{{ pos.valueChangePct != null ? ` (${pos.valueChangePct})` : '' }} + + + + Sell + + mdi-share-variant + + + + + + + + + + + + No open orders found. + + + + {{ ord.iconChar }} + + + {{ ord.market }} + + {{ ord.actionLabel || `Buy ${ord.outcome}` }} + + {{ ord.price }} • {{ ord.total }} + + + + mdi-close + + {{ ord.filledDisplay || ord.filled }} + Expiration: {{ ord.expiration }} + + + + + + + + MARKET + SIDE + OUTCOME + PRICE + FILLED + TOTAL + EXPIRATION + ACTION + + + + + No open orders found. + + + {{ ord.market }} + + {{ ord.side }} + + {{ ord.outcome }} + {{ ord.price }} + {{ ord.filled }} + {{ ord.total }} + {{ ord.expiration }} + + Cancel + + + + + + + + + + + You haven't traded any polymarkets yet + + + + + {{ h.iconChar }} + + + {{ h.market }} + {{ h.activityDetail || h.activity }} + + + + {{ h.profitLoss ?? h.value }} + + {{ h.timeAgo || '' }} + + + {{ expandedHistoryId === h.id ? 'mdi-chevron-up' : 'mdi-chevron-down' }} + + + + + AVG {{ h.avgPrice }} + SHARES {{ h.shares }} + + + View + + mdi-open-in-new + + + + + + + + + + ACTIVITY + MARKET + VALUE + + + + + You haven't traded any polymarkets yet + + + + {{ h.activity }} + + {{ h.market }} + {{ h.value }} + + + + @@ -233,17 +409,52 @@ :balance="portfolioBalance" @success="onWithdrawSuccess" /> + + + + + + + mdi-close + + + + + + {{ sellPositionItem.iconChar }} + + + Sell {{ sellPositionItem.sellOutcome || 'Position' }} + {{ sellPositionItem.market }} + + + mdi-sack + Receive + + {{ sellReceiveAmount }} + + + + + Redeem + + Edit order + + +
{{ sellPositionItem.market }}