Adding logs
This commit is contained in:
1 parent
f20c53bced
commit
5eeb5a534c
2 files changed
+6
-12
No files matched your search
@@ -408,16 +408,6 @@ void PyramidAlgo::_switch_state(Status new_state){
|
||||
me->state = new_state;
|
||||
}
|
||||
|
||||
void PyramidAlgo::_handle_order_in_waiting_cancel(LegData& leg,
|
||||
const ChildState& st){
|
||||
leg.order_state = st;
|
||||
if(leg.is_top_spread()){
|
||||
_algo().update_fill_state(st.total_fills, st.last_price);
|
||||
_send_hedges(st.last_fills);
|
||||
}
|
||||
_check_for_completion();
|
||||
}
|
||||
|
||||
void PyramidAlgo::_send_hedges (Quantity filled_qty){
|
||||
if (filled_qty.value() > 0)
|
||||
for (auto& l : me->legs)
|
||||
@@ -441,7 +431,12 @@ void PyramidAlgo::_update_top_spread(){
|
||||
Update child_update;
|
||||
child_update.set_price(me->out_price.value());
|
||||
child_update.set_quantity(me->out_qty.value());
|
||||
// TODO log
|
||||
LOG(OrderMan, Info,"PyramidAlgo::_update_top_spread modifying order key:{} "
|
||||
"child_key:{} price:{} qty:{}",
|
||||
_algo().order_key(),
|
||||
me->legs[0].order_key,
|
||||
me->out_price,
|
||||
me->out_qty);
|
||||
_algo().update_child(me->legs[0].order_key, child_update);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,6 @@ private:
|
||||
// acts on md, cognizant of the state
|
||||
void _analyze_md_and_act();
|
||||
void _switch_state (Status new_status);
|
||||
void _handle_order_in_waiting_cancel (LegData&, const ChildState &st);
|
||||
void _send_hedges (Quantity filled_qty);
|
||||
// updates it to the price, qty in the state
|
||||
void _update_top_spread();
|
||||
|
||||
Reference in new issue
Block a user