From 9c108380e8a7223d1a2e87666859bec84fc4bdfe Mon Sep 17 00:00:00 2001 From: narumi <4680567+narumiruna@users.noreply.github.com> Date: Sun, 7 Jan 2024 18:56:57 +0800 Subject: [PATCH] xgap: print currency --- pkg/strategy/xgap/strategy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/strategy/xgap/strategy.go b/pkg/strategy/xgap/strategy.go index 779718272..232301bd0 100644 --- a/pkg/strategy/xgap/strategy.go +++ b/pkg/strategy/xgap/strategy.go @@ -336,12 +336,12 @@ func (s *Strategy) placeOrders(ctx context.Context) { minQuantity := s.tradingMarket.AdjustQuantityByMinNotional(s.tradingMarket.MinQuantity, price) if baseBalance.Available.Compare(minQuantity) < 0 { - log.Infof("base balance: %s is not enough, skip", baseBalance.Available.String()) + log.Infof("base balance: %s %s is not enough, skip", baseBalance.Available.String(), s.tradingMarket.BaseCurrency) return } if quoteBalance.Available.Div(price).Compare(minQuantity) < 0 { - log.Infof("quote balance: %s is not enough, skip", quoteBalance.Available.String()) + log.Infof("quote balance: %s %s is not enough, skip", quoteBalance.Available.String(), s.tradingMarket.QuoteCurrency) return }