Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
turn off minBaseVolume checks in mirror strategy when offsetTrades=fa…
Browse files Browse the repository at this point in the history
…lse, closes #146
  • Loading branch information
nikhilsaraf committed Apr 4, 2019
1 parent 6e879e2 commit 82e58b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/mirrorStrategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 82e58b4

Please sign in to comment.