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: case okexapi.OrderTypeMarket:
return types.OrderTypeMarket, nil return types.OrderTypeMarket, nil
case okexapi.OrderTypeLimit, okexapi.OrderTypeFOK, okexapi.OrderTypeIOC, okexapi.OrderTypeMarketMakerProtection: case okexapi.OrderTypeLimit, okexapi.OrderTypeFOK, okexapi.OrderTypeIOC:
return types.OrderTypeLimit, nil return types.OrderTypeLimit, nil
case okexapi.OrderTypePostOnly, okexapi.OrderTypeMarketMakerProtectionPostOnly: case okexapi.OrderTypePostOnly:
return types.OrderTypeLimitMaker, nil return types.OrderTypeLimitMaker, nil
} }

View File

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