Add tests for price_one_pip

This commit is contained in:
Matthias
2020-04-15 07:53:31 +02:00
parent 36e714a7b2
commit 33b6c7de5b
2 changed files with 27 additions and 1 deletions

View File

@@ -459,7 +459,7 @@ class Exchange:
"""
precision = self.markets[pair]['precision']['price']
if self.precisionMode == TICK_SIZE:
return price % precision
return precision
else:
return 1 / pow(10, precision)