mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
Merge pull request #284 from tony1223/main
fix generateGridSellOrders with ProfitSpread for begining
This commit is contained in:
commit
114828b174
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user