fix: add ioc trade type to order type

This commit is contained in:
David Chang 2021-04-11 20:07:05 +08:00
parent 18e4f4863a
commit fd5433f8fe

View File

@ -150,6 +150,9 @@ func toLocalOrderType(orderType types.OrderType) (max.OrderType, error) {
case types.OrderTypeMarket: case types.OrderTypeMarket:
return max.OrderTypeMarket, nil return max.OrderTypeMarket, nil
case types.OrderTypeIOCLimit:
return max.OrderTypeIOCLimit, nil
} }
return "", fmt.Errorf("order type %s not supported", orderType) return "", fmt.Errorf("order type %s not supported", orderType)