From 056afb577ca4b9bc829ad32a548c632589cac2cb Mon Sep 17 00:00:00 2001 From: TonyQ Date: Tue, 30 Nov 2021 11:55:00 +0800 Subject: [PATCH] fix generateGridSellOrders with ProfitSpread for begining --- pkg/strategy/grid/strategy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/strategy/grid/strategy.go b/pkg/strategy/grid/strategy.go index 251259c2d..47b7b94aa 100644 --- a/pkg/strategy/grid/strategy.go +++ b/pkg/strategy/grid/strategy.go @@ -206,7 +206,7 @@ func (s *Strategy) generateGridSellOrders(session *bbgo.ExchangeSession) ([]type Type: types.OrderTypeLimit, Market: s.Market, Quantity: quantity.Float64(), - Price: price.Float64(), + Price: price.Float64() + s.ProfitSpread.Float64(), TimeInForce: "GTC", GroupID: s.groupID, })