fix generateGridSellOrders with ProfitSpread for begining

This commit is contained in:
TonyQ 2021-11-30 11:55:00 +08:00
parent 5ed337926d
commit 056afb577c

View File

@ -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,
})