From c3d152b2cd74682c484df0f1e8ab624f8dc58ce4 Mon Sep 17 00:00:00 2001 From: dwd Date: Thu, 7 Mar 2024 07:27:52 +0800 Subject: [PATCH] fix func: bnc.User.CloseFuturesOrder --- bnc/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bnc/user.go b/bnc/user.go index 74668f2..2b427b1 100644 --- a/bnc/user.go +++ b/bnc/user.go @@ -249,8 +249,8 @@ func (u *User) QueryFuturesOrder(symbol string, orderId int64, cltOrdId string, return cex.Request(u, FuturesQueryOrderConfig, FuturesQueryOrCancelOrderParams{Symbol: symbol, OrderId: orderId, OrigClientOrderId: cltOrdId}, opts...) } -func (u *User) CloseFuturesOrder(symbol string, opts ...cex.CltOpt) (*resty.Response, FuturesOrder, cex.RequestError) { - return cex.Request(u, FuturesNewOrderConfig, FuturesNewOrderParams{Symbol: symbol, PositionSide: u.cfg.fuPosSide, ReduceOnly: SmallTrue}, opts...) +func (u *User) CloseFuturesOrder(symbol string, side OrderSide, opts ...cex.CltOpt) (*resty.Response, FuturesOrder, cex.RequestError) { + return cex.Request(u, FuturesNewOrderConfig, FuturesNewOrderParams{Symbol: symbol, PositionSide: u.cfg.fuPosSide, Side: side, ReduceOnly: SmallTrue}, opts...) } // ------------------------------------------------------------