Skip to content

Commit

Permalink
docs: Improve open quantity documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
holzeis committed Apr 23, 2024
1 parent 9cc43ea commit 2e5552d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mobile/lib/features/trade/domain/trade_values.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import 'package:get_10101/features/trade/domain/leverage.dart';

class TradeValues {
/// Potential quantity already in an open position
///
/// Note the open quantity is only set for the opposite direction.
/// So if you'd go 100 long the open quantity would be 0 for the long direction and 100 for the
/// short direction.
Usd _openQuantity = Usd.zero();

get openQuantity => _openQuantity;
Expand Down

0 comments on commit 2e5552d

Please sign in to comment.