mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +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,
|
Type: types.OrderTypeLimit,
|
||||||
Market: s.Market,
|
Market: s.Market,
|
||||||
Quantity: quantity.Float64(),
|
Quantity: quantity.Float64(),
|
||||||
Price: price.Float64(),
|
Price: price.Float64() + s.ProfitSpread.Float64(),
|
||||||
TimeInForce: "GTC",
|
TimeInForce: "GTC",
|
||||||
GroupID: s.groupID,
|
GroupID: s.groupID,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user