cleaned debug messages
This commit is contained in:
parent
d51facc0b2
commit
ff17972f5b
@ -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 {
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user