1.Position limit check for QHO and 2. QHO crash for rejected orders

This commit is contained in:
Taha Afzal committed 2019-05-27 16:03:44 -04:00
1 parent 61556eb534
commit e8a467d5f1
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -445,6 +445,7 @@ OrderOpResult NativeOrder::on_activate(Price p, Quantity q,
// Early return so we skip the expensive report_state()
// call. It is OK to spkip it because we are bound to report
// our state once the excange aknowledges the order.
update_working_position();
return OrderOpResult{};
}
@@ -85,7 +85,7 @@ bool QHOWorkingStateWorker::_analyze_moving_out(){
QueueHolderOrder::TerminationReason::UNEXPECTED_CHILD_CANCEL);
return true;
}
if(order_man.has_cancelled_order()){
if(order_man.has_errored_order()){
_porder->_cancel_order(QueueHolderOrder::TerminationReason::CHILD_ERROR);
return true;
}