Skip to main content
DerivaDEX applies margin at the strategy level. Each strategy is cross-margined in USDC, risk is measured from the current mark price, and two thresholds govern risk: one for opening or increasing exposure, and one for liquidation.

Core margin quantities

These quantities appear throughout the platform’s risk checks. The mark price (not the last trade price) is the risk input for notional, PnL, and liquidation checks. See Price Feeds and Mark Price Inputs.

Strategy leverage and shared constants

The baseline margin requirements come from the strategy’s leverage setting and two shared protocol constants.

Initial margin admission rule

DerivaDEX checks initial margin on the post-execution strategy state. An order that opens or increases exposure is accepted only if the resulting OMF is at least the resulting IMF.

Maintenance margin and liquidation trigger

Once a strategy has open exposure, liquidation monitoring uses MF rather than OMF.

When each rule applies

The platform applies the same margin model differently depending on whether an order increases or reduces risk.

Worked margin cases

These examples show the two thresholds in action, including a rejection where opposite-side resting orders still leave a larger absolute exposure in one direction.

Size-scaling threshold

The square-root IMF_FACTOR term matters only once a position is large enough to exceed the base leverage floor.

API fields and rejection codes

Programmatic integrations can inspect the current maintenance state and detect failed initial-margin checks from API responses. The strategy’s leverage setting and other trading parameters can change through product or governance updates.
Last modified on May 7, 2026