Function adjustPriceToTickSize

  • Adjusts prices in pips to account for tick size by discarding insignificant digits using specified rounding mode. Ex price 123456789 at tick size 1 is 123456789, at tick size 10 123456780, at 100 123456700, etc

    Parameters

    • price: bigint
    • tickSize: bigint
    • roundingMode: RoundingMode = BigNumber.ROUND_HALF_UP

    Returns bigint