mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-14 02:53:50 +00:00
Merge pull request #197 from c9s/feature/add-ioc-order-type-support-to-max
This commit is contained in:
commit
ceef007c21
|
@ -150,6 +150,9 @@ func toLocalOrderType(orderType types.OrderType) (max.OrderType, error) {
|
||||||
|
|
||||||
case types.OrderTypeMarket:
|
case types.OrderTypeMarket:
|
||||||
return max.OrderTypeMarket, nil
|
return max.OrderTypeMarket, nil
|
||||||
|
|
||||||
|
case types.OrderTypeIOCLimit:
|
||||||
|
return max.OrderTypeIOCLimit, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return "", fmt.Errorf("order type %s not supported", orderType)
|
return "", fmt.Errorf("order type %s not supported", orderType)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user