mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 17:13:51 +00:00
Merge pull request #198 from c9s/feature/add-ioc-order-type-support-to-max
fix: add ioc trade type to order type
This commit is contained in:
commit
9e8989ae15
|
@ -334,7 +334,7 @@ func toMaxSubmitOrder(o types.SubmitOrder) (*maxapi.Order, error) {
|
|||
}
|
||||
|
||||
switch o.Type {
|
||||
case types.OrderTypeStopLimit, types.OrderTypeLimit, types.OrderTypeLimitMaker:
|
||||
case types.OrderTypeStopLimit, types.OrderTypeLimit, types.OrderTypeLimitMaker, types.OrderTypeIOCLimit:
|
||||
priceInString := o.PriceString
|
||||
if len(priceInString) == 0 {
|
||||
if o.Market.Symbol != "" {
|
||||
|
|
Loading…
Reference in New Issue
Block a user