Skip to main content

Margin

The margin fractions define the leverage permitted by Nord. Each market has different base fractions based on factors such as the risk and volatility of the underlying asset.

Margin fractions

Margin fraction MF\text{MF}

Calculated per user as:

MFuser=AVmarketsPN\text{MF}_{user} = \frac{\text{AV}}{\sum_{markets} \text{PN}}

Open margin fraction OMF\text{OMF}

OMFuser=min{AV,TV}marketsPON\text{OMF}_{user} = \frac{\min\big\{\text{AV}, \text{TV} \big\}}{\sum_{markets} \text{PON}}

OMF is the ratio between the account's available collateral value and its possible exposure after open orders fill. The numerator includes unsettled funding.

Initial margin fraction IMF\text{IMF}

Defines the initial margin to open a position or borrow assets. After opening a position or borrowing an asset, we must have OMFuser>IMFuser\text{OMF}_user > \text{IMF}_user. First, define a per-market or per-asset base IMF.

IMFbase=1max leverage(perp)IMFbase=1.1weightbase token1(spot)\begin{align*} \text{IMF}_\text{base} &= \frac{1}{\text{max leverage}} & (\text{perp}) \\ \text{IMF}_\text{base} &= \frac{1.1}{\text{weight}_\text{base token}} - 1 & (\text{spot}) \end{align*}

where

  • max leverage\text{max leverage} is the maximum leverage multiplier for a specific market. The implementation may operate with the market's imf\text{imf} value, in which case:
IMFbase=imfmarket(perp)\begin{align*} \text{IMF}_\text{base} &= {\text{imf}_\text{market}} & (\text{perp}) \end{align*}
  • weight\text{weight} is the weight of the spot market's base token.

Note that in practice, we need only store the market IMF and token IMF. The leverage is implied from this value. Then we have the user's IMF.

IMFuser=PONIMFbasePON\text{IMF}_{user} = \frac{\sum \text{PON} \cdot \text{IMF}_\text{base}}{\sum \text{PON}}

Note that for tokens, IMFbase\text{IMF}_\text{base} is only defined if the token is borrowable.

Because OMF and IMF have the same denominator, the condition OMF>IMF\text{OMF} > \text{IMF} can be simplified to:

min{AV,TV}>PONIMFbase\min\big\{\text{AV}, \text{TV} \big\} > \sum \text{PON} \cdot \text{IMF}_\text{base}

Let us use OMF_numer=min{AV,TV}\text{OMF\_numer} = \min\{\text{AV}, \text{TV}\}.

Cancel margin fraction CMFCMF

The OMFOMF below which open orders that extend the user's current position are cancelled. Defined similarly to IMF.

CMFbase=58IMFbase(perp)CMFbase=IMFbase(spot)\begin{align*} \text{CMF}_\text{base} &= \frac{5}{8} \text{IMF}_\text{base} & (\text{perp}) \\ \text{CMF}_\text{base} &= \text{IMF}_\text{base} & (\text{spot}) \end{align*} CMFuser=PONCMFbasePON\text{CMF}_{user} = \frac{\sum \text{PON} \cdot \text{CMF}_\text{base}}{\sum \text{PON}}

Maintenance margin fraction MMFMMF

The MF threshold below which the user's positions and borrows become eligible for liquidation.

MMFbase=12IMFbase(perp)MMFbase=1.03weight1(spot)\begin{align*} \text{MMF}_\text{base} &= \frac{1}{2} \text{IMF}_\text{base} & (\text{perp}) \\ \text{MMF}_\text{base} &= \frac{1.03}{\text{weight}} - 1 & (\text{spot}) \end{align*} MMFuser=PONMMFbasePON\text{MMF}_{user} = \frac{\sum \text{PON} \cdot \text{MMF}_\text{base}}{\sum \text{PON}}

Invariants

If a user can perform a financial operation by executing two separate actions sequentially, then the equivalent financial operation performed as a single action must also succeed. For example, if a user can close a position and then open an opposite position, they must also be able to perform this as a single, atomic operation.

Price bands

Nord rejects perpetual order requests with a limit price outside a configured band around the index price. With band BB, the lowest permitted price is plow index(1B)p_\text{low index} \cdot (1 - B) and the highest permitted price is phigh index(1+B)p_\text{high index} \cdot (1 + B). Currently, B=0.2B = 0.2.

These materials are provided for informational purposes only and do not constitute financial, investment, legal, or tax advice, or an offer or solicitation to buy or sell any asset. Trading digital assets and derivatives involves substantial risk, including the possible loss of some or all capital. Products may not be available in all jurisdictions. Users are responsible for evaluating suitability and complying with applicable laws.