Skip to content

Commit

Permalink
use 8 digits of precision for amount and rate in formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarq committed Nov 23, 2017
1 parent 7ba4a5d commit be6939e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freqtrade/persistence.py
Expand Up @@ -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,
Expand Down

0 comments on commit be6939e

Please sign in to comment.