mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-21 00:31:10 +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:
|
case max.OrderTypeStopMarket:
|
||||||
return types.OrderTypeStopMarket
|
return types.OrderTypeStopMarket
|
||||||
|
|
||||||
|
case max.OrderTypeIOCLimit:
|
||||||
|
return types.OrderTypeIOCLimit
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.Errorf("unknown order type: %v", orderType)
|
logger.Errorf("unknown order type: %v", orderType)
|
||||||
|
|
|
@ -62,6 +62,7 @@ const (
|
||||||
OrderTypeMarket OrderType = "MARKET"
|
OrderTypeMarket OrderType = "MARKET"
|
||||||
OrderTypeStopLimit OrderType = "STOP_LIMIT"
|
OrderTypeStopLimit OrderType = "STOP_LIMIT"
|
||||||
OrderTypeStopMarket OrderType = "STOP_MARKET"
|
OrderTypeStopMarket OrderType = "STOP_MARKET"
|
||||||
|
OrderTypeIOCLimit OrderType = "IOC_LIMIT"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user