Function getActionPrice

  • Gets the correct price from a spread price for a position.

    Parameters

    • isLong: boolean

      Whether the position is long.

    • isIncreasing: boolean

      Whether the position is being increased.

    • price: MarketPrice

      The market price for the position.

    • slippage: number = 0

      The slippage, as a percentage, to apply to the price.

    Returns BigNumber

Generated using TypeDoc