removed redundant code

This commit is contained in:
Mohammad Arham committed 2024-04-03 16:56:31 -04:00
1 parent ff73756a55
commit 3e32f684e3
1 file changed
+5 -5
@@ -284,11 +284,11 @@ void QuotingAlgo::on_book(SecurityKey sec_key, Book const &book) {
const md::PriceSize &ask = me->sec_book->ask().at(0);
//infers if limit order got filled and if it did does not try to update it
if (me->child_order_key != null_order_key() &&
((me->algo_params->side == api::SIDE_BUY && ask.price() <= me->child_order_price.value()) ||
(me->algo_params->side != api::SIDE_BUY && bid.price() >= me->child_order_price.value()))) {
return;
}
// if (me->child_order_key != null_order_key() &&
// ((me->algo_params->side == api::SIDE_BUY && ask.price() <= me->child_order_price.value()) ||
// (me->algo_params->side != api::SIDE_BUY && bid.price() >= me->child_order_price.value()))) {
// return;
// }
double mid_price=(bid.price() + ask.price())/2;
quote(mid_price);