Badges - going to a version with () for seels
This commit is contained in:
1 parent
ce44f015e5
commit
fcffe2ad11
1 file changed
+6
-1
@@ -80,7 +80,12 @@ namespace mbts.spark {
|
||||
public Side side => _order.Def.Side;
|
||||
|
||||
string _buy_sell_indicator => _order.Def.Side == Side.Buy ? "B" : "S";
|
||||
public string text =>$"{_buy_sell_indicator} {OrderUtils.filled(_order)}/{_order.State.Quantity}";
|
||||
public string text {
|
||||
get {
|
||||
string s = $"{OrderUtils.filled(_order)}/{_order.State.Quantity}";
|
||||
return (_order.Def.Side == Side.Buy) ? s : $"({s})";
|
||||
}
|
||||
}
|
||||
public string line1 => $"{_buy_sell_indicator}:{OrderUtils.filled(_order)}";
|
||||
public string line2 => $"W:{_order.working_quantity()}";
|
||||
|
||||
|
||||
Reference in new issue
Block a user