From 8c3992d514e2469f62633db5c13e06061b81fffe Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 9 Jun 2021 03:07:26 +0800 Subject: [PATCH] max: no need to check order volume separately --- pkg/exchange/max/exchange.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/exchange/max/exchange.go b/pkg/exchange/max/exchange.go index 15ae94747..53ffd7c63 100644 --- a/pkg/exchange/max/exchange.go +++ b/pkg/exchange/max/exchange.go @@ -459,16 +459,13 @@ func (e *Exchange) SubmitOrders(ctx context.Context, orders ...types.SubmitOrder req := e.client.OrderService.NewCreateOrderRequest(). Market(maxOrder.Market). Side(maxOrder.Side). + Volume(maxOrder.Volume). OrderType(string(maxOrder.OrderType)) if len(maxOrder.ClientOID) > 0 { req.ClientOrderID(maxOrder.ClientOID) } - if len(maxOrder.Volume) > 0 { - req.Volume(maxOrder.Volume) - } - if len(maxOrder.Price) > 0 { req.Price(maxOrder.Price) }