diff --git a/mobile/lib/features/trade/domain/direction.dart b/mobile/lib/features/trade/domain/direction.dart index e2c4646ad..ca4d7049e 100644 --- a/mobile/lib/features/trade/domain/direction.dart +++ b/mobile/lib/features/trade/domain/direction.dart @@ -27,9 +27,9 @@ enum Direction { String get keySuffix { switch (this) { case Direction.long: - return "long"; + return "Long"; case Direction.short: - return "short"; + return "Short"; } } diff --git a/mobile/lib/features/trade/position_list_item.dart b/mobile/lib/features/trade/position_list_item.dart index b7df25a5a..f5428e55c 100644 --- a/mobile/lib/features/trade/position_list_item.dart +++ b/mobile/lib/features/trade/position_list_item.dart @@ -94,6 +94,13 @@ class _PositionListItemState extends State { notNullPosition.contractSymbol.label, style: const TextStyle(fontWeight: FontWeight.bold), ), + const SizedBox( + width: 5, + ), + Text( + notNullPosition.direction.keySuffix, + style: const TextStyle(fontWeight: FontWeight.bold), + ), ], ), ], @@ -116,6 +123,13 @@ class _PositionListItemState extends State { : tradeTheme.profit), labelTextStyle: dataRowStyle, ), + ValueDataRow( + type: ValueType.text, + value: notNullPosition.direction.keySuffix, + label: "Direction", + valueTextStyle: dataRowStyle, + labelTextStyle: dataRowStyle, + ), ValueDataRow( type: ValueType.amount, value: notNullPosition.collateral, @@ -123,6 +137,13 @@ class _PositionListItemState extends State { valueTextStyle: dataRowStyle, labelTextStyle: dataRowStyle, ), + ValueDataRow( + type: ValueType.text, + value: notNullPosition.leverage.formatted(), + label: "Leverage", + valueTextStyle: dataRowStyle, + labelTextStyle: dataRowStyle, + ), ValueDataRow( type: ValueType.date, value: notNullPosition.expiry,