Function calculateEstimatedPerpEntryPrice

  • Calculates the estimated entry price and price impact of order, in base or quote Price impact is based on the difference between the entry price and the best bid/ask price (whether it's dlob or vamm)

    Parameters

    Returns {
        baseFilled: BN;
        bestPrice: BN;
        entryPrice: BN;
        priceImpact: BN;
        quoteFilled: BN;
        worstPrice: BN;
    }

    • baseFilled: BN
    • bestPrice: BN
    • entryPrice: BN
    • priceImpact: BN
    • quoteFilled: BN
    • worstPrice: BN

Generated using TypeDoc