diff --git a/exchange/_bybit.py b/exchange/_bybit.py index 581529dd..413edcf6 100644 --- a/exchange/_bybit.py +++ b/exchange/_bybit.py @@ -239,7 +239,7 @@ def close_half_position(self, symbol: Symbol, side: PositionSide): def fetch_position(self, symbol: Symbol, side: PositionSide): positions = self.connector.fetch_positions([symbol.name]) position = next( - (p for p in positions if p["side"] == str(side).lower()), + (p for p in positions if p["side"] == str(side).lower()), None, )