Merge pull request #284 from tony1223/main

fix generateGridSellOrders with ProfitSpread for begining
This commit is contained in:
Yo-An Lin 2021-12-01 16:23:03 +08:00 committed by GitHub
commit 114828b174

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