mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
bollmaker: add TimeInForce for futures limit order support
This commit is contained in:
parent
3f3fb1fe35
commit
a8484046d3
|
@ -326,6 +326,7 @@ func (s *Strategy) placeOrders(ctx context.Context, orderExecutor bbgo.OrderExec
|
||||||
Price: askPrice,
|
Price: askPrice,
|
||||||
Market: s.Market,
|
Market: s.Market,
|
||||||
GroupID: s.groupID,
|
GroupID: s.groupID,
|
||||||
|
TimeInForce: types.TimeInForceGTC,
|
||||||
}
|
}
|
||||||
buyOrder := types.SubmitOrder{
|
buyOrder := types.SubmitOrder{
|
||||||
Symbol: s.Symbol,
|
Symbol: s.Symbol,
|
||||||
|
@ -335,6 +336,7 @@ func (s *Strategy) placeOrders(ctx context.Context, orderExecutor bbgo.OrderExec
|
||||||
Price: bidPrice,
|
Price: bidPrice,
|
||||||
Market: s.Market,
|
Market: s.Market,
|
||||||
GroupID: s.groupID,
|
GroupID: s.groupID,
|
||||||
|
TimeInForce: types.TimeInForceGTC,
|
||||||
}
|
}
|
||||||
|
|
||||||
var submitOrders []types.SubmitOrder
|
var submitOrders []types.SubmitOrder
|
||||||
|
|
Loading…
Reference in New Issue
Block a user