> 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/function/functions/amount-before-price.md).

# Amount Before Price

## <mark style="color:purple;">`amount_before_price`</mark>(*threshold\_price*:*decimal*, *amounts*: *list*\[*decimal*], *prices*: *list*\[*decimal*], *side*: *union*\["*ask*"|"*bid*") -> *decimal*|*None*

Example:
