The “Deal” Illusion: Why Our Bots and Exchanges Don’t See Risk the Same Way
As bot traders, we often visualize our portfolios as a collection of separate, independent “Deals.” We might have a “Deal A” acting as a conservative swing trade and a “Deal B” running a high-frequency scalping strategy. However, we need to be aware of a fundamental architectural conflict: our bots operate on a Logical Layer, while the exchange operates on a Physical Execution Layer.
If we don’t understand how these two layers interact, we risk unexpected liquidations that no bot-stop-loss can prevent.
1. The Core Discrepancy: Virtual vs. Physical
Our bot providers maintain a database of “Deals”—individual objects with their own entries and targets. But at the exchange level, these distinctions don’t exist. The exchange only recognizes a Position.
When our bot opens multiple deals for the same asset (e.g., BTC/USDT), the exchange simply merges them into a single bucket. It averages our entry prices and, most importantly, calculates one single Liquidation Price for the entire stack. We cannot partially liquidate “Deal A” while keeping “Deal B” alive; if that shared liquidation point is hit, the exchange wipes the entire position, and all our deals for that asset vanish instantly.
2. The “Blast Radius” of a Liquidation
The way we configure our accounts determines the “Blast Radius” of a disaster. We generally have three levels of risk containment:
-
Isolated Margin (Pair-Level Risk): Here, we manually allocate funds to a specific pair. This acts as a firewall, protecting the rest of our account. However, within that pair, there is zero isolation. If we run a high-risk strategy and a low-risk strategy on the same asset, the high-risk one can trigger a liquidation that destroys both.
-
Cross Margin (Wallet-Level Risk): In this mode, all our positions share a single pool of collateral. While this is great for capital efficiency—allowing our winning trades to support our losing ones—it creates a dangerous “domino effect.” A single runaway trade in a volatile altcoin can drain our entire wallet, liquidating every other unrelated position we have open.
-
Unified Trading Accounts (Systemic Risk): Modern Unified Accounts represent the ultimate lack of “Separation of Concerns.” The exchange treats our entire account—Spot holdings, Cash, and Unrealized Profits—as one giant collateral pool. In this environment, a bad Futures trade can force the exchange to auto-sell our long-term “Spot HODL” stack just to cover a margin deficit.
3. The Global State Trap: Leverage & Mode
We must remember that exchanges treat Leverage and Margin Mode as Global Properties for a pair.
-
Leverage Conflict: If we try to run one bot at 5x and another at 20x on the same pair, the exchange will usually update the entire position to 20x the moment the second bot sends an order. Our “safe” 5x trade is instantly exposed to extreme risk.
-
Mode Conflict: We cannot mix Cross and Isolated modes for the same asset. The exchange forces us into one global setting.
The Solution: True Strategic Isolation
If we want to achieve true separation—where a failure in one strategy cannot crash another—we cannot rely on margin modes alone. The only State of the Art solution is to use Exchange Sub-Accounts.
By assigning different strategies to separate Sub-Accounts with their own API keys, we create mathematical firewalls. A liquidation in Sub-Account A has zero impact on Sub-Account B. This is the only way to ensure that our “high-risk” experiments don’t accidentally liquidate our “low-risk” foundations.