Home / Blog / KCEX

What happens to a DOGE long and short in KCEX Hedge Mode when cross margin hits 100%?

The self-matching step most hedgers never read

By Updated

Key takeaway

Hedge Mode on KCEX lets you hold a long and a short on the same contract at the same time. The part that matters for risk is not the definition. It is what KCEX does with those two legs when a cross-margin account reaches liquidation.

KCEX logo, for the post: What happens to a DOGE long and short in KCEX Hedge Mode when cross margin hits 100%? The self-matching step most hedgers never read
KCEX logo.

Steps first: the order KCEX follows at liquidation

KCEX's liquidation guide sets out the process in four steps once the margin ratio reaches 100% or more:

  1. Order cancellation. In cross-margin mode, the system cancels all current open orders in the account. If the ratio is still at or above 100%, it moves on.
  2. Self-matching of long and short positions. Cross-margin positions held in both directions at once are self-matched for forced position reduction. This step applies only to cross-margin liquidation.
  3. Tiered liquidation. If the position sits above the lowest risk-limit tier, part of it is taken over at the bankruptcy price to step it down a tier, then the ratio is checked again.
  4. Full liquidation. If the lowest tier still fails, the rest of the position is taken over at the bankruptcy price.

In isolated mode the path skips step 2. Losses in one isolated position do not touch the margin of another isolated position.

The rule behind it

Margin ratio decides everything:

  • Isolated: margin_ratio = (maintenance margin + liquidation fee) / (position margin + unrealized PnL)
  • Cross: margin_ratio = (cross maintenance margin + liquidation fee) / cross account equity

Liquidation triggers at 100% or more in both cases.

What self-matching does to a hedge, in a formula

With a long of Q_L DOGE and a short of Q_S DOGE, both in cross margin:

matched = min(Q_L, Q_S) left_after_matching = |Q_L - Q_S|, on the side that was larger

So a hedge is not two independent bets at liquidation. In cross, the overlapping part is reduced first, and only the net leftover goes on to the tier steps.

The live DOGE_USDT picture

KCEX's public contract data at 4:25 PM ET on Nov 21:

  • Fair price 0.05529, last price 0.05529.
  • 24h range 0.05079 to 0.05568.
  • Funding 0.006% per 8h, inside a band of +2% / -2%, next settlement at 7:00 PM ET.

Funding on a hedge works on the net. With equal legs the long pays what the short receives. With unequal legs, net_funding = (Q_L - Q_S) x fair_price x 0.006% per settlement, paid by the larger side while the rate is positive.

What changes it

  • Margin mode. Cross pools margin and adds the self-matching step. Isolated keeps each position separate.
  • Moving modes. KCEX supports moving an existing cross position to isolated, but the reverse is not yet available. Margin and position mode changes are made with no open order or position.
  • Tiers. A larger position sits in a higher tier with a higher maintenance requirement, which raises the ratio for the same equity.

Common mistakes

  • Treating a cross-margin hedge as a guarantee that one leg saves the other. At liquidation the overlap is self-matched and reduced.
  • Leaving resting orders in cross. They are the first thing cancelled, and their margin counts against equity until then.
  • Expecting to move an isolated position back to cross later. That transition is not yet available.
  • Watching last price for liquidation. The ratio is driven by margin and unrealized PnL, so watch the ratio itself.

FAQ

Does Hedge Mode raise or lower funding? Neither. Each leg pays or receives on its own notional. Equal legs net to zero.

Does self-matching happen in isolated mode? No. It applies only to cross-margin liquidation.

Is this specific to DOGE? No. The same process covers $BTC.USDT, $ETH.USDT and $SOL.USDT. Only the price, funding and tiers differ.

What about $XRP.USDT? Same four steps. Pull its funding and tier table before sizing.

Try it on your own pair

Open your positions tab, note Q_L and Q_S, compute min(Q_L, Q_S) and |Q_L - Q_S|, then ask whether the leftover alone fits your margin. If it does not, the hedge is not protecting you the way you think.

Open an account