mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-18 15:10:03 +00:00
huobi futures: add support for market orders (#873)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user