rust #10

Merged
peperunas merged 127 commits from rust into master 2021-02-18 09:42:16 +00:00
2 changed files with 3 additions and 7 deletions
Showing only changes of commit ff17972f5b - Show all commits

View File

@ -281,7 +281,6 @@ impl PositionManager {
.insert(self.current_tick(), pos_post_tick.clone());
self.active_position = Some(pos_post_tick);
println!("Message: {:?}", messages);
return Ok((events, messages));
}
}
@ -600,7 +599,6 @@ impl PairManager {
messages.merge(opt_pos_messages);
messages.merge(opt_order_messages);
println!("Total messages: {:?}", messages);
// TODO: to move into Handler?
if let Some(messages) = messages {
for m in messages {

View File

@ -81,9 +81,9 @@ impl TrailingStop {
}
fn update_stop_percentage(&mut self, position: &Position) {
println!(
"State: {:?} | PL%: {:0.2}",
position.profit_state(),
info!(
"\tState: {:?} | PL%: {:0.2}",
position.profit_state().unwrap(),
position.pl_perc()
);
@ -239,8 +239,6 @@ impl PositionStrategy for TrailingStop {
self.update_stop_percentage(&position);
println!("Stop percentage: {:?}", self.stop_percentages);
(position, None, None)
}
}