huobi futures: add support for market orders (#873)

This commit is contained in:
Luis Rascão
2022-01-17 01:43:34 +00:00
committed by GitHub
parent 058db10984
commit 10d5986254

View File

@@ -945,6 +945,11 @@ func (h *HUOBI) SubmitOrder(ctx context.Context, s *order.Submit) (order.SubmitR
}
var oType string
switch s.Type {
case order.Market:
oType = "opponent"
if s.ImmediateOrCancel {
oType = "opponent_ioc"
}
case order.Limit:
oType = "limit"
case order.PostOnly: