Function getReversedMarketPriceLegacy

  • Reverses a market price or legacy market price object by calculating the inverse of its index, best ask, and best bid values. If the input is a legacy market price object, the calculation is done using BigNumber with LEGACY_PRICE_UNIT precision.

    Parameters

    • price: MarketPrice

      The market price or legacy market price object to reverse

    Returns MarketPrice

    The reversed market price or legacy market price object

Generated using TypeDoc