Re-enabled stop orders
This commit is contained in:
1 parent
7b48f71dec
commit
a23fe74cdc
1 file changed
-8
@@ -100,14 +100,6 @@ void NativeOrder::on_init_new(OrderDefinition const &def,
|
||||
break;
|
||||
case CustomOrderDefinition::kStop:
|
||||
me->state.mutable_stop();
|
||||
if (config::get<config::toggles::RejectStopAndStopLimitOrders>()
|
||||
.enabled()) {
|
||||
auto msg =
|
||||
fmt::format("Stop orders have been disabled in this version");
|
||||
me->state.set_last_msg(msg);
|
||||
transition(ORDER_STATUS_REJECTED_BY_SPARK, msg);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case CustomOrderDefinition::kStopLimit:
|
||||
me->state.mutable_stop_limit();
|
||||
|
||||
Reference in new issue
Block a user