Merge pull request #197 from c9s/feature/add-ioc-order-type-support-to-max

This commit is contained in:
Yo-An Lin 2021-04-12 11:09:09 +08:00 committed by GitHub
commit ceef007c21

View File

@ -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)