From 10d5986254b9e75651db90b685c366da11961030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Rasc=C3=A3o?= Date: Mon, 17 Jan 2022 01:43:34 +0000 Subject: [PATCH] huobi futures: add support for market orders (#873) --- exchanges/huobi/huobi_wrapper.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exchanges/huobi/huobi_wrapper.go b/exchanges/huobi/huobi_wrapper.go index 77798636..025a6292 100644 --- a/exchanges/huobi/huobi_wrapper.go +++ b/exchanges/huobi/huobi_wrapper.go @@ -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: