side on the same positionSide, with reduceOnly: true.LONG because that is the position being closed. The side flips to SELL because selling is what closes a long.Closing a position is not the same as cancelling an order. Cancel ( DELETE /v1/futures/orders/{id}) removes an order that has not filled yet.Close (this request) opens an opposing order that flattens a position you already hold. Cancelling a filled order does nothing. You still hold the position.
reduceOnly: true is the safety catch. It guarantees the order can only shrink an existing position, never open a new one or flip you into the opposite direction if you get the quantity wrong. Always use it when closing.reduceOnly order fully covered by an existing position can reserve "0" margin, which is correct and not a bug.FUTURES_TRADE