From b60fd9e3567574731ceee85f32ffe6e671b1dc7d Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 1 Jun 2021 16:39:35 +0800 Subject: [PATCH] support: fix quantity formatting --- pkg/strategy/support/strategy.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/strategy/support/strategy.go b/pkg/strategy/support/strategy.go index 7c8ff8089..35df9df75 100644 --- a/pkg/strategy/support/strategy.go +++ b/pkg/strategy/support/strategy.go @@ -197,6 +197,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se takerBuyBaseVolumeThreshold, s.TakerBuyRatio.Float64(), ) + return } } @@ -255,7 +256,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se s.Notify("Submitting %s market order buy with quantity %f according to the base volume %f, taker buy base volume %f", s.Symbol, - quantity, + quantity.Float64(), kline.Volume, kline.TakerBuyBaseAssetVolume)