mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
fix: add ioc trade type to order type
This commit is contained in:
parent
c30a84fb7f
commit
0db2cc2c96
|
@ -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