From 94a30d652f31d125f8b8424472e8c42e321fbe94 Mon Sep 17 00:00:00 2001 From: Nikhil Saraf <1028334+nikhilsaraf@users.noreply.github.com> Date: Sun, 25 Oct 2020 22:34:32 +0530 Subject: [PATCH] improve condition for placeSellOpsFirst in mirror strategy related to change in 5046b0f3de0871a1e8ae3f5afd224f2d4b256b8c (#528) --- plugins/mirrorStrategy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mirrorStrategy.go b/plugins/mirrorStrategy.go index b94262b53..9c986e7f6 100644 --- a/plugins/mirrorStrategy.go +++ b/plugins/mirrorStrategy.go @@ -458,7 +458,7 @@ func (s *mirrorStrategy) UpdateWithOps( } log.Printf("num. sellOps in this update: %d\n", len(sellOps)) - placeSellOpsFirst := len(ob.Bids()) > 0 && len(sellingAOffers) > 0 && ob.Bids()[0].Price.AsFloat() >= utils.PriceAsFloat(sellingAOffers[0].Price) + placeSellOpsFirst := len(bids) > 0 && len(sellingAOffers) > 0 && bids[0].Price.AsFloat() >= utils.PriceAsFloat(sellingAOffers[0].Price) if debugLogOffersOrders { if placeSellOpsFirst { log.Printf("---> passed placeSellOpsFirst condition where top bid (bids[0]) > first open ask offer (sellingAOffers[0]), placing sellOps first\n")