Fix dry-run-wallets bug in case of futures

This commit is contained in:
Matthias 2022-03-09 19:02:22 +01:00
parent a837571e2b
commit 0d754111e9
1 changed files with 3 additions and 3 deletions

View File

@ -104,16 +104,16 @@ class Wallets:
size = position.amount
collateral = position.stake_amount
leverage = position.leverage
tot_in_trades -= collateral
tot_in_trades += collateral
_positions[position.pair] = PositionWallet(
position.pair, position=size,
leverage=leverage,
collateral=collateral,
side=position.trade_direction
)
current_stake = self.start_cap + tot_profit
current_stake = self.start_cap + tot_profit - tot_in_trades
used_stake = tot_in_trades
total_stake = current_stake - tot_in_trades
total_stake = current_stake + tot_in_trades
_wallets[self._config['stake_currency']] = Wallet(
currency=self._config['stake_currency'],