fix: add ioc trade type to order type

This commit is contained in:
David Chang 2021-04-11 20:07:05 +08:00
parent c30a84fb7f
commit 0db2cc2c96
2 changed files with 4 additions and 0 deletions

View File

@ -124,6 +124,9 @@ func toGlobalOrderType(orderType max.OrderType) types.OrderType {
case max.OrderTypeStopMarket:
return types.OrderTypeStopMarket
case max.OrderTypeIOCLimit:
return types.OrderTypeIOCLimit
}
logger.Errorf("unknown order type: %v", orderType)

View File

@ -62,6 +62,7 @@ const (
OrderTypeMarket OrderType = "MARKET"
OrderTypeStopLimit OrderType = "STOP_LIMIT"
OrderTypeStopMarket OrderType = "STOP_MARKET"
OrderTypeIOCLimit OrderType = "IOC_LIMIT"
)
/*