As long as you close a position or open a position and it's not an immediate trade, it's a pending order. If you open or close a position and it's an immediate trade, it's a market order. The transaction fee for market orders is several times higher than for pending orders!