One-way position mode
In the one-way position mode, a contract is only allowed to hold positions in one direction. When opening a position in the opposite direction, the existing position will be closed first, and then the position will be opened.
For example, in the BTCUSDT contract, you hold a long position of 1 BTC in the one-way position mode, and when you open a short position of 2 BTC, your position will become a short position of 1 BTC.
Two-way position mode
In the two-way position mode, a contract can hold positions in both directions at the same time, and opening a position in the opposite direction will open a position in the opposite direction, but the position in the opposite direction will not carry out risk hedging. When the direction moves, the position in one direction will be liquidated.
For example, in the BTCUSDT contract, you hold a long position of 1 BTC in the two-way position mode, and when you open a short position of 2 BTC, your position will become a long position of 1 BTC + a short position of 2 BTC.