- Preparing search index...
- The search index is not available
handle-sdk
Function getPositionDeltaForActualPosition
- getPositionDeltaForActualPosition(indexPrice, position, minProfitTime, minProfitBasisPoints): {
delta: BigNumber;
deltaPercentage: BigNumber;
hasProfit: boolean;
pendingDelta: BigNumber;
pendingDeltaPercentage: BigNumber;
}
-
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