• Parameters

    • indexPrice: BigNumber
    • position: Pick<Position, "collateral" | "isLong" | "size" | "averagePrice" | "lastIncreasedTime">
    • minProfitTime: number
    • minProfitBasisPoints: number

    Returns {
        delta: BigNumber;
        deltaPercentage: BigNumber;
        hasProfit: boolean;
        pendingDelta: BigNumber;
        pendingDeltaPercentage: BigNumber;
    }

    • delta: BigNumber
    • deltaPercentage: BigNumber
    • hasProfit: boolean
    • pendingDelta: BigNumber
    • pendingDeltaPercentage: BigNumber

Generated using TypeDoc