Skip to content

Commit

Permalink
fix func: bnc.User.CloseFuturesOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
dwdwow committed Mar 6, 2024
1 parent b0f7e90 commit c3d152b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bnc/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
}

// ------------------------------------------------------------
Expand Down

0 comments on commit c3d152b

Please sign in to comment.