Skip to content

Commit

Permalink
Merge pull request #425 from battmdpkq/master
Browse files Browse the repository at this point in the history
fix some typos
  • Loading branch information
saleh-mir authored Mar 16, 2024
2 parents 47f3b32 + 0ac09ff commit 99baf9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jesse/modes/optimize_mode/Optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def evolve(self) -> list:
self.generate_initial_population()

if len(self.population) < 0.5 * self.population_size:
msg = f'Too many errors! less than half of the expected population size could be generated. Only {len(self.population)} indviduals from planned {self.population_size} are usable.'
msg = f'Too many errors! less than half of the expected population size could be generated. Only {len(self.population)} individuals from planned {self.population_size} are usable.'
logger.log_optimize_mode(msg)
raise ValueError(msg)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def test_stop_loss():
assert position.entry_price == 50
assert position.qty == 1
assert exchange.available_margin == 950
# even executed orders should not affect wallet_balance unless it's for reducing positon
# even executed orders should not affect wallet_balance unless it's for reducing position
assert exchange.wallet_balance == 1000

order = broker.reduce_position_at(1, 40, 50)
Expand Down

0 comments on commit 99baf9b

Please sign in to comment.