Use "round" to 12 digits for TickSize mode
Avoids float rounding problems, fix #5652
This commit is contained in:
parent
e73f5ab480
commit
f5e5203388
@ -523,7 +523,7 @@ class Exchange:
|
||||
precision = self.markets[pair]['precision']['price']
|
||||
missing = price % precision
|
||||
if missing != 0:
|
||||
price = price - missing + precision
|
||||
price = round(price - missing + precision, 10)
|
||||
else:
|
||||
symbol_prec = self.markets[pair]['precision']['price']
|
||||
big_price = price * pow(10, symbol_prec)
|
||||
|
Loading…
Reference in New Issue
Block a user