diff --git a/README.md b/README.md index ddd68784f..307134c46 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ :warning: **Used at one's own risk** :warning: -v7.1.0 +v7.1.1 ## Overview diff --git a/src/exchanges/binance.py b/src/exchanges/binance.py index b0e2a0718..2ca748bb5 100644 --- a/src/exchanges/binance.py +++ b/src/exchanges/binance.py @@ -8,6 +8,7 @@ import traceback import numpy as np import json +import passivbot_rust as pbr from pure_funcs import ( floatify, ts_to_date_utc, @@ -290,6 +291,8 @@ async def fetch_positions(self) -> ([dict], float): balance = float(fetched_balance["info"]["totalCrossWalletBalance"]) - float( fetched_balance["info"]["totalCrossUnPnl"] ) + step = pbr.round_dynamic(balance * 0.02, 1) + balance = pbr.round_(balance, step) return positions, balance except Exception as e: logging.error(f"error fetching positions {e}") diff --git a/src/exchanges/hyperliquid.py b/src/exchanges/hyperliquid.py index aa5c0a98f..11a14b6e7 100644 --- a/src/exchanges/hyperliquid.py +++ b/src/exchanges/hyperliquid.py @@ -65,6 +65,7 @@ def set_market_specific_settings(self): self.min_costs[symbol] = ( 10.1 if elm["limits"]["cost"]["min"] is None else elm["limits"]["cost"]["min"] ) + self.min_costs[symbol] *= 1.1 self.qty_steps[symbol] = round_(10 ** -elm["precision"]["amount"], 0.0000000001) self.min_qtys[symbol] = ( self.qty_steps[symbol]