From 82e58b49381973efa5adc12c0f0238432f6cce2c Mon Sep 17 00:00:00 2001 From: Nikhil Saraf <1028334+nikhilsaraf@users.noreply.github.com> Date: Thu, 4 Apr 2019 16:18:06 -0700 Subject: [PATCH] turn off minBaseVolume checks in mirror strategy when offsetTrades=false, closes #146 --- plugins/mirrorStrategy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mirrorStrategy.go b/plugins/mirrorStrategy.go index 4454b2eb6..bb5224159 100644 --- a/plugins/mirrorStrategy.go +++ b/plugins/mirrorStrategy.go @@ -374,7 +374,7 @@ func (s *mirrorStrategy) doModifyOffer( // convert the precision from the backing exchange to the primary exchange offerPrice := model.NumberByCappingPrecision(price, s.primaryConstraints.PricePrecision) offerAmount := model.NumberByCappingPrecision(vol, s.primaryConstraints.VolumePrecision) - if offerAmount.AsFloat() < s.backingConstraints.MinBaseVolume.AsFloat() { + if s.offsetTrades && offerAmount.AsFloat() < s.backingConstraints.MinBaseVolume.AsFloat() { log.Printf("deleting level, baseVolume (%f) on backing exchange dropped below minBaseVolume of backing exchange (%f)\n", offerAmount.AsFloat(), s.backingConstraints.MinBaseVolume.AsFloat()) deleteOp := s.sdex.DeleteOffer(oldOffer)