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

amount_threshold_index()

amount_threshold_index() returns the index of the order book level where cumulative volume reaches a threshold.

The Amount Threshold Index function in Origami Tech identifies liquidity zones in order books, helping optimize trade entry and execution logic.

amount_threshold_index(threshold: Decimal, amounts: list[decimal]) -> decimal|None

Example: