amount_before_price() sums the order book volume on the bid or ask side up to a given price level.
The Amount Before Price function in Origami Tech measures cumulative liquidity before a price level, useful for order book and slippage analysis.
amount_before_price
Example: