Market Cap: $2.2006T 0.50%
Volume(24h): $37.9391B -38.27%
Fear & Greed Index:

36 - Fear

  • Market Cap: $2.2006T 0.50%
  • Volume(24h): $37.9391B -38.27%
  • Fear & Greed Index:
  • Market Cap: $2.2006T 0.50%
Cryptos
Topics
Cryptospedia
News
CryptosTopics
Videos
Top Cryptospedia

Select Language

Select Language

Select Currency

Cryptos
Topics
Cryptospedia
News
CryptosTopics
Videos

How to switch from cross margin to isolated margin on Bybit mid-trade?

Bybit禁止在存在未平仓头寸或挂单时切换保证金模式,须先清空对应交易对的所有仓位与订单,再通过Settings手动切换或调用API完成隔离/全仓模式变更。

May 30, 2026 at 06:40 pm

Bybit Margin Mode Transition Constraints

1. Bybit does not permit switching between cross and isolated margin modes while active positions or open orders exist on the same trading pair.

2. The platform enforces a hard validation check before mode change: any pending limit, stop-market, or take-profit orders must be canceled manually prior to initiating the switch.

3. Open positions—whether long or short—must be fully closed before accessing the margin mode toggle in the Derivatives interface.

4. Attempting to override this restriction via API or browser devtools triggers immediate HTTP 400 response with error code 130025: 'Cannot change margin mode with active positions'.

5. Users who hold multiple contracts across different symbols must verify each symbol individually; mode change applies per-symbol, not globally.

Step-by-Step Manual Mode Switch Procedure

1. Navigate to the Derivatives trading interface and select the specific contract (e.g., BTC/USDT:USDT).

2. Click the gear icon labeled Settings in the top-right corner of the order entry panel.

3. Locate the Margin Mode section and confirm no green “Active” indicator appears next to any position row.

4. Tap or click the current mode label (e.g., Cross) to reveal the dropdown menu containing Isolated.

5. Select Isolated, then confirm the prompt warning about fund segregation and liquidation risk recalibration.

Fund Segregation Implications

1. Upon successful switch, the system creates a new isolated wallet tied exclusively to that contract symbol.

2. All existing USDT balance remains in the unified account but is no longer accessible for margin on that symbol unless explicitly transferred into the isolated wallet.

3. Initial margin, maintenance margin, and liquidation price are recalculated using only the funds allocated to that isolated wallet—not the total unified balance.

4. Unrealized PnL from prior cross-mode positions is settled and removed from equity calculation before isolation takes effect.

5. Any unused margin balance in the isolated wallet persists across sessions and is visible under Contract Wallet → Isolated Balance.

API-Based Mode Change Workflow

1. Use the private/position/set-leverage endpoint only after confirming position status via private/position/list.

2. Submit a POST request to private/position/set-margin-mode with parameters symbol=BTCUSDT and marginMode=ISOLATED.

3. Include valid recvWindow=5000 and timestamp within 30 seconds of server time obtained from public/time.

4. A successful response returns 'success':true and 'mode':'ISOLATED' without altering open order state.

5. Failure responses include 'ret_code':110037 for insufficient permissions or 'ret_code':130026 for unconfirmed position closure.

Frequently Asked Questions

Q: Can I switch margin mode during a liquidation event?A: No. Bybit locks the margin mode setting entirely when a position enters forced liquidation sequence. The system halts all mode-related requests until liquidation completes and the position is removed from the ledger.

Q: Does switching to isolated margin affect my funding rate accrual?A: Funding rate calculations remain unchanged. Isolation impacts only margin allocation and liquidation mechanics—not the underlying index price, mark price, or funding interval logic.

Q: Why does Bybit require full position closure instead of partial transfer?A: The architecture separates risk engines per mode. Cross mode uses global equity aggregation; isolated mode runs independent risk assessment per symbol. Mixing them would violate internal consistency checks enforced at database transaction level.

Q: Are there fee differences between cross and isolated margin usage?A: No. Taker/maker fees, funding payments, and insurance fund contributions apply identically regardless of margin mode selection.

Disclaimer:info@kdj.com

The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research!

If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.

Related knowledge

See all articles

User not found or password invalid

Your input is correct