Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

amount_before_price()

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(threshold_price:decimal, amounts: list[decimal], prices: list[decimal], side: union["ask"|"bid") -> decimal|None

Example: