From fd5433f8fe7cd7ae91713890e834c757a13f13e9 Mon Sep 17 00:00:00 2001 From: David Chang Date: Sun, 11 Apr 2021 20:07:05 +0800 Subject: [PATCH] fix: add ioc trade type to order type --- pkg/exchange/max/convert.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/exchange/max/convert.go b/pkg/exchange/max/convert.go index 2a6f9707d..e099126a3 100644 --- a/pkg/exchange/max/convert.go +++ b/pkg/exchange/max/convert.go @@ -150,6 +150,9 @@ func toLocalOrderType(orderType types.OrderType) (max.OrderType, error) { case types.OrderTypeMarket: return max.OrderTypeMarket, nil + + case types.OrderTypeIOCLimit: + return max.OrderTypeIOCLimit, nil } return "", fmt.Errorf("order type %s not supported", orderType)