Margining

Margining on the Nexus Exchange will be executed natively inside NexusCore.

Initial Margin Requirements

When opening a leveraged position, traders must post initial margin, defined by the maximum leverage allowed for a given market.

Initial margin ensures sufficient collateral at entry and will be verified atomically by NexusCore before an order is accepted into the orderbook. The initial margin calculation will follow the formula:

initialmargin=positionsize×markpriceleverageinitialmargin=leveragepositionsize×markpriceinitial_margin=position_size×mark_priceleverageinitial_margin=leverageposition_size×mark_price​

Because margin validation will run inside NexusCore, traders will benefit from:

  • Deterministic enforcement (no race conditions from asynchronous contract calls)

  • Sub-second execution aligned with block times

  • Atomic settlement with order placement

This will ensure both speed and safety at the protocol level.

Maintenance Margin

Maintenance margin is the minimum margin that must be preserved to keep a position open. Falling below this threshold makes a position eligible for liquidation. Each market will have its own maintenance margin fraction, calculated as:

maintenancemargin=1maxleverage×2maintenancemargin=maxleverage×21maintenance_margin=1max_leverage×2maintenance_margin=max_​leverage×21​

Liquidation Process

Positions will be liquidated when the mark price from the oracle causes equity to fall below maintenance margin.

Last updated