refactor: rename wallets position variable

This commit is contained in:
Matthias
2026-01-06 20:00:00 +01:00
parent 50cba51008
commit 4322acbbb8
+8 -8
View File
@@ -871,10 +871,10 @@ class RPC:
} }
) )
symbol: str symbol: str
position: PositionWallet pos: PositionWallet
for symbol, position in self._freqtrade.wallets.get_all_positions().items(): for symbol, pos in self._freqtrade.wallets.get_all_positions().items():
total += position.collateral total += pos.collateral
total_bot += position.collateral total_bot += pos.collateral
currencies.append( currencies.append(
{ {
@@ -882,11 +882,11 @@ class RPC:
"free": 0, "free": 0,
"balance": 0, "balance": 0,
"used": 0, "used": 0,
"position": position.position, "position": pos.position,
"est_stake": position.collateral, "est_stake": pos.collateral,
"est_stake_bot": position.collateral, "est_stake_bot": pos.collateral,
"stake": stake_currency, "stake": stake_currency,
"side": position.side, "side": pos.side,
"is_bot_managed": True, "is_bot_managed": True,
"is_position": True, "is_position": True,
} }