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

This commit is contained in:
Yo-An Lin 2021-04-12 09:46:50 +08:00 committed by GitHub
commit 18e4f4863a
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"
)
/*