mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 17:13:51 +00:00
Merge pull request #196 from c9s/feature/add-ioc-order-type-support-to-max
This commit is contained in:
commit
18e4f4863a
|
@ -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)
|
||||
|
|
|
@ -62,6 +62,7 @@ const (
|
|||
OrderTypeMarket OrderType = "MARKET"
|
||||
OrderTypeStopLimit OrderType = "STOP_LIMIT"
|
||||
OrderTypeStopMarket OrderType = "STOP_MARKET"
|
||||
OrderTypeIOCLimit OrderType = "IOC_LIMIT"
|
||||
)
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user