SP-87 Reject attach in before_launch

This commit is contained in:
Eric Harding committed 2019-07-02 09:52:24 -04:00
1 parent 0dcdbd540e
commit 1104f4db1d
1 file changed
+7 -1
@@ -61,6 +61,11 @@ OrderOpResult SplitterAlgo::do_before_launch(IBeforeLaunchAlgoServices& ibl) {
me->orders.reserve(me->exposed_qty / me->clip + 1);
if (ibl.is_attaching()) {
return OrderOpResult{ORDER_ERROR_OP_NOT_SUPPORTED,
"Splitter does not support attach."};
}
return {};
}
@@ -71,7 +76,8 @@ void SplitterAlgo::do_launch(IAlgoServices& ias) {
sync_orders();
}
void SplitterAlgo::do_launch_attached(IAlgoServices &, OrderKey, ChildState) {
//todo
// rejected in before_launch
bts_assert(false);
}
void SplitterAlgo::do_update(const api::orderman::Update& update) {
// Update # child orders