Skip to content

Commit

Permalink
Merge branch 'v7.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
enarjord committed Oct 3, 2024
2 parents feb6554 + 7ce9d27 commit 0783342
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

:warning: **Used at one's own risk** :warning:

v7.1.0
v7.1.1


## Overview
Expand Down
3 changes: 3 additions & 0 deletions src/exchanges/binance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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}")
Expand Down
1 change: 1 addition & 0 deletions src/exchanges/hyperliquid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 0783342

Please sign in to comment.