> ## Documentation Index
> Fetch the complete documentation index at: https://docs.finwatch.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# max() and min()

**Signature:** `max(<condition>, "<time_window>")` / `min(<condition>, "<time_window>")`

**Return Value:** A float representing the maximum or minimum `amount` for matching transactions.

**Description:** Finds the peak or lowest transaction amount within a window. Useful for detecting unusual spikes or testing-style micro-transactions (common in card testing attacks).
