use 8 digits of precision for amount and rate in formatting

This commit is contained in:
gcarq 2017-11-23 20:52:07 +01:00
parent 7ba4a5d24b
commit be6939ee8a

View File

@ -68,7 +68,7 @@ class Trade(_DECL_BASE):
open_order_id = Column(String)
def __repr__(self):
return 'Trade(id={}, pair={}, amount={}, open_rate={}, open_since={})'.format(
return 'Trade(id={}, pair={}, amount={:.8f}, open_rate={:.8f}, open_since={})'.format(
self.id,
self.pair,
self.amount,