Show account name on pp line
parent
5e947e7887
commit
c9eb0b5afb
|
@ -198,6 +198,8 @@ class SettingsPane:
|
||||||
# update bound-in staged order
|
# update bound-in staged order
|
||||||
order.price = level
|
order.price = level
|
||||||
order.size = order_info['size']
|
order.size = order_info['size']
|
||||||
|
# NOTE: the account is set at order stage time
|
||||||
|
# inside ``OrderMode.line_from_order()``.
|
||||||
|
|
||||||
|
|
||||||
def position_line(
|
def position_line(
|
||||||
|
@ -470,7 +472,6 @@ class PositionTracker:
|
||||||
|
|
||||||
return arrow
|
return arrow
|
||||||
|
|
||||||
# TODO: per account lines on a single (or very related) symbol
|
|
||||||
def update_line(
|
def update_line(
|
||||||
self,
|
self,
|
||||||
price: float,
|
price: float,
|
||||||
|
@ -506,7 +507,10 @@ class PositionTracker:
|
||||||
line.update_labels({
|
line.update_labels({
|
||||||
'size': size,
|
'size': size,
|
||||||
'size_digits': size_digits,
|
'size_digits': size_digits,
|
||||||
'fiat_size': round(price * size, ndigits=2)
|
'fiat_size': round(price * size, ndigits=2),
|
||||||
|
|
||||||
|
# TODO: per account lines on a single (or very related) symbol
|
||||||
|
'account': self.alloc.account_name(),
|
||||||
})
|
})
|
||||||
line.show()
|
line.show()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue