Generates an estimate of how a taker order submitted via the buy/sell panel
would be executed by the trading engine. The estimate takes into account
trade and gas fees, the (incremental) initial margin fraction and its
overrides, the maximum position size, collateral freed up by the reduction of
positions, the effect of differences between the execution and index price on
collateral, self-trades, held collateral (for standing orders), and changes
in held collateral as a result of self-trades and position size changes.
The minimum taker quantity is intentionally ignored; the estimate generates
results for quantities that do not meet the minimum.
The order's quantity may be expressed in base asset terms, in quote asset
terms, or as a fraction of the wallet's available collateral to consume (the
panel's slider). See BuySellPanelEstimateQuantity.
All quantities, prices, and collateral values are expressed in pips
(see decimalToPip).
Generates an estimate of how a taker order submitted via the buy/sell panel would be executed by the trading engine. The estimate takes into account trade and gas fees, the (incremental) initial margin fraction and its overrides, the maximum position size, collateral freed up by the reduction of positions, the effect of differences between the execution and index price on collateral, self-trades, held collateral (for standing orders), and changes in held collateral as a result of self-trades and position size changes.
The minimum taker quantity is intentionally ignored; the estimate generates results for quantities that do not meet the minimum.
The order's quantity may be expressed in base asset terms, in quote asset terms, or as a fraction of the wallet's available collateral to consume (the panel's slider). See BuySellPanelEstimateQuantity.
All quantities, prices, and collateral values are expressed in pips (see decimalToPip).