order pprint touchup
This commit is contained in:
@@ -308,7 +308,11 @@ class Order:
|
||||
'''
|
||||
for i in range(len(self.order.tranches)):
|
||||
tranche = self.order.tranches[i]
|
||||
msg += f' {tranche} filled {await adjust_decimals(amount_token, self.tranche_filled(i))}\n'
|
||||
msg += f' {tranche}'
|
||||
filled_amount = self.tranche_filled(i)
|
||||
if filled_amount:
|
||||
msg += f' filled {await adjust_decimals(amount_token, filled_amount)}'
|
||||
msg += '\n'
|
||||
return msg
|
||||
|
||||
# ORDER STATE
|
||||
|
||||
Reference in New Issue
Block a user