• Gets the leverage of a position, including possible deltas.

    Parameters

    • leverageArgs: GetLeverageArgs

      the arguments necessary for calculating the leverage

    • marginFeeBasisPoints: number

      the margin fee as basis points

    • deltas: PositionDelta = DEFAULT_POSITION_DELTA

      the position deltas

    Returns BigNumber

    the leverage in basis points

Generated using TypeDoc