We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 491fb61 + 0aec641 commit 7547531Copy full SHA for 7547531
autotrader/brokers/ccxt.py
@@ -84,7 +84,7 @@ def place_order(self, order: Order, **kwargs) -> None:
84
# Check order meets limits
85
limits: dict = self.api.markets.get(order.instrument, {}).get("limits", {})
86
if limits.get("amount") is not None:
87
- if order.size < limits["amount"]["min"]:
+ if float(order.size) < float(limits["amount"]["min"]):
88
# Order too small
89
self._logger.warning(f"Order below minimum size: {order}")
90
return None
0 commit comments