Quote Slippage
Calculates potential slippage for trading operations based on order size and market depth.
Inputs
Quote
required: Current price quote dataOrder Size
required: Size of the intended orderMarket Depth
: Order book depth dataDirection
: Trade direction ("buy" or "sell", default: "buy")
Example
Outputs
Expected Slippage
: Calculated slippage percentageExecution Price
: Expected execution price after slippageImpact Analysis
: Detailed market impact analysis
