diff --git a/docker/linux b/docker/linux index 653781226..56c61231f 160000 --- a/docker/linux +++ b/docker/linux @@ -1 +1 @@ -Subproject commit 65378122620c7a26561641cb49b477c822b315f2 +Subproject commit 56c61231f38261f275e0b26baae70622c760dc33 diff --git a/src/lib/orderman/orders/algo/algo_orders/TaskingEyeAlgo.cpp b/src/lib/orderman/orders/algo/algo_orders/TaskingEyeAlgo.cpp index ae70189e6..b7501f920 100644 --- a/src/lib/orderman/orders/algo/algo_orders/TaskingEyeAlgo.cpp +++ b/src/lib/orderman/orders/algo/algo_orders/TaskingEyeAlgo.cpp @@ -148,7 +148,7 @@ TaskingEyeAlgo::~TaskingEyeAlgo() {} OrderOpResult TaskingEyeAlgo::do_before_launch( IBeforeLaunchAlgoServices &serv) { auto is_data_valid = [&]() { - return greater_then_eq(1, me->shot_size) && + return greater_then_eq(0, me->shot_size) && greater_then_eq(1, me->target_qty) && greater_then_eq(1, me->max_shots_per_window) && greater_then_eq(1000000000, me->window_size_nanos) && @@ -351,6 +351,10 @@ void TaskingEyeAlgo::_evaluate_and_shoot() { TEASecData &sec_data = it->second; auto ch_ord_key = me->service_ptr->launch_child(*sec_data.order, price, qty); + LOG(OrderMan, Info, + "TakingEyeAlgo::_evaluate_and_shoot ord_key: {} child_ord_key: {} " + "price: {} qty: {}", + me->service_ptr->order_key(), ch_ord_key, price, qty.full_value()); me->shots.push_back(TEAShot{sec_key, ch_ord_key}); } } @@ -387,7 +391,7 @@ bool TaskingEyeAlgo::_in_shooting_zone( if (greater_then_eq(1, md_ask.size()) && greater_then_eq(md_ask.price(), ee_buy_pr)) { price = Price(md_ask.price()); - qty = std::min(md_ask.size(), (uint)me->shot_size); + qty = std::min(static_cast(md_ask.size()), me->shot_size); return true; } } else { @@ -400,7 +404,7 @@ bool TaskingEyeAlgo::_in_shooting_zone( if (greater_then_eq(1, md_bid.size()) && greater_then_eq(ee_sell_pr, md_bid.price())) { price = Price(md_bid.price()); - qty = std::min(md_bid.size(), (uint)me->shot_size); + qty = std::min(static_cast(md_bid.size()), me->shot_size); return true; } }