Skip to main content

Module margin

Module margin 

Source
Expand description

A margin table a HIP-3 deployer inserts: up to three tiers of position size and the leverage allowed above each.

Structs§

MarginTable
{"description","marginTiers"}: 1 to 3 tiers, lower bounds rising and max leverage falling, each leverage from 1 to 50.
MarginTier
Above lower_bound of position notional, leverage is at most max_leverage.

Constants§

MAX_LEVERAGE
The highest max leverage a tier takes.
MAX_TIERS
The most tiers a table takes.