remove mmp and mmp_post_only

This commit is contained in:
Alan.sung 2023-08-22 15:14:18 +08:00
parent 3dce63710a
commit a4aa9c2eda
2 changed files with 7 additions and 9 deletions

View File

@ -214,10 +214,10 @@ func toGlobalOrderType(orderType okexapi.OrderType) (types.OrderType, error) {
case okexapi.OrderTypeMarket:
return types.OrderTypeMarket, nil
case okexapi.OrderTypeLimit, okexapi.OrderTypeFOK, okexapi.OrderTypeIOC, okexapi.OrderTypeMarketMakerProtection:
case okexapi.OrderTypeLimit, okexapi.OrderTypeFOK, okexapi.OrderTypeIOC:
return types.OrderTypeLimit, nil
case okexapi.OrderTypePostOnly, okexapi.OrderTypeMarketMakerProtectionPostOnly:
case okexapi.OrderTypePostOnly:
return types.OrderTypeLimitMaker, nil
}

View File

@ -33,13 +33,11 @@ const (
type OrderType string
const (
OrderTypeMarket OrderType = "market"
OrderTypeLimit OrderType = "limit"
OrderTypePostOnly OrderType = "post_only"
OrderTypeFOK OrderType = "fok"
OrderTypeIOC OrderType = "ioc"
OrderTypeMarketMakerProtection OrderType = "mmp"
OrderTypeMarketMakerProtectionPostOnly OrderType = "mmp_and_post_only"
OrderTypeMarket OrderType = "market"
OrderTypeLimit OrderType = "limit"
OrderTypePostOnly OrderType = "post_only"
OrderTypeFOK OrderType = "fok"
OrderTypeIOC OrderType = "ioc"
)
type InstrumentType string