> For the complete documentation index, see [llms.txt](https://docs.origami.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.origami.tech/reference/grid-language/functions/amount-threshold-index.md).

# 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:
