Move precision calculations to standalone functions

This commit is contained in:
Matthias
2022-08-15 08:43:58 +02:00
parent 7a2b4dbb99
commit 6c32331740
2 changed files with 62 additions and 30 deletions

View File

@@ -826,7 +826,7 @@ class LocalTrade():
return float(f"{profit_ratio:.8f}")
def recalc_trade_from_orders(self, is_closing: bool = False):
def recalc_trade_from_orders(self, *, is_closing: bool = False):
ZERO = FtPrecise(0.0)
current_amount = FtPrecise(0.0)
current_stake = FtPrecise(0.0)