mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45: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:
|
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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,8 +38,6 @@ const (
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user