Skip to content

Commit 99baf9b

Browse files
authored
Merge pull request #425 from battmdpkq/master
fix some typos
2 parents 47f3b32 + 0ac09ff commit 99baf9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jesse/modes/optimize_mode/Optimize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def evolve(self) -> list:
206206
self.generate_initial_population()
207207

208208
if len(self.population) < 0.5 * self.population_size:
209-
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.'
209+
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.'
210210
logger.log_optimize_mode(msg)
211211
raise ValueError(msg)
212212

tests/test_broker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def test_stop_loss():
160160
assert position.entry_price == 50
161161
assert position.qty == 1
162162
assert exchange.available_margin == 950
163-
# even executed orders should not affect wallet_balance unless it's for reducing positon
163+
# even executed orders should not affect wallet_balance unless it's for reducing position
164164
assert exchange.wallet_balance == 1000
165165

166166
order = broker.reduce_position_at(1, 40, 50)

0 commit comments

Comments
 (0)