Fixed merge.
This commit is contained in:
1 parent
4febc07aa0
commit
a9fc3d43a0
3 files changed
+4
-6
No files matched your search
@@ -234,7 +234,6 @@ OrderOpResult BookAlgo::on_activate(Price p, Quantity q, OrderServices &services
|
||||
}
|
||||
|
||||
OrderOpResult BookAlgo::on_update(Price p, Quantity q) {
|
||||
{
|
||||
LOG(OrderMan, Info, "Updating BookAlgo {}", key().value());
|
||||
switch (this_state().status())
|
||||
{
|
||||
@@ -292,8 +291,6 @@ OrderOpResult BookAlgo::on_update(Price p, Quantity q) {
|
||||
}
|
||||
|
||||
OrderOpResult BookAlgo::on_cancel() {
|
||||
|
||||
|
||||
LOG(OrderMan, Info, "Canceling BookAlgo Order {}", key().value());
|
||||
|
||||
switch (this_state().status())
|
||||
@@ -308,7 +305,7 @@ OrderOpResult BookAlgo::on_cancel() {
|
||||
if(!me->is_detached)
|
||||
me->child.cancel();
|
||||
for(auto& i : me->hedges)
|
||||
i.detach();
|
||||
i.second.detach();
|
||||
transition(ORDER_STATUS_CANCELED);
|
||||
break;
|
||||
case ORDER_STATUS_PENDING_WORKING:
|
||||
|
||||
@@ -194,7 +194,7 @@ void OCOOrder::on_book_update(const bts::orderman::BookUpdateEvent& )
|
||||
}
|
||||
}
|
||||
|
||||
void OCOOrder::on_cancel(trace::CorID const&)
|
||||
OrderOpResult OCOOrder::on_cancel()
|
||||
{
|
||||
LOG(OrderMan, Info, "Canceling OCOOrder Order {}", key().value());
|
||||
|
||||
@@ -249,6 +249,7 @@ void OCOOrder::on_cancel(trace::CorID const&)
|
||||
break;
|
||||
}
|
||||
report_state();
|
||||
return OrderOpResult{};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ public:
|
||||
OCOOrder();
|
||||
virtual ~OCOOrder();
|
||||
|
||||
void on_cancel(trace::CorID const&) override ;
|
||||
OrderOpResult on_cancel() override ;
|
||||
protected:
|
||||
void setup_child(const api::orderman::OrderDefinition&, const PreActivationOrderServices&,
|
||||
api::orderman::OrderState&, api::orderman::OrderDefinition*) override;
|
||||
|
||||
Reference in new issue
Block a user