Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 committed Sep 16, 2024
1 parent 59d177a commit f1d4f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exchange/_bybit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down

0 comments on commit f1d4f2c

Please sign in to comment.