order pprint touchup

This commit is contained in:
tim
2025-03-10 14:31:55 -04:00
parent ecf1d21d5f
commit be8c8bf019

View File

@@ -308,7 +308,11 @@ class Order:
''' '''
for i in range(len(self.order.tranches)): for i in range(len(self.order.tranches)):
tranche = self.order.tranches[i] 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 return msg
# ORDER STATE # ORDER STATE