Function calculateEstimatedEntryPriceWithL2
- calculateEstimatedEntryPriceWithL2(assetType: AssetType, amount: BN, direction: PositionDirection, basePrecision: BN, l2: L2OrderBook): {
baseFilled: BN;
bestPrice: BN;
entryPrice: BN;
priceImpact: BN;
quoteFilled: BN;
worstPrice: BN;
}
-
Parameters
-
-
amount: BN
-
-
basePrecision: BN
-
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