Skip to content

Commit

Permalink
chore: Fix indentation in Strategy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
morteza-koohgard committed Aug 25, 2024
1 parent 92636a3 commit 8b95b1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jesse/strategies/Strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _on_updated_position(self, order: Order) -> None:
elif abs(after_qty) > abs(before_qty):
effect = 'increased_position'
# if reducing position size
else: # abs(after_qty) < abs(before_qty):
else: # abs(after_qty) < abs(before_qty):
effect = 'reduced_position'

# call the relevant strategy event handler:
Expand All @@ -165,7 +165,7 @@ def _on_updated_position(self, order: Order) -> None:
if jh.is_live() and jh.get_config('env.notifications.events.updated_position'):
notifier.notify(txt)
self._on_increased_position(order)
else: # if effect == 'reduced_position':
else: # if effect == 'reduced_position':
txt = f"REDUCED Position size to {after_qty}"
if jh.is_debuggable('position_reduced'):
logger.info(txt)
Expand Down Expand Up @@ -660,7 +660,7 @@ def _check(self) -> None:
if jh.is_debugging():
logger.info(f'Waiting {waiting_seconds} second for pending market exit orders to be handled...')
waiting_counter += 1
if waiting_counter > 12:
if waiting_counter > 22:
raise exceptions.ExchangeNotResponding(
'The exchange did not respond as expected for order execution'
)
Expand Down

0 comments on commit 8b95b1a

Please sign in to comment.