mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
remove mmp and mmp_post_only
This commit is contained in:
parent
3dce63710a
commit
a4aa9c2eda
|
@ -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
|
||||
|
||||
}
|
||||
|
|
|
@ -38,8 +38,6 @@ const (
|
|||
OrderTypePostOnly OrderType = "post_only"
|
||||
OrderTypeFOK OrderType = "fok"
|
||||
OrderTypeIOC OrderType = "ioc"
|
||||
OrderTypeMarketMakerProtection OrderType = "mmp"
|
||||
OrderTypeMarketMakerProtectionPostOnly OrderType = "mmp_and_post_only"
|
||||
)
|
||||
|
||||
type InstrumentType string
|
||||
|
|
Loading…
Reference in New Issue
Block a user