diff --git a/binance/client.py b/binance/client.py index a6788f5..19f7d38 100644 --- a/binance/client.py +++ b/binance/client.py @@ -63,7 +63,8 @@ def assert_symbol_exists(self, symbol): def round(self, symbol, amount): if self.loaded: - amount = round(amount, self.symbols[symbol]["baseAssetPrecision"]) + precision = self.symbols[symbol]["baseAssetPrecision"] + return f"%.{precision}f" % round(amount, precision) return amount def assert_symbol(self, symbol):