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:
Yo-An Lin 2021-04-12 15:49:14 +08:00 committed by GitHub
commit 9e8989ae15

View File

@ -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 != "" {