support: fix quantity formatting

This commit is contained in:
c9s 2021-06-01 16:39:35 +08:00
parent b9584117d6
commit b60fd9e356

View File

@ -197,6 +197,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
takerBuyBaseVolumeThreshold, takerBuyBaseVolumeThreshold,
s.TakerBuyRatio.Float64(), 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.Notify("Submitting %s market order buy with quantity %f according to the base volume %f, taker buy base volume %f",
s.Symbol, s.Symbol,
quantity, quantity.Float64(),
kline.Volume, kline.Volume,
kline.TakerBuyBaseAssetVolume) kline.TakerBuyBaseAssetVolume)