Skip to content

Commit d0d8ecc

Browse files
committed
display ROI
1 parent ca9d6d5 commit d0d8ecc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/components/Positions.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ export const Positions: FC<{ symbol: API.Symbol }> = ({ symbol }) => {
3939
<Table.Cell>{baseFormatter.format(position.position_qty)}</Table.Cell>
4040
<Table.Cell>{usdFormatter.format(position.average_open_price)}</Table.Cell>
4141
<Table.Cell>{usdFormatter.format(position.mark_price)}</Table.Cell>
42-
<Table.Cell>{usdFormatter.format(position.unrealized_pnl)}</Table.Cell>
42+
<Table.Cell>
43+
{usdFormatter.format(position.unrealized_pnl)} (
44+
{usdFormatter.format(position.unrealized_pnl_ROI * 100)}%)
45+
</Table.Cell>
4346
<Table.Cell>
4447
{position.est_liq_price ? usdFormatter.format(position.est_liq_price) : '-'}
4548
</Table.Cell>

0 commit comments

Comments
 (0)