Amount Before Price
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
amount_before_price(threshold_price:decimal, amounts: list[decimal], prices: list[decimal], side: union["ask"|"bid") -> decimal|NoneExample:
Last updated