bollmaker: add TimeInForce for futures limit order support

This commit is contained in:
austin362667 2022-03-28 21:12:11 +08:00
parent 3f3fb1fe35
commit a8484046d3

View File

@ -326,6 +326,7 @@ func (s *Strategy) placeOrders(ctx context.Context, orderExecutor bbgo.OrderExec
Price: askPrice,
Market: s.Market,
GroupID: s.groupID,
TimeInForce: types.TimeInForceGTC,
}
buyOrder := types.SubmitOrder{
Symbol: s.Symbol,
@ -335,6 +336,7 @@ func (s *Strategy) placeOrders(ctx context.Context, orderExecutor bbgo.OrderExec
Price: bidPrice,
Market: s.Market,
GroupID: s.groupID,
TimeInForce: types.TimeInForceGTC,
}
var submitOrders []types.SubmitOrder