We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f4d9f6 commit fe25860Copy full SHA for fe25860
1 file changed
Bot/ExchangeInfo.py
@@ -18,7 +18,7 @@ def adjust_quanity(self, q, round_down=True):
18
if q == 0:
19
return 0
20
21
- res = float(Decimal(q).quantize(self.stepSize, rounding=ROUND_DOWN if round_down else ROUND_UP))
+ res = float(Decimal(q) if self.stepSize == 0.0 else Decimal(q).quantize(self.stepSize, rounding=ROUND_DOWN if round_down else ROUND_UP))
22
return float(min(max(res, self.minQty), self.maxQty))
23
24
def adjust_price(self, q, round_down=True):
0 commit comments